not able to access sql server using trusted connection.

R

Ramesh

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.
 
T

Trevor Benedict R

Or you could also try basic authentication if you are not setup to use
AD

Trevor Benedict R
MCSD

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top