Parser Error

M

Marshall

Hi All,

I am building an asp.net web app using Visual Studio 2003. Today I created
a new folder called 'Secured' at the root of my web app so I could partition
off all of the restricted content. Up until that point the restricted files
were in the root folder of the web app so I moved them to the Secured
folder. From within IIS I made the Secured folder a Vir. Dir. Ever since
then I the following 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 'JailLink.Secured.Login'.

Source Error:


Line 1: <%@ Page language="c#" Codebehind="Login.aspx.cs"
AutoEventWireup="false" Inherits="JailLink.Secured.Login" %>
Line 2: <html>
Line 3: <head>


Source File: c:\inetpub\wwwroot\JailLink\Secured\Login.aspx Line: 1

I tried adding the 'Src' attribute to the Page directive which made
everything work but Visual Studio freaked out about the Src attribute so I
had to remove it.

Thank you for your help,

Marshall
 
S

Steven Cheng[MSFT]

Hi Marshall,

Welcome to ASPNET newsgroup.
Regarding on the "Could not load type...." problem, based on my experience,
it's likely due to the configuration of your "secuired" sub dir. As you
mentioned that you've explicitly create it as a virtual dir, generally this
is not necessary, because each regular folder under a certain virtual dir
is automatically become a sub virtual folder. Have you made that "secured"
sub folder an "Application" ? You can check in the IIS management console
to see whether that virtual dir has an application name. If so, please
remove the application name(don't make it an application) since when we
make a certain folder as a separate application, the pages in it will look
for page class or other component class in the local "bin" dir rather than
its parent app's "bin" dir.

Please have a check on this and if there're any other finding, please feel
free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


--------------------
| From: "Marshall" <[email protected]>
| Subject: Parser Error
| Date: Mon, 12 Sep 2005 15:54:24 -0400
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 66-195-172-195.gen.twtelecom.net 66.195.172.195
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:124017
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi All,
|
| I am building an asp.net web app using Visual Studio 2003. Today I
created
| a new folder called 'Secured' at the root of my web app so I could
partition
| off all of the restricted content. Up until that point the restricted
files
| were in the root folder of the web app so I moved them to the Secured
| folder. From within IIS I made the Secured folder a Vir. Dir. Ever
since
| then I the following 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 'JailLink.Secured.Login'.
|
| Source Error:
|
|
| Line 1: <%@ Page language="c#" Codebehind="Login.aspx.cs"
| AutoEventWireup="false" Inherits="JailLink.Secured.Login" %>
| Line 2: <html>
| Line 3: <head>
|
|
| Source File: c:\inetpub\wwwroot\JailLink\Secured\Login.aspx Line: 1
|
| I tried adding the 'Src' attribute to the Page directive which made
| everything work but Visual Studio freaked out about the Src attribute so
I
| had to remove it.
|
| Thank you for your help,
|
| Marshall
|
|
|
|
|
 
S

Steven Cheng[MSFT]

Hi Marshall,

How are you doing on this issue and are those suggestions in my last reply
of assistance? If there're anything else we can help, please feel free to
post here.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 66066022
| References: <#[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: (e-mail address removed) (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Tue, 13 Sep 2005 02:23:54 GMT
| Subject: RE: Parser Error
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Lines: 79
| Path: TK2MSFTNGXA01.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet:124079
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Marshall,
|
| Welcome to ASPNET newsgroup.
| Regarding on the "Could not load type...." problem, based on my
experience,
| it's likely due to the configuration of your "secuired" sub dir. As you
| mentioned that you've explicitly create it as a virtual dir, generally
this
| is not necessary, because each regular folder under a certain virtual dir
| is automatically become a sub virtual folder. Have you made that
"secured"
| sub folder an "Application" ? You can check in the IIS management console
| to see whether that virtual dir has an application name. If so, please
| remove the application name(don't make it an application) since when we
| make a certain folder as a separate application, the pages in it will
look
| for page class or other component class in the local "bin" dir rather
than
| its parent app's "bin" dir.
|
| Please have a check on this and if there're any other finding, please
feel
| free to post here.
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
|
|
| --------------------
| | From: "Marshall" <[email protected]>
| | Subject: Parser Error
| | Date: Mon, 12 Sep 2005 15:54:24 -0400
| | Lines: 37
| | X-Priority: 3
| | X-MSMail-Priority: Normal
| | X-Newsreader: Microsoft Outlook Express 6.00.3790.1830
| | X-RFC2646: Format=Flowed; Original
| | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
| | Message-ID: <#[email protected]>
| | Newsgroups: microsoft.public.dotnet.framework.aspnet
| | NNTP-Posting-Host: 66-195-172-195.gen.twtelecom.net 66.195.172.195
| | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP15.phx.gbl
| | Xref: TK2MSFTNGXA01.phx.gbl
| microsoft.public.dotnet.framework.aspnet:124017
| | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
| |
| | Hi All,
| |
| | I am building an asp.net web app using Visual Studio 2003. Today I
| created
| | a new folder called 'Secured' at the root of my web app so I could
| partition
| | off all of the restricted content. Up until that point the restricted
| files
| | were in the root folder of the web app so I moved them to the Secured
| | folder. From within IIS I made the Secured folder a Vir. Dir. Ever
| since
| | then I the following 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 'JailLink.Secured.Login'.
| |
| | Source Error:
| |
| |
| | Line 1: <%@ Page language="c#" Codebehind="Login.aspx.cs"
| | AutoEventWireup="false" Inherits="JailLink.Secured.Login" %>
| | Line 2: <html>
| | Line 3: <head>
| |
| |
| | Source File: c:\inetpub\wwwroot\JailLink\Secured\Login.aspx Line: 1
| |
| | I tried adding the 'Src' attribute to the Page directive which made
| | everything work but Visual Studio freaked out about the Src attribute
so
| I
| | had to remove it.
| |
| | Thank you for your help,
| |
| | Marshall
| |
| |
| |
| |
| |
|
|
 

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

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top