Has anyone ever dealt with this obsure error regarding global.asax? From what I’ve been able to gather in my research is that its likely an IIS thing. Because my app usually publishes to my web server but now it only renders locally.
ErrorScreenhot
I’ve tried using CodeFile instead of Codebehind, but then it won’t compile my codebehind classes.
I’ve also cleared my bin and rebuilt the solution several times to get it to compile on my live server.
Let me know what you’ve tried, Willing to share the rest of my code if you have time to walk through it with me.
The errorMessage:
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'WorldsStrongestProgrammer2024App.Global'.
Source Error:
Line 1: <%@ Application CodeBehind="Global.asax.cs" Inherits="WorldsStrongestProgrammer2024App.Global" Language="C#" %>
Source File: /global.asax Line: 1
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4700.0