Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Authentication problems

Reply
Thread Tools

Authentication problems

 
 
Freddy
Guest
Posts: n/a
 
      06-15-2004
Hi,

I have implemented Forms authentication in my website. But I am getting "You
are not authorized to view this page" when i try to access a protected file
in folder2.

In the root of the website there are two folders(folder1 and folder2) and
many other .aspx files.
Files in folder2 are protected. Login page is in folder2. Web.config file in
folder2 is as follows,

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
<location path="existinguserslogin.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
</configuration>

This error is happening only when I uploaded the website to the production
server(win 2003). On development server(Win 2000 Adv) evrything works fine.

Can anyone guide me as to what is going wrong

Freddy


 
Reply With Quote
 
 
 
 
Freddy
Guest
Posts: n/a
 
      06-16-2004
Thanks ranganh.

In the IIS control pnale under WebServices extension asp.net allowed is
there.
I figured out the problem. I am trying to access the protected pages using
https: and in the web.config file in the root folder I am using https in the
loginUrl for the form authentication. I removed this https and specified the
file name directly and it worked.

Freddy

"ranganh" <> wrote in message
news:B30BA3E2-93AC-407C-A11D-...
> Dear Freddy,
>
> First let me know if you are able to access other pages.
>
> Basically in Windows 2003, asp.net is prohibited by default and you have

to enable the same.
>
> Go to IIS Control panel and check the WebServices Extension. It will

display a list of accounts. Make the asp.net "Allowed". That would solve
the problem.
>
> If you have done that already and are able to browse the other pages, let

me know.
>
> Thanks.
>
>
>
> "Freddy" wrote:
>
> > Hi,
> >
> > I have implemented Forms authentication in my website. But I am getting

"You
> > are not authorized to view this page" when i try to access a protected

file
> > in folder2.
> >
> > In the root of the website there are two folders(folder1 and folder2)

and
> > many other .aspx files.
> > Files in folder2 are protected. Login page is in folder2. Web.config

file in
> > folder2 is as follows,
> >
> > <?xml version="1.0" encoding="utf-8" ?>
> > <configuration>
> > <system.web>
> > <authorization>
> > <deny users="?" />
> > </authorization>
> > </system.web>
> > <location path="existinguserslogin.aspx">
> > <system.web>
> > <authorization>
> > <allow users="?"/>
> > </authorization>
> > </system.web>
> > </location>
> > </configuration>
> >
> > This error is happening only when I uploaded the website to the

production
> > server(win 2003). On development server(Win 2000 Adv) evrything works

fine.
> >
> > Can anyone guide me as to what is going wrong
> >
> > Freddy
> >
> >
> >



 
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
Failed Authentication, Status "Unsupported Authentication Algorithm" Rafael Cisco 1 11-26-2004 03:57 PM
Basic Authentication v. Integrated Windows Authentication w/ Delegation Mark ASP .Net 0 01-20-2004 03:13 PM
ASP.Net Forms authentication with basic authentication popup Brett Porter ASP .Net 2 01-20-2004 02:17 PM
Moving from Baisc Authentication to Forms Authentication raj mandadi ASP .Net 0 12-22-2003 12:16 AM
Forms Authentication, external authentication server, & rerouting to orig. req. URL Andrew Connell ASP .Net 1 10-21-2003 05:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57