global.asax - WTFO On Why This Causes Problem

  • Thread starter Thread starter someone
  • Start date Start date
S

someone

I know it must be a server configuration issue but perhaps someone has
come across this one before. I create a virtual directory, add FP
extensions, then create a new project. I add a couple of small HTML
items just to run a page. However, I get the following:

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 'WebTest.Global'.

Source Error:


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



Source File: F:\Projects\WebTest\global.asax Line: 1

This is using Create New Project from within VS. Can someone please
tell me why this is happening? This is absurd that a product as
powerful as VS does this!!!! If something is not set/configured
correctly in the directory, then VS should tell me so before offering
up all this other stuff.

TIA,
Mike

PS Don't tell me to rebuild, etc. been there, done that.
 
I got this error tooo. I don't know what cuases it. What I did to get
off of it was:

1 - Copy all the contents of your glbal.asax to another editor (notepad
for example)

2 - Delete global.asax from your project

3 - Create a new global.asax (right button on projet, add new itm, blah
blah blah...)

4 - edit the new global asax's code behind

5 - paste the code save previously at another editor. and voilà.. all
should be working.
 
someone said:
I know it must be a server configuration issue but perhaps someone has
come across this one before. I create a virtual directory, add FP
extensions, then create a new project. I add a couple of small HTML
items just to run a page. However, I get the following:

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 'WebTest.Global'.

Did you build your project? What's in the bin folder, or do you even have a
bin folder?
 
If you had read the original post, you would have found:

PS Don't tell me to rebuild, etc. been there, done that.

Believe me there is a bin folder, the project was built, I have done
this before. However, I have always just deleted global.asax before
and wanted to find a solution for this.

Mike
 
You might look at the .dll in the bin folder with ildasm to make sure it has
a Global class in the correct namespace.
 
Interestingly, I just installed VS 2003 on a duplicate dev server and
this error doesn't happen. Could it be that my VS install on the
initial machine is corrupt? I am going to try that as well as your
suggestion.
Thanks,
Mike
 
Back
Top