473,396 Members | 2,039 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,396 software developers and data experts.

Authorization not working as expected

las
I have created a web service and a simple ASP.Net page that makes calls
to the web service (the page roughly mimics the standard Visual Studio
web service test page).

Running on //localhost, if I disable Windows Authentication in IIS,
both my test page and the VS test page work just fine. But if I enable
Windows Authentication, my test page gives a (401) Unauthorized error
when it tries to call a web service function. Calls from the VS test
page work fine.

My web service web.config has:
<authentication mode="Windows" />
<authorization>
<allow users="*" verbs="*" />
</authorization>

My test page web.config has:
<authentication mode="Windows" />
<!-- <identity impersonate="true" /--I've tried this both ways
<authorization>
<allow users="*" />
</authorization>

machine.config also sets windows authentication and allow users=*

More info:
For testing, I created a simple web service method that returns the
current user name (User.Identity.Name). The method returns the correct
user name, indicating that windows authentication is working (of
course, I only see this when using the VS test form to make the call).

I also display the current user name on my test form, and it is
correct.
I am flailing! Any ideas why I get the unauthorized error?

Thanks!
Lee

Aug 17 '06 #1
1 1313
las
Whoops! I missed the section in the documentation that says: "To pass
client credentials to an XML Web service using Windows authentication"

I didn't realize that my client had to *send* this info -- on an
intranet I assumed that it just happend.

Back to the books....

Lee

Aug 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: J055 | last post by:
Ver. VS2005 Hi I'm using forms authentication and have set the authorization element to deny anonymous users. This works fine except that when I view the login.aspx page as an unauthenticated...
1
by: Anthony Small | last post by:
Hello, I have a login.aspx page that is associated with a theme. When I view the page login.aspx with forms authentication/authorization set as below in the web.config file the theme displays on...
0
by: ronscottlangham | last post by:
I have a web page that any authenticated user can access, but I dynamically enable/disable other asp.net controls on the web page based on the Role that they are in via C# code behind. My web...
3
by: Jonathan Wood | last post by:
I have a subfolder on my Website that contains images. It also contains the web.config file shown below. When I access the site, I get the Login page as expected. But if I type in the URL of an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.