Problem with connection from ASP to SQL server

B

Bobofrut

Hi
I have a problem, when I try to connect to the MS SQL SERVER from my
workstation ocourr the error message:

Login failed for user '(null)'. Reason: Not associated with a trusted SQL
Server connection.

Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Login failed for user
'(null)'. Reason: Not associated with a trusted SQL Server connection.

Source Error:

Line 39: SqlConnection mycon = new SqlConnection();
Line 40: mycon.ConnectionString=constr;
Line 41: mycon.Open();

--------------------------------------

My connection string is:

string constr="data source=SERWER-NT;initial catalog=Egzaminy;integrated
security=SSPI;persist security info=False";

From VS.NET in my workstation I connecting without problems(my user i added
to the security base in server). In SQL SERVER security is set to "Windows
only".

Anyone can help me?

thank
Chris
 
M

Munsifali Rashid

Give the ASPNET account access to your database in SQL Server.

Hope this helps,

Mun
 

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,997
Messages
2,570,240
Members
46,830
Latest member
HeleneMull

Latest Threads

Top