chnswam 0 Newbie Poster

Hi,

I have an issue with accessing a web service from a client application under Vista (only). In all other OS, it works fine. Let me explain in detail:

I have a windows application (client) that's installed on a users machine. It accesses a remote web service for its operations.
In a Vista environment, the winform simply fails with exception "The request failed with HTTP exception 401: Unauthorized".
I was previously getting this error, which I had fixed by supplying the current credentials by including this line of code just prior to invoking the web service:

...
objSkService.Credentials = System.Net.CredentialCache.DefaultCredentials;
objSkService.<WebMethodInvokation>
...

(Since I didn't want to change the anonymous access setting in the server, as that is the requirement)


But for Vista, this doesn't work. Has anyone faced issues similar to this?
Please do let me know.

Additional information: The web service is a Sharepoint web service, accessible under _vti_bin/ virtual folder - stored under ..12/ISAPI/ folder.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.