Click here to Skip to main content
15,910,877 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi ,

I developed an ASP.NET 2.0 application,in that i used Login Control for logging in to the application.

The problem is when i am trying to log in to the application through IIS(I created a Virual Directoy in IIS for the PArticular application) i am not able to login in .., But when i m running the application from VS2005 i m able to run it.., and sucessfullu logged in and the required page is opening.

dont know what was the prblm for IIS , Even i tried google and not yet get any solution..,

any one plz help me..,

the error i am getting is

An attempt to attach an auto-named database for file C:\Documents and Settings\E477165\My Documents\Visual Studio 2005\WebSites\WebSite3\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.
Posted

Check your connection string, seems like you are using "AttachDB" or some thing whwn you should use Database=

Look up http://connectionstrings.com/[^]
 
Share this answer
 
Weird - I googled the error message and got a ton of hits. You should try to explain the reasons why you believe that what the error message says in plain english, is not the cause of your problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900