newbie error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to run a simple page and get this error:

Server Error in '/FSTEST' 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 'FSTEST.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="FSTEST.Global" %>
Source File: F:\Inetpub\wwwroot\FSTEST\global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

This is on a line of code generated by Visual Stsudio .Net. What does the
error mean??

Mike
 
Mike,

The root directory of your application in IIS is not set as an
"application". The system is looking for the global.asax information in the
root. Open IIS, go to the properties on your website/fstest directory, and
click the "Create" button by the application name.

Ian Suttle
http://www.IanSuttle.com
 
Thanks for the reply. Is there anything else it could be. The application
had been created and there was a global.asax file there. I removed then
recreated the application and still the same error. The only line in the
global.asax is"<%@ Application Codebehind="Global.asax.vb"
Inherits="FSTEST.Global" %>"

Thanks
Mike
 
Hello Mike,

Do you have a file called Global.asax.vb and does it define a class Global
with the namespace FSTEST?

Also, have you compiled to project (ie: is there a bin folder with dlls in
it)?
 
It was simpler than that. I hadn't compiled. I thought aspx was done at run
time the first time the page was requested. I guess this ASP guy has a lot
to learn.

Mike
 
Ah, that will do it as well :). You are correct in that the ASPX pages
compile at runtime and are stored as temporary DLLs for faster execution.
However, the code behinds are compiled into a DLL (prior to deployment) that
you need to run the application. I'm sure you realize this all by now though.

Ian Suttle
http://www.IanSuttle.com
 
It's going to be a switch. I'm sure I'll have more bonehead questions in the
future.

Thanks again for your time,
Mike
 
Back
Top