Hi all,
We have a web application that uses web services for data access and
retrieval. The web app and web services reside under IIS on the same
server(WIN2003) . The virtual directories have been set for windows
authentication and both the ASP web application and the web services are
using windows authentication with impersonation of the logged on user. We
also set the web service credentials to CredentialCache .DefaultCredent ials.
Web application access in general is fine, but, when the web app calls the
web service we get a 401. Unauthorised access. Add the web site to either
intranet zone or trusted sites and all access is OK. (which suggest zone
settings but I cant find the setting causing the security problem.)
There is also another odd thing... If you browse to the web service via the
IIS console, enter the credentials, the web service access is fine even if it
is not in trusted sites or intranet zone???? Therefore the issue seems to be
with the app passing credentials to the web service but why adding to trusted
or intranet zone should rectify the problem - I'm confused......
Anyone got any ideas why? Is there a security setting I should be setting
somewhere. Any info would be appreciated. 4 3613
Pete,
We have had some problems with authentication in the Intranet zone as well.
It may be worth checking the IE setting under the Security tab to ensure that
the User Authentication is set to 'Automatic logon only in Intranet zone'. It
may also be that the URL is not always being recognised as an Intranet
location, on advise from MS we have had to use Group Policy to distribute a
list of URL's to IE that it must recognise as Intranet locations which seems
to have solved our problems.
"TrinityPet e" wrote: Hi all,
We have a web application that uses web services for data access and retrieval. The web app and web services reside under IIS on the same server(WIN2003) . The virtual directories have been set for windows authentication and both the ASP web application and the web services are using windows authentication with impersonation of the logged on user. We also set the web service credentials to CredentialCache .DefaultCredent ials.
Web application access in general is fine, but, when the web app calls the web service we get a 401. Unauthorised access. Add the web site to either intranet zone or trusted sites and all access is OK. (which suggest zone settings but I cant find the setting causing the security problem.)
There is also another odd thing... If you browse to the web service via the IIS console, enter the credentials, the web service access is fine even if it is not in trusted sites or intranet zone???? Therefore the issue seems to be with the app passing credentials to the web service but why adding to trusted or intranet zone should rectify the problem - I'm confused......
Anyone got any ideas why? Is there a security setting I should be setting somewhere. Any info would be appreciated.
Paul,
Thanks for the reply, we do have auto logon in intranet zone etc. but our
problem is the reverse - if not in intranet zone or trusted zone get
unauthorised, add the site to intranet or trusted and authentication works??
We have already had some issues with authentication specifically with
Windows authentication where host headers are used. If the host header doesnt
match machine netbios name, then windows authentication fails. Resolution in
this case is to use setspn from toolkit to add special names for Server in AD
that matches the host header.
Pete
"Paul Hasell" wrote: Pete,
We have had some problems with authentication in the Intranet zone as well. It may be worth checking the IE setting under the Security tab to ensure that the User Authentication is set to 'Automatic logon only in Intranet zone'. It may also be that the URL is not always being recognised as an Intranet location, on advise from MS we have had to use Group Policy to distribute a list of URL's to IE that it must recognise as Intranet locations which seems to have solved our problems.
"TrinityPet e" wrote:
Hi all,
We have a web application that uses web services for data access and retrieval. The web app and web services reside under IIS on the same server(WIN2003) . The virtual directories have been set for windows authentication and both the ASP web application and the web services are using windows authentication with impersonation of the logged on user. We also set the web service credentials to CredentialCache .DefaultCredent ials.
Web application access in general is fine, but, when the web app calls the web service we get a 401. Unauthorised access. Add the web site to either intranet zone or trusted sites and all access is OK. (which suggest zone settings but I cant find the setting causing the security problem.)
There is also another odd thing... If you browse to the web service via the IIS console, enter the credentials, the web service access is fine even if it is not in trusted sites or intranet zone???? Therefore the issue seems to be with the app passing credentials to the web service but why adding to trusted or intranet zone should rectify the problem - I'm confused......
Anyone got any ideas why? Is there a security setting I should be setting somewhere. Any info would be appreciated.
Pete,
That's what I was trying to say, there seem to be some circumstances when IE
fails to correctly identify a location which should be in the intranet as
actually being in the intranet so you have to force the issue and tell it
explicity. Do you use a configuration script for your IE proxy settings?
"TrinityPet e" wrote: Paul,
Thanks for the reply, we do have auto logon in intranet zone etc. but our problem is the reverse - if not in intranet zone or trusted zone get unauthorised, add the site to intranet or trusted and authentication works??
We have already had some issues with authentication specifically with Windows authentication where host headers are used. If the host header doesnt match machine netbios name, then windows authentication fails. Resolution in this case is to use setspn from toolkit to add special names for Server in AD that matches the host header.
Pete
"Paul Hasell" wrote:
Pete,
We have had some problems with authentication in the Intranet zone as well. It may be worth checking the IE setting under the Security tab to ensure that the User Authentication is set to 'Automatic logon only in Intranet zone'. It may also be that the URL is not always being recognised as an Intranet location, on advise from MS we have had to use Group Policy to distribute a list of URL's to IE that it must recognise as Intranet locations which seems to have solved our problems.
"TrinityPet e" wrote:
Hi all,
We have a web application that uses web services for data access and retrieval. The web app and web services reside under IIS on the same server(WIN2003) . The virtual directories have been set for windows authentication and both the ASP web application and the web services are using windows authentication with impersonation of the logged on user. We also set the web service credentials to CredentialCache .DefaultCredent ials.
Web application access in general is fine, but, when the web app calls the web service we get a 401. Unauthorised access. Add the web site to either intranet zone or trusted sites and all access is OK. (which suggest zone settings but I cant find the setting causing the security problem.)
There is also another odd thing... If you browse to the web service via the IIS console, enter the credentials, the web service access is fine even if it is not in trusted sites or intranet zone???? Therefore the issue seems to be with the app passing credentials to the web service but why adding to trusted or intranet zone should rectify the problem - I'm confused......
Anyone got any ideas why? Is there a security setting I should be setting somewhere. Any info would be appreciated.
I see - I was missing your point.....
What you are saying, please correct me if I am wrong....
You shouldn't have to add to intranet zone, IE should automatically detect
that it is intranet, you shouldn't have to force the issue by adding to
intranet zone.
We dont use configuration scripts for IE, and we dont use a proxy......
Just a little 'aside' - if this wasn't an intranet site, but a live outward
facing site, but access to the site was using windows authentication, ie.
site designed for staff access from external clients, then IE wouldn't detect
that it is in the intranet zone as it isnt, but the scenario I have described
would still require adding to trusted site before web services authenticate
properly. Is it that credentials are only automatically sent (depending on
setting) if you are in intranet zone or trusted site and no credentials are
sent for internet zone (even with the automatic logon with current username
and password - setting set)
"Paul Hasell" wrote: Pete,
That's what I was trying to say, there seem to be some circumstances when IE fails to correctly identify a location which should be in the intranet as actually being in the intranet so you have to force the issue and tell it explicity. Do you use a configuration script for your IE proxy settings?
"TrinityPet e" wrote:
Paul,
Thanks for the reply, we do have auto logon in intranet zone etc. but our problem is the reverse - if not in intranet zone or trusted zone get unauthorised, add the site to intranet or trusted and authentication works??
We have already had some issues with authentication specifically with Windows authentication where host headers are used. If the host header doesnt match machine netbios name, then windows authentication fails. Resolution in this case is to use setspn from toolkit to add special names for Server in AD that matches the host header.
Pete
"Paul Hasell" wrote:
Pete,
We have had some problems with authentication in the Intranet zone as well. It may be worth checking the IE setting under the Security tab to ensure that the User Authentication is set to 'Automatic logon only in Intranet zone'. It may also be that the URL is not always being recognised as an Intranet location, on advise from MS we have had to use Group Policy to distribute a list of URL's to IE that it must recognise as Intranet locations which seems to have solved our problems.
"TrinityPet e" wrote:
> Hi all, > > We have a web application that uses web services for data access and > retrieval. The web app and web services reside under IIS on the same > server(WIN2003) . The virtual directories have been set for windows > authentication and both the ASP web application and the web services are > using windows authentication with impersonation of the logged on user. We > also set the web service credentials to CredentialCache .DefaultCredent ials. > > Web application access in general is fine, but, when the web app calls the > web service we get a 401. Unauthorised access. Add the web site to either > intranet zone or trusted sites and all access is OK. (which suggest zone > settings but I cant find the setting causing the security problem.) > > There is also another odd thing... If you browse to the web service via the > IIS console, enter the credentials, the web service access is fine even if it > is not in trusted sites or intranet zone???? Therefore the issue seems to be > with the app passing credentials to the web service but why adding to trusted > or intranet zone should rectify the problem - I'm confused...... > > Anyone got any ideas why? Is there a security setting I should be setting > somewhere. Any info would be appreciated. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: hellrazor |
last post by:
Hi there,
I'm very new to dot net programming and webservices programming. I've
managed to create simple webservices so far.
Here's my problem:
-I've been given a project which needs to have a proprietary algorithm
split into a webservice.
|
by: Nalaka |
last post by:
Hi,
I am testing with Visual studio 2005, web projects.
Situation:
I have one solution with two web projects, created as file system projects.
(I am tesing using the built in server, not IIS)
First project is a webService.
Second consumes the webservices by the first.
|
by: Miguel |
last post by:
Hi,
I'm developing an application in C# with Windows Forms for my company
that is similar to the MSN Messenger. This application uses a
webservice for registering users, etc... and as 2 webbrowser controls
on it. Besides that i'm using the firewall client for isa server 2004
and it seems that the browsers aren't able to pass thru it... if i
disable the firewall the browsers work fine, if i don't, the 2
browsers just stay there...
|
by: Topper |
last post by:
Hello.
I have simple web folders structure:
-ROOT
- BIN
WebService.dll
WebService.asmx
I need to use my WebService.dll not in bin folder - for example, in ROOT.
How do i this?
How can i do this without .config file only with some configuration
|
by: Mr Bojangles |
last post by:
Hi,
I want a do the following:
From a (client side) web form, post to server side script (I'm using
Javascript but anything will do), which in turn--and this is the important
bit that I can't find out how to do--calls a webservice on a separate
server...
Client ASP server (no .net)
| |
by: Thom Little |
last post by:
I have a simple web service that requires no input and returns a character
string.
I created the service and FTPd it to a remote server. The .dll to the .bin
directory and the single .asmx file to a directory called Services.
When referenced from a webapplication running on localhost it operates
correctly.
When referenced from a webapplication running on the same remote server as
the webservice it operates correctly.
|
by: Iain Adams |
last post by:
I currently have a web service set that returns data. When I use these
services through a browser, everything works fine and the resulting xml
is displayed. However sometimes when I connect to the scripts using a
php script I get the error message Http 401: Unauthorised. This usually
happens after a short time, when the webservices have not been used. I
am connecting to the webservices using Http Post and cURL.
|
by: Boni |
last post by:
I want consuming a webserivce trough a proxy. I use this code.
myService s = new myService ();
System.Net.WebProxy proxyObject = new
System.Net.WebProxy("http://proxyhost:8080");
s.Proxy = proxyObject;
It doesn't works, it returns a error
HTTP 407: Proxy Authentication Required ( Access is denied. ).
But my proxy don't need a user Authentication.
|
by: smlchris |
last post by:
I have encountered the following error message when I tried to login to website (though they have provided us the user id and password).
You are not authorised to view this page.
HTTP Error 401.2 - unauthorised : Access is denied due to server configuration.
Internet Information Service (IIS)
Anybody has a solution ?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |