Re: SQL.Net connection in VS2005 from local IIS to local SQLExpres
- From: Landon Kelsey <landonmkelsey@xxxxxxxxxxx>
- Date: Wed, 19 Apr 2006 14:48:02 -0700
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;
"Sue Hoegemeier" wrote:
Make sure the user is not orphaned and has a valid account.
in the database you are specifying in the connection string.
-Sue
On Wed, 12 Apr 2006 11:19:35 -0400, "harry"
<mackey@xxxxxxxx> wrote:
Suddenly my trusted connection no longer works in VS. I try to create a new
one and recieve this:
"Database schema could not be retrieved for this connection. Please make
sure the connection settings are correct and the database is online
Login failed for user ''. The user is not associated with a trusted SQL
server connection."
1. I changed IIS to use a domain\user instead of IUSR_XX and still recieve
this error.
2. The firewall has been disabled for now.
3. SQL has named pipes and TCP/IP open, SQL is in mixed mode.
4. I can browse the connection if I am in SQL Authentication using 'sa', but
need to use WinAuth.
I cannot connect using Window Authentication.
Data Source=POLYP\SQLEXPRESS;Initial Catalog=HR15328;Integrated
Security=True
*Win2K3RC2
Suggestions?
Thanks
Harry
- Follow-Ups:
- Re: SQL.Net connection in VS2005 from local IIS to local SQLExpres
- From: Roger Wolter[MSFT]
- Re: SQL.Net connection in VS2005 from local IIS to local SQLExpres
- References:
- SQL.Net connection in VS2005 from local IIS to local SQLExpress
- From: harry
- Re: SQL.Net connection in VS2005 from local IIS to local SQLExpress
- From: Sue Hoegemeier
- SQL.Net connection in VS2005 from local IIS to local SQLExpress
- Prev by Date: Re: connect to SQL 2005 fails
- Next by Date: Re: SQL2005: Cannot connect error 11001
- Previous by thread: Re: SQL.Net connection in VS2005 from local IIS to local SQLExpress
- Next by thread: Re: SQL.Net connection in VS2005 from local IIS to local SQLExpres
- Index(es):
Relevant Pages
|
Loading