By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,463 Members | 2,954 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,463 IT Pros & Developers. It's quick & easy.

401.2 (Access Denied) Error When Moving Asp.Net to Production

P: n/a
In our dev environment, our ASP.Net application works fine and outside users
can access it when provided with the proper URL.

Once we moved the application to our public server, we now get a 401.2
error. A windows login prompt occurs once the URL is accessed in the
browser and nobody can log in (no login appears on our dev server).

None of the files have changed, and the Virtual Directory is configured
identically to that of our dev server (Windows Authentication enabled,
Anonymous access enabled).

We have other ASP.Net applications which run without any problems on the
production server.

What could be causing this login box and 401.2 error?

_____________________________________________
Access is denied.
Description: An error occurred while accessing the resources required to
serve this request. The server may not be configured for access to the
requested URL.

Error message 401.2.: You do not have permission to view this directory or
page using the credentials you supplied. Contact the Web server's
administrator for help.
_____________________________________________
Nov 19 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Do you have impersonate set to true in the web.config?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"ElGordo" <na**@nothanks.org> wrote in message
news:eU*************@TK2MSFTNGP09.phx.gbl...
In our dev environment, our ASP.Net application works fine and outside
users can access it when provided with the proper URL.

Once we moved the application to our public server, we now get a 401.2
error. A windows login prompt occurs once the URL is accessed in the
browser and nobody can log in (no login appears on our dev server).

None of the files have changed, and the Virtual Directory is configured
identically to that of our dev server (Windows Authentication enabled,
Anonymous access enabled).

We have other ASP.Net applications which run without any problems on the
production server.

What could be causing this login box and 401.2 error?

_____________________________________________
Access is denied.
Description: An error occurred while accessing the resources required to
serve this request. The server may not be configured for access to the
requested URL.

Error message 401.2.: You do not have permission to view this directory or
page using the credentials you supplied. Contact the Web server's
administrator for help.
_____________________________________________

Nov 19 '05 #2

P: n/a
No, I don't.

We didn't have this set in the app hosted on our dev box and public users
can access it remotely without any problems.

Is this an attribute of <authentication mode="Windows" /> ?

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...
Do you have impersonate set to true in the web.config?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"ElGordo" <na**@nothanks.org> wrote in message
news:eU*************@TK2MSFTNGP09.phx.gbl...
In our dev environment, our ASP.Net application works fine and outside
users can access it when provided with the proper URL.

Once we moved the application to our public server, we now get a 401.2
error. A windows login prompt occurs once the URL is accessed in the
browser and nobody can log in (no login appears on our dev server).

None of the files have changed, and the Virtual Directory is configured
identically to that of our dev server (Windows Authentication enabled,
Anonymous access enabled).

We have other ASP.Net applications which run without any problems on the
production server.

What could be causing this login box and 401.2 error?

_____________________________________________
Access is denied.
Description: An error occurred while accessing the resources required to
serve this request. The server may not be configured for access to the
requested URL.

Error message 401.2.: You do not have permission to view this directory
or page using the credentials you supplied. Contact the Web server's
administrator for help.
_____________________________________________


Nov 19 '05 #3

P: n/a
Hmmm....

I added the line <identity impersonate="true" /> under the <system.web>
element and now we can access that application remotely without any
permissions issues.

Thanks- I was not aware of this setting.

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...
Do you have impersonate set to true in the web.config?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"ElGordo" <na**@nothanks.org> wrote in message
news:eU*************@TK2MSFTNGP09.phx.gbl...
In our dev environment, our ASP.Net application works fine and outside
users can access it when provided with the proper URL.

Once we moved the application to our public server, we now get a 401.2
error. A windows login prompt occurs once the URL is accessed in the
browser and nobody can log in (no login appears on our dev server).

None of the files have changed, and the Virtual Directory is configured
identically to that of our dev server (Windows Authentication enabled,
Anonymous access enabled).

We have other ASP.Net applications which run without any problems on the
production server.

What could be causing this login box and 401.2 error?

_____________________________________________
Access is denied.
Description: An error occurred while accessing the resources required to
serve this request. The server may not be configured for access to the
requested URL.

Error message 401.2.: You do not have permission to view this directory
or page using the credentials you supplied. Contact the Web server's
administrator for help.
_____________________________________________


Nov 19 '05 #4

P: n/a
no, it's an attribute of the <identity> element, if you don't have one
(which you likely don't) it defaults to false, so that's not likely your
problem.

I take it you also don't have a <deny> element under authorization?

It might be a ntfs permission problem..the anonymous user might not have
access...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"ElGordo" <na**@nothanks.org> wrote in message
news:e1**************@TK2MSFTNGP12.phx.gbl...
No, I don't.

We didn't have this set in the app hosted on our dev box and public users
can access it remotely without any problems.

Is this an attribute of <authentication mode="Windows" /> ?

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...
Do you have impersonate set to true in the web.config?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"ElGordo" <na**@nothanks.org> wrote in message
news:eU*************@TK2MSFTNGP09.phx.gbl...
In our dev environment, our ASP.Net application works fine and outside
users can access it when provided with the proper URL.

Once we moved the application to our public server, we now get a 401.2
error. A windows login prompt occurs once the URL is accessed in the
browser and nobody can log in (no login appears on our dev server).

None of the files have changed, and the Virtual Directory is configured
identically to that of our dev server (Windows Authentication enabled,
Anonymous access enabled).

We have other ASP.Net applications which run without any problems on the
production server.

What could be causing this login box and 401.2 error?

_____________________________________________
Access is denied.
Description: An error occurred while accessing the resources required to
serve this request. The server may not be configured for access to the
requested URL.

Error message 401.2.: You do not have permission to view this directory
or page using the credentials you supplied. Contact the Web server's
administrator for help.
_____________________________________________



Nov 19 '05 #5

P: n/a
You probably want to read up on the feature before enabling it. It can
certainly have some unexpected effects..i wouldn't expect this to be your
final solution...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"ElGordo" <na**@nothanks.org> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hmmm....

I added the line <identity impersonate="true" /> under the <system.web>
element and now we can access that application remotely without any
permissions issues.

Thanks- I was not aware of this setting.

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...
Do you have impersonate set to true in the web.config?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"ElGordo" <na**@nothanks.org> wrote in message
news:eU*************@TK2MSFTNGP09.phx.gbl...
In our dev environment, our ASP.Net application works fine and outside
users can access it when provided with the proper URL.

Once we moved the application to our public server, we now get a 401.2
error. A windows login prompt occurs once the URL is accessed in the
browser and nobody can log in (no login appears on our dev server).

None of the files have changed, and the Virtual Directory is configured
identically to that of our dev server (Windows Authentication enabled,
Anonymous access enabled).

We have other ASP.Net applications which run without any problems on the
production server.

What could be causing this login box and 401.2 error?

_____________________________________________
Access is denied.
Description: An error occurred while accessing the resources required to
serve this request. The server may not be configured for access to the
requested URL.

Error message 401.2.: You do not have permission to view this directory
or page using the credentials you supplied. Contact the Web server's
administrator for help.
_____________________________________________



Nov 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.