Parser error in Global.asax

G

Guest

Hello -
In every project I try to compile and run, I'm getting a parser error on
global.asax (pasted below). I have rebuilt and recompiled, and this happens
on every project on my machine, no matter how simple or complex. For example
purposes, I even created a new app using all the defaults in VS.Net 2003
(WebApplication1, WebForm1) and dropped a label on WebForm1, did a Ctrl-F5
and still get the error. I have tried reinstalling the .NET Framework, VS.Net
2003 and IIS, but it still fails. Can anyone help please?

Error message below...thanks in advance, Neil


Server Error in '/WebApplication1' 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 'WebApplication1.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="WebApplication1.Global" %>



Source File: c:\inetpub\wwwroot\WebApplication1\global.asax Line: 1
 
S

Siva M

Hi,

Open the .asax file and make a simple edit (say, a space character at the
end of the file), save it and rebuild.

HTH.

Hello -
In every project I try to compile and run, I'm getting a parser error on
global.asax (pasted below). I have rebuilt and recompiled, and this happens
on every project on my machine, no matter how simple or complex. For example
purposes, I even created a new app using all the defaults in VS.Net 2003
(WebApplication1, WebForm1) and dropped a label on WebForm1, did a Ctrl-F5
and still get the error. I have tried reinstalling the .NET Framework,
VS.Net
2003 and IIS, but it still fails. Can anyone help please?

Error message below...thanks in advance, Neil


Server Error in '/WebApplication1' 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 'WebApplication1.Global'.

Source Error:


Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="WebApplication1.Global" %>



Source File: c:\inetpub\wwwroot\WebApplication1\global.asax Line: 1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top