Parser Error Message: Could not load type 'webmarketing'

后端 未结 14 2029
感情败类
感情败类 2020-12-01 06:16

After finishing the web application and publishing it online no matter I try I keep getting the following error, keep in mind that it runs locally as it should...

相关标签:
14条回答
  • 2020-12-01 06:42

    I had same problem before i just change CodeBehind to CodeFile and it worked.I remember it works in local but i had this problem after uploading.

    0 讨论(0)
  • 2020-12-01 06:43

    regarding the Inherits is should reflect the full name space with class name such as x.y.webmarketing, not the class name or the file name. to wrap it up it should look like below

    <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="MasterPage.Master.cs" Inherits="Lync_Billing.ui.MasterPage" %>
    
    0 讨论(0)
  • 2020-12-01 06:44

    This is normally happening when you copy files from a Web application projects to Website Project.

    When you create a Web Application the Page directive is CodeBehind for the web pages.

    If you create your application as Website then the Page directive is CodeFile

    So if you copy from a Web application to Website the Namespace as well as the page directive will not change automatically, you should do this manually to rectify this error.

    0 讨论(0)
  • 2020-12-01 06:46

    what i did to solve my problem giving the same message was to go to IIS and check if it is configured as an Application or simply as a virtual directory. The App icon was just a folder icon. So i right clicked it and Manage Virtual directory > Advanced Settings > convert to Application changed the icon of virtual directory to a green earth icon. Of course the app was targeting framework 4.5, so changed App pool to 4.0 from default app pool, which was there earlier. This solved the issue for me.

    But some things i did not say, 1. I am running it locally on IIS 6.1. 2. I am accessing with domain credential and not with 'pass through' authentication. Hope this helps

    0 讨论(0)
  • 2020-12-01 06:51

    If your application works in your local but fails when deployed to the server, then this issue is most likely related to your IIS settings.

    To resolve this, Make sure the “Enable 32-Bit application” property of the target Application pool in IIS is set to “TRUE”. It WORKS!

    0 讨论(0)
  • 2020-12-01 06:52

    Note: I was compiling my WebForms pages at build time.

    I had aspx files not referenced in the project but were on disk and that was causing the build errors.

    0 讨论(0)
提交回复
热议问题