E
egress
I've created an SQL Server Express database with one table that I use
in my test envionement (Windows Vista). I'm developing an ASP.NET web
app with VS 2005 and try to connect to the express server to retrieve
some simple data (no not Membership data). My connection string is:
<connectionStrings>
<add name="MyTestDb" connectionString="Data Source=.
\SQLExpress;Integrated
DataDirectory|MyData.mdf;User Instance=true;"
providerName="System.Data.SqlClient" />
</connectionStrings>
When I run the app, I get this error:
"Failed to generate a user instance of SQL Server due to failure in
retrieving the user's local application data path. Please make sure
the user has a local user profile on the computer. The connection will
be closed."
I've given "NETWORK SERVICE" every permission under the sun to the
App_Data folder, so I don't think that is the problem.
Can anyone help me on this one. I'm thinking this is some weird user
permission thing that happens with Vista. However, I have UAC
disabled and run VS2005 as Admin.
Also, the weird thing is that VS2005 will setup the ASPNEDDB.mdf and I
can use it for Membership data with no problem, but I can't seem to
setup my own db to use.
Thanks in advance for your help.
jim
in my test envionement (Windows Vista). I'm developing an ASP.NET web
app with VS 2005 and try to connect to the express server to retrieve
some simple data (no not Membership data). My connection string is:
<connectionStrings>
<add name="MyTestDb" connectionString="Data Source=.
\SQLExpress;Integrated
DataDirectory|MyData.mdf;User Instance=true;"
providerName="System.Data.SqlClient" />
</connectionStrings>
When I run the app, I get this error:
"Failed to generate a user instance of SQL Server due to failure in
retrieving the user's local application data path. Please make sure
the user has a local user profile on the computer. The connection will
be closed."
I've given "NETWORK SERVICE" every permission under the sun to the
App_Data folder, so I don't think that is the problem.
Can anyone help me on this one. I'm thinking this is some weird user
permission thing that happens with Vista. However, I have UAC
disabled and run VS2005 as Admin.
Also, the weird thing is that VS2005 will setup the ASPNEDDB.mdf and I
can use it for Membership data with no problem, but I can't seem to
setup my own db to use.
Thanks in advance for your help.
jim