|
|
Subject:
ASP.Net
Category: Computers > Programming Asked by: gums-ga List Price: $5.00 |
Posted:
15 Jun 2004 14:56 PDT
Expires: 15 Jul 2004 14:56 PDT Question ID: 361569 |
I am trying to access a remote sql server from an ASP.Net application using ADO.Net. I want to use trusted connection and so set the connection string as Dim strConn As String = Network Library=DBMSSOCN;server=ServerName;database=DatabaseName;Trusted_Connection=true Also in the web.config file I set <authentication mode="Windows" /> and <identity impersonate="true" /> settings. In the IIS I set it to use Integrated Windows Authentication. If I login to the machine that has the IIS and run the application of the browser, I am able to access the sql server. How ever If I access the page from a remote machine. I am getting this error. System.Data.SqlClient.SqlException: Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection. Hope this explanation is good enough for u guys to understand the problem. Thanks in advance. | |
| |
|
|
There is no answer at this time. |
|
Subject:
Re: ASP.Net
From: robfoulk-ga on 23 Jun 2004 19:17 PDT |
What you're look at is a double hop issue. NTLM credentials can't be passed from machine to machine. In this case from remote browser to webserver and from webserver to SQL server. Unfortunately, there is no perfect solution. You will have to either switch to basic authentication thereby eliminating the NTLM credential going from browser to IIS, OR switch from NTLM to kerberos authentication thus allowing the the credential to be delegated from machine to machine. Good luck. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |