Here's the setup:
Windows 2003 running .net 1.1 webservice with Integrated Authentication set.
Client machine running .net 1.1 on xp pro with latest service packs and
updates.
User also has Solomon 6.0, Microsoft Office Basic and Microsoft Office
Profesional, Acrobat reader, Adobe Acrobat. Otherwise, is a standard
machine setup from Dell.
Here's the problem:
When THIS user logs onto THIS machine, no matter what we do, the credentials
never seem to be passed to the webservice, so the service always fails.
When the user logs onto another machine, the application works as expected.
35 other users also use the application with no problems. When other users
log onto this machine, the application works without a problem.
One other user has Solomon 6.0 installed, and he is able to use the
application. The user can log onto the web service using Internet Explorer
and authenticate without a problem.
We've done the knowledge base suggestions and even went so far as to attempt
prompting of login credentials, but nothing seems to work. The
TestConnection method always returns true and is just there to see if we can
hit the web service, but it always fails.
What am I missing?
Here's the code (there's extra code related to the attempt at passing user
specified credentials):
public static CustomerManager WebService.Cust omerManagerWebS ervice Service
{
get
{
if (log.IsDebugEna bled)
{
log.Debug("Tryi ng to get the customer manager web service.");
}
CustomerManager WebService.Cust omerManagerWebS ervice web=new
Snowball.Crm.Bu sinessManager.C ustomerManagerW ebService.Custo merManagerWebSe rvice();
if (m_credSet)
{
if (log.IsDebugEna bled)
{
log.Debug("Cred entials have been set the cache");
}
web.Credentials =m_cred;
}
else
{
web.Credentials =CredentialCach e.DefaultCreden tials;
if (log.IsDebugEna bled)
{
log.Debug("Usin g default credentials");
}
}
if (log.IsDebugEna bled)
{
log.Debug("Sett ing web options.");
}
web.PreAuthenti cate=true;
web.UnsafeAuthe nticatedConnect ionSharing=true ;
web.UserAgent=" BusinessManager .dll";
try
{
if (log.IsDebugEna bled)
{
log.Debug("Tryi ng test connection.");
}
web.TestConnect ion();
}
catch (System.Excepti on ex)
{
if (log.IsDebugEna bled)
{
log.Debug("Auth entication failed. Failure report follows:");
}
string message="Failed to connect to the web service for " +
System.Environm ent.UserName;
log.Error(messa ge,ex);
throw new AuthenticationF ailedException( message,ex);
}
return web;
}
}
Robert