FormsAuthentication and Local Intranet Zone

C

C. Moya

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

C. Moya

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.
 

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,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top