0

我使用了 ASP.NET 的默认成员资格。格式化 PC 并安装 SQL Server Managment Studio 后,我运行应用程序,无法访问我的 ASPNETDB.MDF,但可以访问其他数据库。例如,当我尝试注册时出现错误: 在此处输入图像描述

连接字符串是这样的:

<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS; Integrated Security=SSPI; AttachDBFilename=|DataDirectory|aspnetdb.mdf; User Instance=true" providerName="System.Data.SqlClient"/>

如何访问 ASPNETDB.MDF?

4

1 回答 1

0

There should be a folder named App_Data. The database file should be created inside this folder. What you need is make sure that the ASP.Net identity has enough access rights to this folder.

于 2013-12-20T19:35:38.980 回答