By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,921 Members | 1,493 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,921 IT Pros & Developers. It's quick & easy.

Login failed for user 'NT AUTHORITY\SYSTEM'.

P: n/a
i use database in app_Data ...*.mdf file not using sql server ..
when i open the database file on visual studio 2005 there is error occur
like below.
================================================== =========
Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITY\SYSTEM'.
================================================== ==========

and ... when i access website that using the database visual studio 2005 can
not open the database file

how should i solve this problem?? i don't know why?
Dec 10 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
What does your ConnectionString look like?
Are you using integrated security?
Elaborate more..
Patrick

"micky" <so**********@gmail.com> wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
i use database in app_Data ...*.mdf file not using sql server ..
when i open the database file on visual studio 2005 there is error occur
like below.
================================================== =========
Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITY\SYSTEM'.
================================================== ==========

and ... when i access website that using the database visual studio 2005 can not open the database file

how should i solve this problem?? i don't know why?

Dec 12 '05 #2

P: n/a
my website consist of three wesite in a solution.

http://localhost/solution/
-App_Data/db.mdf
-a(http://localhost/a/)
-b(http://localhost/b/)
-c(http://localhost/c/)

a,b,c sites are using db.mdf file in app_data folder of solution project
so i made connection string like below.

<add name="ConnectionString" connectionString="Data
Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=C:\Inetpub\wwwroot\ Solution\App_Data\db.mdf"
providerName="System.Data.SqlClient" />

the problem is ...
open a,b or c website and then i also open vs2005 to modify database
error occur to me...like Unc share...

in opposite , it will be same result ...

help me~~
"Patrick.O.Ige" <na********@hotmail.com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
What does your ConnectionString look like?
Are you using integrated security?
Elaborate more..
Patrick

"micky" <so**********@gmail.com> wrote in message
news:uP**************@TK2MSFTNGP10.phx.gbl...
i use database in app_Data ...*.mdf file not using sql server ..
when i open the database file on visual studio 2005 there is error occur
like below.
================================================== =========
Cannot open user default database. Login failed.
Login failed for user 'NT AUTHORITY\SYSTEM'.
================================================== ==========

and ... when i access website that using the database visual studio 2005

can
not open the database file

how should i solve this problem?? i don't know why?


Dec 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.