Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > FormsAuthentication and Local Intranet Zone

Reply
Thread Tools

FormsAuthentication and Local Intranet Zone

 
 
C. Moya
Guest
Posts: n/a
 
      04-08-2007
I'm a bit stumped by this one: It seems that when I connect to my
application using the server's intranet name (http://intranetserver/MyApp/)
FormsAuthentication kicks back the user to the Login page after I call
RedirectFromLoginPage. It works fine if I access the server by IP address
(http://xx.xx.xx.xx) and if I access the server over its public domain name
(http://www.myserver.com).

Why is this happening?
I have IIS set to Anonymous Auth. Windows Auth is disabled. My web.config
auth section looks like this
<authentication mode="Forms">
<forms name=".MyAppAuth" loginUrl="Logon.aspx"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>

--
-C. Moya
www.cmoya.com


 
Reply With Quote
 
 
 
 
C. Moya
Guest
Posts: n/a
 
      04-10-2007
Believe it or not, we've discovered this is caused by underscores in the
server's name. (http://our_dev_server). We changed the underscores to
dashes, and everything now works.

I think this is a known issue going back to ASP.Classic(?). Not sure.

--
-C. Moya
www.cmoya.com

"C. Moya" <> wrote in message
news:...
> I'm a bit stumped by this one: It seems that when I connect to my
> application using the server's intranet name
> (http://intranetserver/MyApp/) FormsAuthentication kicks back the user to
> the Login page after I call RedirectFromLoginPage. It works fine if I
> access the server by IP address (http://xx.xx.xx.xx) and if I access the
> server over its public domain name (http://www.myserver.com).
>
> Why is this happening?
> I have IIS set to Anonymous Auth. Windows Auth is disabled. My web.config
> auth section looks like this
> <authentication mode="Forms">
> <forms name=".MyAppAuth" loginUrl="Logon.aspx"/>
> </authentication>
> <authorization>
> <deny users="?"/>
> </authorization>
>
> --
> -C. Moya
> www.cmoya.com
>



 
Reply With Quote
 
 
 
 
C. Moya
Guest
Posts: n/a
 
      04-10-2007
And here's a link that explains the problem:
http://www.hanselman.com/blog/Obscur...rverNames.aspx

"C. Moya" <> wrote in message
news:...
> Believe it or not, we've discovered this is caused by underscores in the
> server's name. (http://our_dev_server). We changed the underscores to
> dashes, and everything now works.
>
> I think this is a known issue going back to ASP.Classic(?). Not sure.
>
> --
> -C. Moya
> www.cmoya.com
>
> "C. Moya" <> wrote in message
> news:...
>> I'm a bit stumped by this one: It seems that when I connect to my
>> application using the server's intranet name
>> (http://intranetserver/MyApp/) FormsAuthentication kicks back the user to
>> the Login page after I call RedirectFromLoginPage. It works fine if I
>> access the server by IP address (http://xx.xx.xx.xx) and if I access the
>> server over its public domain name (http://www.myserver.com).
>>
>> Why is this happening?
>> I have IIS set to Anonymous Auth. Windows Auth is disabled. My web.config
>> auth section looks like this
>> <authentication mode="Forms">
>> <forms name=".MyAppAuth" loginUrl="Logon.aspx"/>
>> </authentication>
>> <authorization>
>> <deny users="?"/>
>> </authorization>
>>
>> --
>> -C. Moya
>> www.cmoya.com
>>

>
>



 
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
Javascript does not run in intranet zone? Harrysmithsteven@gmail.com Javascript 0 09-29-2008 05:41 PM
Running Applications from our Local Intranet page only? Advo HTML 11 06-29-2006 09:01 PM
prevent a postback when moving web parts from zone to zone. =?Utf-8?B?VmluY2UgVmFyYWxsbw==?= ASP .Net 0 02-08-2006 12:20 AM
Zone Alarm or Zone Alarm Pro? Jones Computer Information 5 02-20-2004 07:29 PM
Serious Bug: FormsAuthentication over Intranet MS Listen Up!!!!! Mark Olbert ASP .Net 19 01-17-2004 03:57 AM



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