https and virtual directories

From: Dru Snyder (doob_at_neo.rr.com)
Date: 03/15/05


Date: Tue, 15 Mar 2005 11:31:25 -0500

I've never done a login to a website so please bear with me. What is the
best way to go about this? Do I put all of the pages in a subdirectory that
I want secured and then put a different web.config file in there to specify
Forms authentication and deny all users? I tried to do that, but then I get
this error:

Parser Error Message: It is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This error
can be caused by a virtual directory not being configured as an application
in IIS.

So then I went into IIS and made that subdirectory a virtual directory. I
don't get that error, but no codebehind pages work then. I'm not sure why,
but then 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 'realestate.members.WebForm2'.

Apparently the aspx page can't find the class in it's code-behind page. I
assume because it is it's own virtual directory and the path to the class
isn't correct. I've changed it to everything I could think of, but still no
go.

If anyone has any suggestions regarding this and possibly a good book that
deals with asp.net and ssl that would help, I would greatly appreciate it.

Dru



Relevant Pages

  • Running Aspx Files with forms authentication alongide of asp pages
    ... I have a web page that is created in asp.net and uses FormsAuthentication. ... the actual page and web.config file to a virtual directory on IIS ... Parser Error Message: It is an error to use a section registered as ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • customErrors settings - iis virtual directory problem
    ... when i wanted add a page users get forwarded to when the authentication ... error can be caused by a virtual directory not being configured as an ... so i made the path an IIS virtual dir. ... Parser Error Message: ...
    (microsoft.public.dotnet.framework.aspnet)
  • 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)
  • WebService - Could not create type - ASP 2.0
    ... Parser Error Message: ... The service folder is set up as a virtual directory in IIS, ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Open-Source WilsonWebForm for Multiple Server Forms
    ... That means you have to first compile the demo -- and set it up in IIS as an ... application (virtual directory). ... "TJS" wrote: ... > Parser Error Message: ...
    (microsoft.public.dotnet.framework.aspnet)