473,322 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Parser Error on the base project created by Visual Studio

CES
All,
I've just started to use VBStudio, up tell now I've coded with note pad, so
this is all new to me. I'm trying to create my first project but I'm running
into problems.

I've created a base ASP.net web application and used the default name
WebApplication1. Without doing !!anything!! to the WebForm1.aspx I build the
project by going to File Menu Build\Build Solution (Ctr+Shift+B) :

In the Output window I get:

------ Build started: Project: WebApplication1, Configuration: Debug
..NET ------
Preparing resources...
Updating references...
Performing main compilation...
Building satellite assemblies...
---------------------- Done ----------------------
Build: 1 succeeded, 0 failed, 0 skipped
I then when I hit F5 to run the project, and IE displays this Parser Error
message:

Parser Error Message: Could not load type 'WebApplication1.Global'.

Source Error:

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

Source File: \\server\\_temp\WebApplication1\global.asax Line: 1

I've checked the security privileges on the WebApplication1 and the
"aspnet_wp account" and the "Internet Guest Account" have "Full Control"
access. Additionally the "aspnet_wp account" has full privileges on
Windows\Microsoft.NET\Framework\v1.1.4322 and
WINDOWS\Microsoft.NET\Framework\v1.0.3705 directories.

The only way I can get the page WebForm1.aspx to load and not throw an error
is by removing both of the Inherits properties from these files:

WebForm1.aspx:
<%@ Page Language="vb" AutoEventWireup="false"
Inherits="WebApplication1.WebForm1"%>

Global.asax:
<%@ Application Codebehind="Global.asax.vb"
Inherits="WebApplication1.Global" %>

But that doesn't seem to make any sense, if the page won't work as is why
are the Inherits="WebApplication1.WebForm1 and
Inherits="WebApplication1.Global" setup by default???

Is it me or am I doing something wrong???
Nov 17 '05 #1
5 2224
Hi,

[...]
Is it me or am I doing something wrong???


I think you should configure your web directory in IIS as application.

Cheers,
--
Maras
Nov 17 '05 #2
CES
I"m not sure what you mean but Application Settings under the Home Directory
Tab for the web site have values of
Application Name : Default Application
Starting point: <Default Web Site>
Execute Permissions: Scripts Only
Application Protection: Medium (Pooled)

Which are the defaults.

CES

"Maras" <m.********@nospam.wp.pl> wrote in message
news:bm**********@news.onet.pl...
Hi,

[...]
Is it me or am I doing something wrong???


I think you should configure your web directory in IIS as application.

Cheers,
--
Maras

Nov 17 '05 #3
try running aspnet_regiis.exe -c
it sits in
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\
or wherever your framework is installed
"CES" <NO**@NOEMAIL.com> wrote in message
news:O3*************@TK2MSFTNGP10.phx.gbl...
I"m not sure what you mean but Application Settings under the Home Directory Tab for the web site have values of
Application Name : Default Application
Starting point: <Default Web Site>
Execute Permissions: Scripts Only
Application Protection: Medium (Pooled)

Which are the defaults.

CES

"Maras" <m.********@nospam.wp.pl> wrote in message
news:bm**********@news.onet.pl...
Hi,

[...]
Is it me or am I doing something wrong???


I think you should configure your web directory in IIS as application.

Cheers,
--
Maras


Nov 17 '05 #4
CES
George,
Tried your suggestion but I'm still getting the error message...I did
however isolate the problem to IIS and not the code (I copied the
application to me web site and it runs just fine).

Any other suggestions would be appreciated.
CES

"George Durzi" <gdurzi@nospam_hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
try running aspnet_regiis.exe -c
it sits in
c:\WINNT\Microsoft.NET\Framework\v1.0.3705\
or wherever your framework is installed
"CES" <NO**@NOEMAIL.com> wrote in message
news:O3*************@TK2MSFTNGP10.phx.gbl...
I"m not sure what you mean but Application Settings under the Home

Directory
Tab for the web site have values of
Application Name : Default Application
Starting point: <Default Web Site>
Execute Permissions: Scripts Only
Application Protection: Medium (Pooled)

Which are the defaults.

CES

