Parser Error on the base project created by Visual Studio

From: CES (NONE_at_NOEMAIL.com)
Date: 10/09/03


Date: Thu, 9 Oct 2003 10:07:04 -0400

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



Relevant Pages

  • Re: Includes not allowed in Server Script tags
    ... >> using User Controls and/or Server Controls. ... > Parser Error Message: Illegal characters in path. ... >>>Sub fnHeader(client As String) ... >>>Source Error: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Parser Errors. Cant use ASP.NET at all
    ... > Parser Error Message: Could not load type 'WebApplication3.WebForm1'. ... > setting or configuration setting. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms Auth and codebehind
    ... details and modify your source file appropriately. ... Parser Error Message: Could not load type 'Polfoto.Logon'. ... and I have never tried having Forms authentication ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Parser Error on the base project created by Visual Studio
    ... "CES" wrote in message ... I'm trying to create my first project but I'm ... > I then when I hit F5 to run the project, and IE displays this Parser Error ... Could not load type 'WebApplication1.Global'. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • parser error message re browser in visual studio.net
    ... when i right click the View in Browser item in order to ... view my newly created web form, i get this parser error ... message: "could not load type ...
    (microsoft.public.vsnet.general)

Quantcast