Re: Parser error

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: ST (ST_at_discussions.microsoft.com)
Date: 12/14/04


Date: Tue, 14 Dec 2004 12:19:05 -0800

yes!!! that was it!!! thank you! I've been racking my brain for 3 days
now...trying to figure this out. That article helped a LOT! If you have any
other suggestions for articles/books on learning asp...I would really
appreciate it. I'm VERY new to all this, and sort of got thrown into it
without much foundation. (I'm a biologist...turned IT at work).

"Juan T. Llibre [MVP]" wrote:

> Take a look at :
> http://www.dotnetjunkies.com/Tutorial/3623050C-B046-4E7B-A2C7-0934F1105312.dcik
>
> "The Inherits attribute MUST be used with the Src attribute."
>
> You are not using the Src attribute.
> You should be using something like :
>
> <%@ Page Language="VB" Inherits="biopsy.SampleSearch2" Src="SampleSearch2.aspx.vb" %>
>
> Mind you, the correct Page statement will depend on
> what which source files for that Inheritance you're using.
>
> A better alternative would be to compile your source files
> into an assembly, and referencing *them*.
>
>
>
>
> Juan T. Llibre
> ===========
> "ST" <ST@discussions.microsoft.com> wrote in message
> news:C8432F0A-98CF-4253-9527-B66C780DB722@microsoft.com...
> > Sorry if this gets posted twice, it gave me an error when I tried to
> > reply.
> > Anyway, yeah...they're all under Biopsy. I've checked the namespaces.
> > What
> > I did was bring back an old version of the project, and copy in the files
> > I
> > need from the new version. Now I can get past the login page (the first
> > error), but still am getting this second error when I try and access the
> > page:
> >
> > 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 'biopsy.SampleSearch2'.
> >
> > Source Error:
> >
> >
> > Line 1: <%@ Page CodeBehind="SampleSearch2.aspx.vb" Language="vb"
> > AutoEventWireup="false" Inherits="biopsy.SampleSearch2" %>
> > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> > Line 3: <HTML>
> >
> >
> > Source File: c:\inetpub\wwwroot\biopsy\samplesearch2.aspx Line: 1
> >
> >
> > --------------------------------------------------------------------------------
> > Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
> > ASP.NET
> > Version:1.1.4322.2032
> >
> >
> > This is what is at the top of my SampleSearch2.aspx page:
> >
> > <%@ Page CodeBehind="SampleSearch2.aspx.vb" Language="vb"
> > AutoEventWireup="false" Inherits="biopsy.SampleSearch2" %>
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> > <HTML>
> >
> >
> > Anymore ideas? I've tried including/excluding the pages from my project,
> > and it still results in the same error. Thanks!!
> >
> >
> > "Kumar Reddi" wrote:
> >
> >> What is the namespace underwhich all these pages are built under? Is it
> >> biopsy? Can you make sure you got it right in your code behinds?
> >>
> >> --
> >> Kumar Reddi
> >> http://kumarreddi.blogspot.com
> >>
> >> "ST" <ST@discussions.microsoft.com> wrote in message
> >> news:FBFCC3C4-DC8A-44A2-938C-9666DB3609CB@microsoft.com...
> >> > Hi,
> >> > I keep getting the parser error, and I have no idea why. I've tried a
> >> > number of things including:
> >> > 1)building/rebuilding about 100x
> >> > 2)making sure all dll's are in the bin folder in the root of the web
> >> > app
> >> > 3)restarting IIS
> >> > 4)recreating the virtual dir in IIS
> >> > 5)playing with any and all settings I could find for the web app in
> >> > IIS,
> >> > including changing permissions
> >> > 6)recopying the machineconfig file from my asp v1.4... onto my local
> >> server
> >> > from the production server (just in case the file was corrupt).
> >> > 7)plus random other things that I can't remember off the top of my
> >> > head.
> >> >
> >> > I've been working on this problem for 2 days. can someone PLEASE help
> >> me???
> >> > this is what I get if I set my webapp's login page as the start page:
> >> > 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 'biopsy._default'.
> >> >
> >> > Source Error:
> >> >
> >> >
> >> > Line 1: <%@ Register TagPrefix="uc1" TagName="menu" Src="menu.ascx"
> >> > %><%@
> >> > Page Language="vb" AutoEventWireup="false" Codebehind="default.aspx.vb"
> >> > Inherits="biopsy._default"%>
> >> > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> >> > Line 3: <HTML>
> >> >
> >> > Source File: c:\inetpub\wwwroot\biopsy\default.aspx Line: 1
> >> >
> >> >
> >> > **If I change the start page to just the main menu page, then when I
> >> > try
> >> and
> >> > go to my search page from the main menu, I get this 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 'biopsy.SampleSearch2'.
> >> >
> >> > Source Error:
> >> >
> >> >
> >> > Line 1: <%@ Page CodeBehind="SampleSearch2.aspx.vb" Language="vb"
> >> > AutoEventWireup="false" Inherits="biopsy.SampleSearch2" %>
> >> > Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> >> > Transitional//EN">
> >> > Line 3: <HTML>
> >> >
> >> >
> >> > Source File: c:\inetpub\wwwroot\biopsy\SampleSearch2.aspx Line: 1
> >> >
> >> > Can ANYONE please help me??? I've run out of ideas. Thanks in
> >> advance!!!!
> >>
> >>
> >>
>
>