Home All Groups Group Topic Archive Search About
Author
10 Dec 2005 6:18 AM
John
Hi

I have placed a login control on a web form. When I run the webform and
click on the login button with dummy username & password, I get the
following error;

Exception Details: System.Data.SqlClient.SqlException: Cannot open user
default database. Login failed.
Login failed for user 'MYSERVER\ASPNET'.

What is the problem and how can I fix it?

Thanks

Regards

Author
12 Dec 2005 12:48 AM
agapeton
Among other things, it sounds like you need to turn impersonalization
on.

<authentication mode="Forms"/>
    <identity impersonate="true"/>
</authentication>