Parser Error on the base project created by Visual Studio

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Re: Parser Error on the base project created by Visual Studio

    Hi,

    [...]
    > Is it me or am I doing something wrong???
    I think you should configure your web directory in IIS as application.

    Cheers,
    --
    Maras
    Maras Guest

  2. Similar Questions and Discussions

    1. Visual Studio .NET 2005 using Web Application Project
      Because I wanted the builds for my ASP.NET sites to be a single *.dll in a /bin/ directory (like VSNET 2003), I decided to try the Web Application...
    2. How to reference Word/Excel without using Visual Studio project
      To create Excel file, you can Add Reference Visual Studio.NET, browse to ... and then select Microsoft.Office.Interop.Excel, etc. It endsup some...
    3. Visual Studio locks assemblies for ASP.NET project.
      I am working in an environment with 4 developers. 2 groups of 2 people working on the same server on the same web project with no version control...
    4. New to Visual Studio.NET - Walkthrough error
      I am new to Visual Studio.NET and am having trouble at the beginning of the first Walkthrough. Any help anyone can give in resolving the error or...
    5. How to write my own meta tags in any new aspx file created in visual studio
      Hello, When i create a new aspx page from visual studio i get a page in which default meta tags are displayed. i would like to know which...
  3. #2

    Default Parser Error on the base project created by Visual Studio

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


    CES Guest

  4. #3

    Default Re: Parser Error on the base project created by Visual Studio

    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.stachura@nospam.wp.pl> wrote in message
    news:bm3hck$jmb$1@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

    CES Guest

  5. #4

    Default Re: Parser Error on the base project created by Visual Studio

    try running aspnet_regiis.exe -c
    it sits in
    c:\WINNT\Microsoft.NET\Framework\v1.0.3705\
    or wherever your framework is installed


    "CES" <NONE@NOEMAIL.com> wrote in message
    news:O3kgcgnjDHA.360@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.stachura@nospam.wp.pl> wrote in message
    > news:bm3hck$jmb$1@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
    >
    >

    George Durzi Guest

  6. #5

    Default Re: Parser Error on the base project created by Visual Studio

    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:%23SlmujnjDHA.684@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" <NONE@NOEMAIL.com> wrote in message
    > news:O3kgcgnjDHA.360@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.stachura@nospam.wp.pl> wrote in message
    > > news:bm3hck$jmb$1@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
    > >
    > >
    >
    >

    CES Guest

  7. #6

    Default Re: Parser Error on the base project created by Visual Studio

    All,
    I've started a new threed please reply their - Setting up a Web Application
    on IIS 5.1
    CES
    "CES" <NONE@NOEMAIL.com> wrote in message
    news:uotwKrhjDHA.2592@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???
    >
    >

    CES Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139