"Maras" <m.********@nospam.wp.pl> wrote in message
news:bm**********@news.onet.pl...
Hi,

[...]

> Is it me or am I doing something wrong???

I think you should configure your web directory in IIS as application.

Cheers,
--
Maras



Nov 17 '05 #5
CES
All,
I've started a new threed please reply their - Setting up a Web Application
on IIS 5.1
CES
"CES" <NO**@NOEMAIL.com> wrote in message
news:uo**************@TK2MSFTNGP10.phx.gbl...
All,
I've just started to use VBStudio, up tell now I've coded with note pad, so this is all new to me. I'm trying to create my first project but I'm running into problems.

I've created a base ASP.net web application and used the default name
WebApplication1. Without doing !!anything!! to the WebForm1.aspx I build the project by going to File Menu Build\Build Solution (Ctr+Shift+B) :

In the Output window I get:

------ Build started: Project: WebApplication1, Configuration: Debug
.NET ------
Preparing resources...
Updating references...
Performing main compilation...
Building satellite assemblies...
---------------------- Done ----------------------
Build: 1 succeeded, 0 failed, 0 skipped
I then when I hit F5 to run the project, and IE displays this Parser Error
message:

Parser Error Message: Could not load type 'WebApplication1.Global'.

Source Error:

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

Source File: \\server\\_temp\WebApplication1\global.asax Line: 1

I've checked the security privileges on the WebApplication1 and the
"aspnet_wp account" and the "Internet Guest Account" have "Full Control"
access. Additionally the "aspnet_wp account" has full privileges on
Windows\Microsoft.NET\Framework\v1.1.4322 and
WINDOWS\Microsoft.NET\Framework\v1.0.3705 directories.

The only way I can get the page WebForm1.aspx to load and not throw an error is by removing both of the Inherits properties from these files:

WebForm1.aspx:
<%@ Page Language="vb" AutoEventWireup="false"
Inherits="WebApplication1.WebForm1"%>

Global.asax:
<%@ Application Codebehind="Global.asax.vb"
Inherits="WebApplication1.Global" %>

But that doesn't seem to make any sense, if the page won't work as is why
are the Inherits="WebApplication1.WebForm1 and
Inherits="WebApplication1.Global" setup by default???

Is it me or am I doing something wrong???

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vamsi | last post by:
Hi Guys, I have installed Visual Studio.Net on my windows XP machine. First after installing all the required WCU, then installed the Visual Studio.Net. All set up was completed...
1
by: Tyson Zwicker | last post by:
Hi, I'm suddenly unable to run any ASP.net applications. Last week everything worked. But now (Mondays!) I get the same error from _every_ application I've written: Parser Error ...
2
by: Qiao Yun | last post by:
I used vc++.net (visual studio .net ) to open a project which can work well in vc++6.0. I succeeded in compiling the project in vc++.net in release mode . But when I tried to compile the project...
3
by: Antti Keskinen | last post by:
Hello ppl ! Since this newsgroup is a place where Microsoft MVPs or related visit somewhat often, could someone give me an advice with possible causes of this error. Note that it does not happen...
5
by: CES | last post by:
All, I've just started to use VBStudio, up tell now I've coded with note pad, so this is all new to me. I'm trying to create my first project but I'm running into problems. I've created a base...
2
by: Marshall | last post by:
Hi All, I am building an asp.net web app using Visual Studio 2003. Today I created a new folder called 'Secured' at the root of my web app so I could partition off all of the restricted...
4
by: mcwooq | last post by:
Hi, I just installed the VS.Studio 2005 Team Edition for Developper and encountered severe problems with debugging ASP.NET 2.0 projects. Even newly empty created ASP 2.0 projects can't debug...
0
by: Joe | last post by:
Hello, I just migrated a solution from Visual Studio 2003 to 2005. The solution contained a website project which I then migrated to a new Web Application project, I created a Web setup project and...
1
by: =?Utf-8?B?cnNvbWFzdW5kYXI=?= | last post by:
Hi, I got the following error while trying to run the project in ASP.Net 2003 to one of my application in my machine. I think some where im loosing the IIS configurations. Error Detail:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.