Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Running Aspx Files with forms authentication alongide of asp pages

Reply
Thread Tools

Running Aspx Files with forms authentication alongide of asp pages

 
 
kleykir
Guest
Posts: n/a
 
      08-19-2005
I have a web page that is created in asp.net and uses FormsAuthentication.
All of the info for this is set in web.config file.. I copied the login
page, the actual page and web.config file to a virtual directory on IIS
which has a bunch of other asp pages that belong to the site..

Can I do this? also..when i tried doing this i got an 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.

Source Error:

Line 5: <system.web>
Line 6:
Line 7: <authentication mode="Forms">
Line 8: <forms name=".ASPXAUTH" loginUrl="RightsLogin.aspx" />
Line 9: </authentication>



Thank you in advance
-Kleykir


 
Reply With Quote
 
 
 
 
Dominick Baier [DevelopMentor]
Guest
Posts: n/a
 
      08-20-2005
Hello kleykir,

you have to mark the virtual dir as an application in IIS

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> I have a web page that is created in asp.net and uses
> FormsAuthentication. All of the info for this is set in web.config
> file.. I copied the login page, the actual page and web.config file to
> a virtual directory on IIS which has a bunch of other asp pages that
> belong to the site..
>
> Can I do this? also..when i tried doing this i got an 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.
>
> Source Error:
>
> Line 5: <system.web>
> Line 6:
> Line 7: <authentication mode="Forms">
> Line 8: <forms name=".ASPXAUTH" loginUrl="RightsLogin.aspx" />
> Line 9: </authentication>
> Thank you in advance
> -Kleykir




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
passing variables from .aspx.cs code pages to .aspx pages RadioSignal ASP .Net Web Controls 7 10-21-2005 11:41 PM
Securing non aspx pages with forms authentication?? joebickley@gmail.com ASP .Net 2 10-06-2005 04:18 PM
forms authentication: redirects for *.aspx pages only, not for other extensions, not for static content www.MSmobiles.com ASP .Net 1 07-18-2004 11:03 AM
Forms Authentication question: How to have some pages open and some requiring forms authentication Eric ASP .Net 2 02-13-2004 02:14 PM



Advertisments