473,395 Members | 1,452 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,395 software developers and data experts.

Default credentials not working

When trying to connect to my web service from a client application, the
System.Net.CredentialCache.DefaultCredentials doesn't authenticate
properly.

I can see in the event viewer on the server (windows server 2003) that
my domain/username are getting passed properly but it gives a 529
error. If I hard code in my credentials using:
Service.Credentials = new System.Net.NetworkCredential("Username",
"Password", "Domain")
it authenticates properly.

Is there some sort of intermediary user account that doesn't have the
proper priveleges?

Also, in the web.config I've set <identity impersonate="true"/and
<authentication mode="windows"/>
In IIS I have anonymous access turned off and integrated windows
authentication turned on.

Nov 15 '06 #1
2 5946
Hi,

Have you configured the IIS virtual directory to use Windows Authentication
?. According to what you said, it seems like you configured the virtual
directory with Basic Authentication.
The DefaultCredentials only work with Windows Authentication.

Regards,
Pablo Cibraro.

<mb****@gmail.comwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...
When trying to connect to my web service from a client application, the
System.Net.CredentialCache.DefaultCredentials doesn't authenticate
properly.

I can see in the event viewer on the server (windows server 2003) that
my domain/username are getting passed properly but it gives a 529
error. If I hard code in my credentials using:
Service.Credentials = new System.Net.NetworkCredential("Username",
"Password", "Domain")
it authenticates properly.

Is there some sort of intermediary user account that doesn't have the
proper priveleges?

Also, in the web.config I've set <identity impersonate="true"/and
<authentication mode="windows"/>
In IIS I have anonymous access turned off and integrated windows
authentication turned on.

Nov 17 '06 #2
Like I said above, I have integrated windows authentication turned on.

Pablo Cibraro [MVP] wrote:
Hi,

Have you configured the IIS virtual directory to use Windows Authentication
?. According to what you said, it seems like you configured the virtual
directory with Basic Authentication.
The DefaultCredentials only work with Windows Authentication.

Regards,
Pablo Cibraro.

<mb****@gmail.comwrote in message
news:11*********************@e3g2000cwe.googlegrou ps.com...
When trying to connect to my web service from a client application, the
System.Net.CredentialCache.DefaultCredentials doesn't authenticate
properly.

I can see in the event viewer on the server (windows server 2003) that
my domain/username are getting passed properly but it gives a 529
error. If I hard code in my credentials using:
Service.Credentials = new System.Net.NetworkCredential("Username",
"Password", "Domain")
it authenticates properly.

Is there some sort of intermediary user account that doesn't have the
proper priveleges?

Also, in the web.config I've set <identity impersonate="true"/and
<authentication mode="windows"/>
In IIS I have anonymous access turned off and integrated windows
authentication turned on.
Nov 17 '06 #3

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

Similar topics

4
by: Jamie | last post by:
I'm trying to create a HttpWebRequest object that uses the current logged in users credentials. The site is using Windows Authentication, Anonymous access is turned off. Will the HttpWebRequest...
3
by: Jørn A. | last post by:
I'm working on a web based user interface for a job scheduling system (running scripts). The system is using a non-windows scheduler software, but it's installed and running as a windows...
4
by: clintonG | last post by:
When VS.NET creates a web.config file it writes a default <authentication mode="Windows" /> entry. Let me see if I got this right... 1.) It does so because I am running locally and my local...
3
by: Wild Wind | last post by:
Hello, I have an application which calls a web service across the Internet from a client machine. The site that I have deployed the application to is such that to browse the Internet using a...
1
by: TrinityPete | last post by:
Hi all, I have a little problem that is really bugging me. I have a windows forms application that calls a web service (VS2005 and Framework 2). As part of the call to the web service I set the...
0
by: ndskim | last post by:
Currently I have the Web Services Proxy code generated by the WSDL.Exe command line. My Web app consists of ASP.NET in VB 2005 version. Here is what I have in the sample code: ' Set Proxy...
4
by: dk9 | last post by:
The Situation: I'm working in my browser at a secured site (https). At the same time I need my application to get and parse some urls from that same site. What I've tried: I've login with my...
2
by: IronMike | last post by:
I'm writing a program that needs to write files to a network share. My problem is that the program users are working on PCs that are not connected to our domain and the program needs to save files to...
0
by: =?Utf-8?B?QXR1bFN1cmVrYQ==?= | last post by:
Hi I have a two virtual directories(say VD 1 & VD2) hosted on same web server. Both are configured to use Windows NT authentication. I hosted some web pages to VD1 and there is web service...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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
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...

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.