I have developed an ASP.Net website using vb.net in Visual Studio 2008(and MS SQL Server 2008).
I completed my design and have configured my website using website administration tool. Then I published and linked to a new virtual directory in IIS.
I'm albe to get access to all pages with access rule set as " allow anonymous users", but I'm not albe to have access to restricted pages with user login. When I'm accesssing these pages its going to the login dialog box, but even if I enter the correct username and password, its not workin out and an error page is displayed as:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file C:\Documents and Settings\jasmin1\My Documents\Visual Studio 2008\WebSites\JASMIN\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
But When I'm trying to debug it fro Visual studio it is working properly.