Parser error

G

Guest

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!!!!
 
K

Kumar Reddi

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 said:
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!!!!
 
G

Guest

yup, they're all under Biopsy...I've checked that the name space is correct.
What I've done is I'm using an old version of my project, and copied the new
files into the project...so now I can get past the first error, but now I get:
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


I've tried including/excluding that page from the project...and get the same
result. This is what it says on top of the 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>
<HEAD>
<title>Untitled Document</title>
..
..
..
..

anymore ideas? Thanks!!
 
G

Guest

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!!
 
J

Juan T. Llibre [MVP]

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
===========
 
G

Guest

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).
 
G

Guest

I followed this thread thinking - wow! this is my problem...

I've got the following...

- A web.config that appears fine
- An application that I compile with no errors - repeatedly
- A virtual directory where the application has been created

I get the message cannot load type XXXX.Global...

If I change my codebehind directive to src I get XXXX.Global is not defined
in the file specified - when it clearly is and was never touched.

If I try to load default.aspx and remove the codebehind and inherits from
global,asax, I get cannot load type XXXX._default, which is the class name
for the default page.

If I migrate the solution to another machine and setup a virtual app - I get
the same issue; thus ruling out an issue with IIS - I think.

Can anyone think of what the problem might be? Please remember, it was
running fine and then not. This is urgent as I'm on a tight deadline with
currently a dead solution.

Thanks,

- Nick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Parser Error: 0
Parser Error: Could not load type 1
Parser Error 3
parser error 0
Parser Error 0
Parser Error 2
Parser error 2
Parser Error 2

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top