all groups > sql server connect > april 2006 >
You're in the

sql server connect

group:

Visual Studio c# Express --> SQL Server Express Connection



Visual Studio c# Express --> SQL Server Express Connection SoHeLL
4/18/2006 4:24:01 AM
sql server connect: Hi I am possible to connect via the SQL Server Management Studio to the
database in the network. I have difficulties to connect via the Visual Studio
C# Express to the database. What can I do? What could be the failure?
Everything works fine with the SQL Server Management Studio Express. I can
create databases and tables...everything.

Thanks
RE: Visual Studio c# Express --> SQL Server Express Connection Landon Kelsey
4/19/2006 5:37:03 PM
I can connect easily using C# & ADO.NET on standalone programs.

I am trying to connect from a web site program under .NET 1.1 VS 7 and
always get

Login failed for user 'LANDON\ASPNET'.
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
'LANDON\ASPNET'.

Source Error:


Line 46: private void Page_Load(object sender, System.EventArgs e)
Line 47: {
Line 48: sqlConnection1.Open();
Line 49: ds = new DataSet();
Line 50: daAttendees = new SqlDataAdapter(


Source File: c:\inetpub\wwwroot\pcswebapp2\webform1.aspx.cs Line: 48

having signed in under IE6 using:
http://localhost/PCSWebApp2/WebForm1.aspx
I've tried everything to fix the problem;





[quoted text, click to view]
AddThis Social Bookmark Button