Re: Parser error



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

"ST" wrote:

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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C8432F0A-98CF-4253-9527-B66C780DB722@xxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FBFCC3C4-DC8A-44A2-938C-9666DB3609CB@xxxxxxxxxxxxxxxx
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!!!!





.



Relevant Pages

  • 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
    ... > I keep getting the parser error, and I have no idea why. ... > 4)recreating the virtual dir in IIS ... > details and modify your source file appropriately. ... > Parser Error Message: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help interpreting error?
    ... parse error details and modify your source file appropriately. ... Parser Error Message: The file '/index.ascx.cs' does not exist. ... However, in the second case, you must refer to the file without the "CodeFile" attribute, but using the "Inherits" attribute only. ... inherits="ControlName, AssemblyName" ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: VS.NET Newbie Q NEED help plez!!!
    ... Please review the following specific parse error details and modify your source file appropriately. ... Parser Error Message: ... Public Class ShoppingCart ... End Sub ...
    (microsoft.public.dotnet.framework.aspnet)
  • Parser error with SQLWEbAdmin Sample
    ... Recently i installed SQLWebadmin sample from the microsoft's website. ... to our live server. ... i get a parser error as follows: ... parse error details and modify your source file appropriately. ...
    (microsoft.public.dotnet.framework)