strange SQL Server attach database error

Posted by George2 on Stack Overflow See other posts from Stack Overflow or by George2
Published on 2010-05-06T07:44:14Z Indexed on 2010/05/06 7:48 UTC
Read the original article Hit count: 163

Hello everyone,

I am using SQL Server 2008 Enterprise with VSTS 2008, and I am developing a simple web application using ASP.Net and Forms Authentication.

When I am using the configuration tool/menu of VSTS of my ASP.Net project (I want to use this tool to manually add some Forms authentication users), I met with the following error (SqlException),

Trying to attach file D:\Projects\MyTest\App_Data\aspnetdb.mdf to automatically named database failed. It may be caused by existing the same name database, or may be caused by specified file can not be opened or caused by the specified file exists in UNC share.

In my computer, there is no aspnetdb.mdf under dir D:\Projects\MyTest\App_Data, and I have used aspnet_regsql to generate database successfully before I run the configuration tool. Why there is such error? How to fix it?

thanks in advance, George

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about c#