Login failed for user 'NT AUTHORITY\SYSTEM'.

M

micky

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?
 
P

Patrick.O.Ige

What does your ConnectionString look like?
Are you using integrated security?
Elaborate more..
Patrick
 
M

micky

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~~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,697
Latest member
AugustNabo

Latest Threads

Top