IIs Error: Application Codebehind=“Global.asax.cs” Inherits=“nadeem.MvcApplication”

前端 未结 22 3311
灰色年华
灰色年华 2021-02-19 15:16

I am trying to deploy my web project and I keep getting this error:

Line 1: <%@ Application Codebehind=“Global.asax.cs” Inherits=“nadeem.MvcApplication” Langu         


        
相关标签:
22条回答
  • 2021-02-19 16:12

    In My case the issue was fixed by changing the solution platform from AnyCPU to x86.

    0 讨论(0)
  • 2021-02-19 16:13

    I had the same error. It is solved by following steps

    Go to IIS -> find your site -> right click on the site -> Manage Website -> Advanced Setting -> Check your physical path is correct or not.

    If it is wrong, locate the correct path. This will solve issue.

    0 讨论(0)
  • 2021-02-19 16:13

    I had the same error on IIS Express. In my case, I had two projects as startup projects.I changed properties of the solution to single startup project and ran it. then changed it to previous settings and ran the solution again and no error occurred again!

    0 讨论(0)
  • 2021-02-19 16:13

    You can change it by editing Globas.asax file (not Global.asax.cs). Find it in app folder in windows explorer then edit

    <%@ Application Codebehind="Global.asax.cs" Inherits="YourAppName.Global" Language="C#" %>

    to

    <%@ Application Codebehind="Global.asax.cs" Inherits="YourAppName.MvcApplication" Language="C#" %>

    0 讨论(0)
  • 2021-02-19 16:14

    It may occur due to the clean solution.The dlls in the bin will be removed. 1.Clean Solution 2.Rebuild the solution 3.If the build process have failed,not all the necessary dlls will be stored in the bin. This is another scenario where the error occurs

    0 讨论(0)
  • 2021-02-19 16:15

    The only solution that worked for me

    1. Run, Type command %Temp% -> Deleting "Temporary ASP.NET Files".

    Other solutions I have tried, which didn't work.

    1. Cleaning/Rebuilding

    2. Cleaning bin, obj folders

    3. Changing namespace

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