Re: SQL web application fails at login. Need help.
From: Steve Kass (skass_at_drew.edu)
Date: 03/02/04
- Next message: Joe Celko: "Re: Maybe I didn't explain right"
- Previous message: Andrew J. Kelly: "Re: Determining What Objects have Changed"
- In reply to: Miklos: "SQL web application fails at login. Need help."
- Next in thread: Miklos: "Re: SQL web application fails at login. Need help."
- Reply: Miklos: "Re: SQL web application fails at login. Need help."
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 02 Mar 2004 18:45:31 -0500
Mikos,
In addition to what Erland said, can you provide the code that tries
to open a connection to the database, along with the connection string,
if it's not in the code (password removed, of course, if you are using
SQL authentication). When you say console and windows applications and
Studio can connect, do you know they are connecting as the database user
ASPNET ?
SK
Miklos wrote:
>Hey guys, I desperately need help.
>
>We have an SQL database that can be accessed successfully
>from console and windows applications. However,
>essentially the same code fails at login when trying to
>access web applications.
>
>The error message is:
>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 'Q-OZP..etc(our computer name)
>\ASPNET'.
>
>We have a computer with dual boot Windows XP Pro and
>Windows XP Home. We installed Microsoft Visual Basic.NET
>2003 and Microsoft Desktop Engine (MSDE). Both console
>and windows applications can run the SQL tables. Studio
>can view the SQL tables. In the component tray, it shows
>SQL service running. In Windows Management, MSSQL server
>cannot be seen, but if you click on "services" from in
>there, it shows the SQL service running.
>
>We attached the database with OSQL but aren't sure if we
>did it properly, and set up MSDE but aren't sure if we did
>that properly.
>
>Do any of you know how to fix this?
>
>Thank you very much,
>
>Miklos
>
>
>
- Next message: Joe Celko: "Re: Maybe I didn't explain right"
- Previous message: Andrew J. Kelly: "Re: Determining What Objects have Changed"
- In reply to: Miklos: "SQL web application fails at login. Need help."
- Next in thread: Miklos: "Re: SQL web application fails at login. Need help."
- Reply: Miklos: "Re: SQL web application fails at login. Need help."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|