Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2006

Tip: Looking for answers? Try searching our database.

The request failed with HTTP status 401: Access Denied

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jdhavo@yahoo.com - 17 Mar 2006 16:57 GMT
I have a webservice that allows all users to access it but am receiving
an access denied message.
IIS virtual directory for application is set to allow annonymous access
with windows authentication.
The annonymous user id is an active directory account
USPHC\COR089SAPDM.
I've entered the password in the password field and unchecked the allow
windows to control password checkbox.

When I change the user in the virtual directory to IUSR_XXXXXXXX, the
webservice works fine.
Here is the web.config for the webservice section.
<location path="WebService/User/pdmUsersV1R0.asmx">
    <system.web>
         <authorization>
        <allow users="*"/>
         </authorization>
    </system.web>
</location>
The everyone group is authorized for nt security to read/execute on the
folder.

Any help would be appreciated.
Thank you,
Clem
Pandurang Nayak - 22 Mar 2006 23:28 GMT
Anonymous users are usually used with the built-in IUSR anonymous account.
The account may have several other priveleges that you might have to find out
and manually set if you are using an AD account.

It is better to leave it with anonymous. If you are changing it for setting
the context for accessing some resource in your ASP code, you should consider
using .NET impersonation and not change the IIS account.

Regards,
Pandurang

Signature

blog: www.thinkingMS.com/pandurang

> I have a webservice that allows all users to access it but am receiving
> an access denied message.
[quoted text clipped - 21 lines]
> Thank you,
> Clem

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.