Advertisement

01.15.2008 at 07:11PM PST, ID: 23086062
[x]
Attachment Details

Impersonation failed for Webservice

Asked by otsbilling in .NET Framework 2.0, .NET, Visual Studio .NET 2005

Tags: ASP.NET, IE 7, System.Web.SoapException Login Failed for user

Hi,
We're developing a web site using asp.net 2.0 that make asynchronous calls Web service applications that we developed. Code is shown as follows:

Dim ws As New service.SamplingService
ws.Credentials = System.Net.CredentialCache.DefaultCredentials
Dim asyncWS As IAsyncResult = ws.BeginMain(job_name & ";" & job_id, Nothing, Nothing)

Both our web.config files for web site and web service have the following in web.config
<identity impersonate="true"/>
<authentication mode="Windows"/>

Everything worked fine until we started deploying the web site and web services on our client's machine. (Mind you that our development environment is 32-bit Win 2003, while client's machine is 64-bit Win 2003). Now we get the error message from server( System.Web.SOAP.Exception: Server was unable to process request. System.Data.SqlClient.SqlException: Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. Does anyone know what the problem could be?

Thanks in advanceStart Free Trial
 
Loading Advertisement...
 
[+][-]01.15.2008 at 11:18PM PST, ID: 20669748

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET Framework 2.0, .NET, Visual Studio .NET 2005
Tags: ASP.NET, IE 7, System.Web.SoapException Login Failed for user
Sign Up Now!
Solution Provided By: SteveH_UK
Participating Experts: 2
Solution Grade: A
 
 
[+][-]02.15.2008 at 11:27PM PST, ID: 20908699

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628