473,408 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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

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
5 7388
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

33
by: Savas Ates | last post by:
in asp page im getting this error how can i solve it.. yesterday the codes work but i setup visual studio 6.0 now it doesnt works..
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
2
by: Marc | last post by:
Here is a new error I am getting. I have a development computer (Server 2000, SQL2000, .NET 1.1) I have a production computer (Server 2003, SQL2000, .NET 1.1) When I run my solution on the...
3
by: Marc | last post by:
Here is a new error I am getting. I have a development computer (Server 2000, SQL2000, .NET 1.1) I have a production computer (Server 2003, SQL2000, .NET 1.1) When I run my solution on the...
0
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To =...
12
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty...
2
by: rockdale | last post by:
Hi, all: My asp.net application calles MS speech 5.1 and generate a wav file on server's path. Everything runs perfectly on my development machine. But when I move the appl to production server,...
0
by: grgimpy | last post by:
My form has two main text boxes that are not working correctly with the code I wrote. Upon opening the form, the operator must select a "Part Number" from a list box. Once a "Part Number" is...
0
by: Andy | last post by:
Thanks Peter, I thought I'd give an update on this problem. My application had 2 assemblies that contained classed for the Data access and business logic layer. It was on one of them that I was...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.