newbie error

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
 
G

Guest

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
 
G

Guest

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
 
M

Matt Berther

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)?
 
G

Guest

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
 
G

Guest

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
 
G

Guest

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
 

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

Parser error 0
Error Loading UserControl 1
Parser error 2
Help with parsing error? 2
Parser Error Help 1
Parser Error: 0
Server Error in '/Hello World' Application 1
Parser Error 0

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top