HELLO GREAT PROGRAMMERS!!!!

I AM CRYING FOR HELP. AM TIRED OF THIS PROGRAMME PLS HELP ME OUT WITH IT.

I DEVELOPED A FORM PROGRAMME BUT AFTER SAVING IT AND I WANT TO BUILD IT..

IT FAILED TO BUILD AND BRINGS THIS ERROR!!!!


"An attempt to attach an auto-named database for file C:\Documents and Settings\user\My Documents\Visual Studio 2005\Projects\Technology\Technology\Database1.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

PLS HELP ME OUT WHAT DO I DO :S .:'(

are you use sqlserver?

Yes, I Am Using Sql Server Database
Pls Hellp Me Out

You didn't give much detail about the program but I'm going to guess that it is an ASP .NET app because this problem frequently happens with ASP .NET when implementing roles.

With ASP .NET the problem is that the Machine.Config file where the app is hosted list a default database different that the one that you are using. You need for your web.config file to over-ride the machine.config file. Try adding this to your web.config file.

<connectionStrings>
    <add name="SqlRoleManagerConnection"
         connectionString="your connection string" />
  </connectionStrings> 

<roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
      <providers>
        <remove name="AspNetSqlRoleProvider" />
        <add name="AspNetSqlRoleProvider"
           connectionStringName="SqlRoleManagerConnection"
           applicationName="/"
           type="System.Web.Security.SqlRoleProvider, 
             System.Web, Version=2.0.0.0, Culture=neutral,                                
             PublicKeyToken=b03f5f7f11d50a3a" />
      </providers>
    </roleManager>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.