|
 |
aspx_beginners thread: First project problem
Message #1 by "dmlegare" <dmlegare@h...> on Thu, 9 May 2002 14:37:17 -0400
|
|
Just installed VS.NET and having problems with my first project.
Very simple.. I create a new project (C# - ASP.NET project).. It creates the
website and all appears to be ok. with the default webpage.. All I do is
view in browser and I get the following error :
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 'Chapter02ASP.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="Chapter02ASP.Global" %>
Source File: C:\Inetpub\wwwroot\Chapter02ASP\global.asax Line: 1
Now the Chapter02ASP.Global does not exist so why is it trying to find this
file? Am I supposed to create it?
Message #2 by "Minh T. Nguyen" <nguyentriminh@y...> on Thu, 9 May 2002 12:17:01 -0700
|
|
Hi there,
It's trying to located that file because you are referecing it
in your Global.asax-file. Open that file up in notepade and you will see
the line
<%@ Application Codebehind="Global.asax.cs"
Inherits="Chapter02ASP.Global" %>
Most likely, you have copied code from some book and in your
Global.asax.cs file you have either changed the namespace or something.
So, open up Global.asax.cs and look at the namespace statement at the
top? What is it? Chapter02ASP? If it's different, change that in the
Global.asax as well. They have tbe synchronized. If it's missing insert
it again:
namespace Chapter02ASP {
public class Global : ....
}
or something like that.
Minh.
-----Original Message-----
From: dmlegare [mailto:dmlegare@h...]
Sent: Thursday, May 09, 2002 11:37 AM
To: aspx_beginners
Subject: [aspx_beginners] First project problem
Just installed VS.NET and having problems with my first project.
Very simple.. I create a new project (C# - ASP.NET project).. It creates
the
website and all appears to be ok. with the default webpage.. All I do is
view in browser and I get the following error :
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 'Chapter02ASP.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs"
Inherits="Chapter02ASP.Global" %>
Source File: C:\Inetpub\wwwroot\Chapter02ASP\global.asax Line: 1
Now the Chapter02ASP.Global does not exist so why is it trying to find
this
file? Am I supposed to create it?
Message #3 by "dmlegare" <dmlegare@h...> on Thu, 9 May 2002 15:46:50 -0400
|
|
Thanks!!
Im creating this from scratch..Not copying it from any code..
in the global.asx file I see the : <%@ Application
Codebehind="Global.asax.cs" Inherits="Chapter02ASP.Global" %>
in my Global.asax.cs file it has :
namespace Chapter02ASP
{
/// <summary>
/// Summary description for Global.
/// </summary>
public class Global : System.Web.HttpApplication
{
public Global()
{
InitializeComponent();
}
if I follow the same exact steps and create a VB.NET app this problem doesnt
occur! Only when i create a C# Web app.
----- Original Message -----
From: "Minh T. Nguyen" <nguyentriminh@y...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: May 09, 2002 3:17 PM
Subject: [aspx_beginners] RE: First project problem
> Hi there,
>
> It's trying to located that file because you are referecing it
> in your Global.asax-file. Open that file up in notepade and you will see
> the line
>
> <%@ Application Codebehind="Global.asax.cs"
> Inherits="Chapter02ASP.Global" %>
>
> Most likely, you have copied code from some book and in your
> Global.asax.cs file you have either changed the namespace or something.
> So, open up Global.asax.cs and look at the namespace statement at the
> top? What is it? Chapter02ASP? If it's different, change that in the
> Global.asax as well. They have tbe synchronized. If it's missing insert
> it again:
>
> namespace Chapter02ASP {
> public class Global : ....
> }
>
> or something like that.
>
> Minh.
>
> -----Original Message-----
> From: dmlegare [mailto:dmlegare@h...]
> Sent: Thursday, May 09, 2002 11:37 AM
> To: aspx_beginners
> Subject: [aspx_beginners] First project problem
>
>
> Just installed VS.NET and having problems with my first project.
>
> Very simple.. I create a new project (C# - ASP.NET project).. It creates
> the
> website and all appears to be ok. with the default webpage.. All I do is
> view in browser and I get the following error :
>
> 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 'Chapter02ASP.Global'.
>
> Source Error:
>
>
> Line 1: <%@ Application Codebehind="Global.asax.cs"
> Inherits="Chapter02ASP.Global" %>
>
>
>
>
> Source File: C:\Inetpub\wwwroot\Chapter02ASP\global.asax Line: 1
>
> Now the Chapter02ASP.Global does not exist so why is it trying to find
> this
> file? Am I supposed to create it?
>
>
>
>
Message #4 by "dmlegare" <dmlegare@h...> on Thu, 9 May 2002 16:32:58 -0400
|
|
I dont understand it, but I think I resolved it.. When I first created the
project..All i did was trigger View in Browser and the error was generated..
If you instead trigger Build Solution, the error is no longer generated. I
would assume (i know i shouldnt) that view in browser would execute the
required code to generate the web page.. i seem to be wrong.
----- Original Message -----
From: "dmlegare" <dmlegare@h...>
To: "aspx_beginners" <aspx_beginners@p...>
Sent: May 09, 2002 3:46 PM
Subject: [aspx_beginners] RE: First project problem
> Thanks!!
>
> Im creating this from scratch..Not copying it from any code..
>
> in the global.asx file I see the : <%@ Application
> Codebehind="Global.asax.cs" Inherits="Chapter02ASP.Global" %>
>
> in my Global.asax.cs file it has :
> namespace Chapter02ASP
> {
> /// <summary>
> /// Summary description for Global.
> /// </summary>
> public class Global : System.Web.HttpApplication
> {
> public Global()
> {
> InitializeComponent();
> }
>
> if I follow the same exact steps and create a VB.NET app this problem
doesnt
> occur! Only when i create a C# Web app.
>
> ----- Original Message -----
> From: "Minh T. Nguyen" <nguyentriminh@y...>
> To: "aspx_beginners" <aspx_beginners@p...>
> Sent: May 09, 2002 3:17 PM
> Subject: [aspx_beginners] RE: First project problem
>
>
> > Hi there,
> >
> > It's trying to located that file because you are referecing it
> > in your Global.asax-file. Open that file up in notepade and you will see
> > the line
> >
> > <%@ Application Codebehind="Global.asax.cs"
> > Inherits="Chapter02ASP.Global" %>
> >
> > Most likely, you have copied code from some book and in your
> > Global.asax.cs file you have either changed the namespace or something.
> > So, open up Global.asax.cs and look at the namespace statement at the
> > top? What is it? Chapter02ASP? If it's different, change that in the
> > Global.asax as well. They have tbe synchronized. If it's missing insert
> > it again:
> >
> > namespace Chapter02ASP {
> > public class Global : ....
> > }
> >
> > or something like that.
> >
> > Minh.
> >
> > -----Original Message-----
> > From: dmlegare [mailto:dmlegare@h...]
> > Sent: Thursday, May 09, 2002 11:37 AM
> > To: aspx_beginners
> > Subject: [aspx_beginners] First project problem
> >
> >
> > Just installed VS.NET and having problems with my first project.
> >
> > Very simple.. I create a new project (C# - ASP.NET project).. It creates
> > the
> > website and all appears to be ok. with the default webpage.. All I do is
> > view in browser and I get the following error :
> >
> > 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 'Chapter02ASP.Global'.
> >
> > Source Error:
> >
> >
> > Line 1: <%@ Application Codebehind="Global.asax.cs"
> > Inherits="Chapter02ASP.Global" %>
> >
> >
> >
> >
> > Source File: C:\Inetpub\wwwroot\Chapter02ASP\global.asax Line: 1
> >
> > Now the Chapter02ASP.Global does not exist so why is it trying to find
> > this
> > file? Am I supposed to create it?
> >
> >
> >
> >
>
>
Message #5 by "Minh T. Nguyen" <nguyentriminh@y...> on Thu, 9 May 2002 14:24:33 -0700
|
|
Hi there,
Interesting, your code is correct. Namespaces and everything is
correct as well, so it should be working! Hm. I don't know the answer,
then, sorry. Your code should be working fine.
Sorry, no help here, try creating new projects with different
namespaces or so.
Good luck,
Minh.
-----Original Message-----
From: dmlegare [mailto:dmlegare@h...]
Sent: Thursday, May 09, 2002 12:47 PM
To: aspx_beginners
Subject: [aspx_beginners] RE: First project problem
Thanks!!
Im creating this from scratch..Not copying it from any code..
in the global.asx file I see the : <%@ Application
Codebehind="Global.asax.cs" Inherits="Chapter02ASP.Global" %>
in my Global.asax.cs file it has :
namespace Chapter02ASP
{
/// <summary>
/// Summary description for Global.
/// </summary>
public class Global : System.Web.HttpApplication
{
public Global()
{
InitializeComponent();
}
if I follow the same exact steps and create a VB.NET app this problem
doesnt
occur! Only when i create a C# Web app.
Message #6 by Ron0079@a... on Thu, 9 May 2002 21:59:56 EDT
|
|
--part1_15d.dacc47f.2a0c839c_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
In a message dated 5/9/2002 2:37:43 PM Eastern Daylight Time,
dmlegare@h... writes:
> Parser Error Message: Could not load type 'Chapter02ASP.Global'.
Build / compile the project before running in a browser (use the Build menu
or right click the project and build from there)
Another way is to launch the site from VS by going to Debug->Start or Debug->
Start without debugging.
Ron
|
|
 |