An attempt to attach an auto-named database ....\aspnetdb.mdf failed

I've installed VWD 2005(Beta 2) and MS SQL Express and also followed the aspnet tour at http://beta.asp.net/guidedtour2. After trying new webcontrol (login control) and trying to execute the page, I've got an error such as below: An attempt to attach an auto-named database for file c:\inetpub\wwwroot\Demo\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.
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:\inetpub\wwwroot\Demo\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. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: [SqlException (0x80131904): An attempt to attach an auto-named database for file c:\inetpub\wwwroot\Demo\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.] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +684979 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +207 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1751 System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +32 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +601 System.Data.SqlClient.SqlInternalConnectionTds..ctor(SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +159 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +346 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +445 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +304 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +85 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +126 System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +239 System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved) +815 System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +80 System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42 System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +78 System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +161 System.Web.UI.WebControls.Login.AttemptLogin() +94 System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +134 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5670
can anyone help me to solve the problem... thanks

 mfauziii wrote:
I've installed VWD 2005(Beta 2) and MS SQL Express and also followed the aspnet tour at http://beta.asp.net/guidedtour2. After trying new webcontrol (login control) and trying to execute the page, I've got an error such as below: An attempt to attach an auto-named database for file c:\inetpub\wwwroot\Demo\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.
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:\inetpub\wwwroot\Demo\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. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: [SqlException (0x80131904): An attempt to attach an auto-named database for file c:\inetpub\wwwroot\Demo\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.] System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +684979 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +207 System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1751 System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +32 System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +601 System.Data.SqlClient.SqlInternalConnectionTds..ctor(SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +159 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +346 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +445 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +304 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +85 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +126 System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +239 System.Web.Security.SqlMembershipProvider.GetPasswordWithFormat(String username, Int32& status, String& password, Int32& passwordFormat, String& passwordSalt, Int32& failedPasswordAttemptCount, Int32& failedPasswordAnswerAttemptCount, Boolean& isApproved) +815 System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved, String& salt, Int32& passwordFormat) +80 System.Web.Security.SqlMembershipProvider.CheckPassword(String username, String password, Boolean updateLastLoginActivityDate, Boolean failIfNotApproved) +42 System.Web.Security.SqlMembershipProvider.ValidateUser(String username, String password) +78 System.Web.UI.WebControls.Login.OnAuthenticate(AuthenticateEventArgs e) +161 System.Web.UI.WebControls.Login.AttemptLogin() +94 System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e) +101 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +134 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5670
can anyone help me to solve the problem... thanks

Similar Messages

  • Cannot navigate to some folders when attempting to attach .MDF files to database in Management Studio

    Hello,
    I have Windows 7 ultimate, SP1 and login to a SBS2003 R2 domain as administrator.
    I use SQL Server Management Studio 10.50.2500.0 to connect to a local instance of SQL Server 2008 R2 using Windows Authentication.
    When I attempt to attach a database .MDF file that is not in the C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA folder, the Locate Database Files dialog box will not allow me to navigate to other folders to find databases.
    It does not give an error, it simply does not open the selected folder.
    How do I allow the Locate Database Files dialog box to navigate to other folders to locate other .MDF files?
    Any help would be grate fully appreciated.
    Thanks,
    Tony
    Stop The World, I want To Get Off! ........... Life Isn't About Waiting For The Storm To Pass ... It's About Learning To Dance In The Rain.

    Hello Naomi.
    I’m not sure of what you mean by “the rights”, but I can see all folders and files on all machines when using Windows Explorer.  I cannot navigate to them through the Locate Database Files
    dialog box.
    Also, this has nothing to do with the server.  This issue involves my local computer.
    Thanks,
    Tony
    Additionally, your question came to me as an email from
    [email protected]  I tried to reply to it and it came back as undeliverable.  So, I posted my reply here
    Stop The World, I want To Get Off! ........... Life Isn't About Waiting For The Storm To Pass ... It's About Learning To Dance In The Rain.

  • In window 8.1 latest ver of Thunderbird stops responding whenever attempting to attach a document etc.

    It does not matter whether you use the attach command from the tool bar or wait for Thunderbird to pick up the word attached from your text and then attempt to attach a document. As soon as you attempt to attach the item the program freezes and you are asked whether you would like to close the program or wait for Thunderbird to respond. Last choice Not recommended by the way.

    So what is happening or not happening now ? The problem computer is your Moms, but I assume your own computer works ok. Have you tried that on the same internet connection as your Mom uses & visiting the same sites?
    Also try Internet Explorer. If that is also very slow the problem may not lie with Firefox.
    I suggest you try the Firefox Reset feature on your Mom's computer,
    * BUT first of all
    **make a note of the software extensions that are in use, and bookmark their download and support sites.
    ** back up the Firefox profile [[Back up and restore information in Firefox profiles]]
    * follow the instructions in the following article, after reading the caution about what will be lost
    **[[Reset Firefox preferences to troubleshoot and fix problems]]

  • I have had an iphone 3, 4, 4S, and now a 5.  Every picture I have ever taken is saved as "photo".  How do I change the auto naming format to a more sequential name?

    I have had an iphone 3, 4, 4S, and now a 5.  Every picture I have ever taken is saved as "photo".  How do I change the auto naming format to a more sequential name?

    There is no way to change this.

  • ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION

    HOW TO ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION (CREATE CONTACT PERSON) IN SRM PORTAL..

    HOW TO ADD ATTACHMENT TO AUTO MAIL SENT DURING BIDDER CREATION (CREATE CONTACT PERSON) IN SRM PORTAL..

  • Oracle 10g  is an auto managed database. Why ?

    Oracle 10g is an auto managed database. Why ?
    I have read that with 10g version, Oracle database will need very less management, since it can be configured to automanage itself. Sounds not believable.
    Apart from auto extending tablespaces, what others tasks can be automanaged in Oracle DB 10 G release ?
    Please discuss.
    Gony

    Wow I feel like I'm back in college... are you in school?
    How about ASSM?
    All kinds of things on that from google.
    http://www.google.com/search?hl=en&rlz=1C1GGLS_enUS291US303&q=oracle+assm&aq=f&oq=&aqi=g3
    http://www.google.com/search?hl=en&rlz=1C1GGLS_enUS291US303&q=automating+oracle+databases&aq=f&oq=&aqi=
    P.S. What is this all about? RMAN - Gony's reading task for 07/11/2009
    Edited by: TimS on Jul 10, 2009 4:26 PM

  • Auto naming files in Acrobat 9 Std

    Is there a way to have files that are scanned to Acrobat 9 Std, auto named?
    I find that the default name "untitlted" is causing problems... especially over-writing the last untitled file...
    Any help?

    Scan to TIFF in the application that came with your scanner and then import the tiffs. Not what you asked, but a better workflow. Many scanners will scan to file and autonumber them.

  • How to attach/restore the sql database/file extension (*.File)

    I took backup the database long back ago. Now I
    am unable to attach/restore the sql database/file extension (*.File). I
    have the file type called (*.File) which i need to attach/restore. Can anyone tell me what's are the steps
    taken to do this? 
    Thank in advance.

    Database
    name-->Right Click-->Tasks-->Restore-->Database-->Select "Device" radio button-->Click device Path button-->Click "ADD" button --> I tried with "All Files(*)"--> then i selected my database-->ok-->ok-->ok -->
    then i am getting below error. 
    I am unable to post image. 
    "Restore of database 'Databasename' failed. (microsoft.sqlserver.management.relationalenginetasks)"
    Additional Information:
    System.Data.SqlClient.SqlError: The database was backed up on a server running version 8.00.0194. That version is incompatible with this server, which is running version 11.00.2100. Either
    restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.SmoExtended).
    Can
    you please help me to solve this error.
    Thanks,
    Laxmi.

  • Cannot attach files to email. get message "An internal error occurred when attempting to attach... " when do retry and "switch" can attach the file. What is the problem? Files attach ok with IE.

    Cannot attach files to email. get message "An internal error occurred when attempting to attach... " Have tried attaching docs and jpg. Same result , files don't attach. When click on try again and then "switch" the file does attach.

    Cannot attach files to email. get message "An internal error occurred when attempting to attach... " Have tried attaching docs and jpg. Same result , files don't attach. When click on try again and then "switch" the file does attach.

  • Mail freezes when attempting to attach a file to a mail message

    I get the "spinning wheel of death" whenever I attempt to attach a file to a message. Any suggestions to fix this?

    Hi,
    The same thing happened to me and I accidentaly found a solution. It is not the best solution but at least it works. Try to write your email and attach your file offline, then connect your modem and send your email. This worked fine for me.

  • CS5 Exporting Artboards - Auto Naming

    Hello, is there a method to set preferences for auto naming (or turning this off) when exporting artboards as jpg's? I like the feature and the ability to export different artboards but I do not want illustrator to automatically add the number to the end of the file, i.e. "-01".
    Also it seems that in the Adobe CS4 and CS5 the prrogramers have targeted illustrator towards Flash too much. Everyone is not creating Flash files all of the time and I do develop flash sites but still prefer Fireworks to illustrator. Maybe they are trying to intergrate the Fireworks/Flash features (I am glad they added the editable gradients as Fireworks and Flash has had for years) but in Fireworks, during export, you can choose to auto name or not and Fireworks will not add the nuber if you do not want it to. If I want my image to be "logo.jpg" anf that is what I type in the export dialog then why does illustrator assume I want "logo-01.jpg"?
    Thanks for any help.
    Ned

    Thanks Monika but I am not always exporting/saving jpg's for the web (72dpi) and sometimes I need to export at higher resolution so that will not work. I think there needs to be a feature or preference to turn off the auto numbering/naming of files. Iguess for now that does not exist in the standard export.
    Ned

  • My computer can not recognize the new Apple iPod touch when it is connected via the USB cable (that goes with it) attempt to attach it to the computer.

    My computer can not recognize the new Apple iPod touch when it is connected via the USB cable (that goes with it) attempt to attach it to the computer.

    You do have iTunes installed right?
    See:
    iOS: Device not recognized in iTunes for Windows

  • Naming database inside Grid Control

    Hi,
    I have one question about database names in Database tab of Grid Control.
    What is happening:
    I have static definition of my services in the listener.ora file, and when I have installed Grid Control Agent on this node
    Oracle registers name like this in my databases tab of Grid Control:
    DBNAME_HOSTNAME.DBDOMAIN
    I want to register my database like dbname.dbdomain. Is it possible? Can I have any control of naming of databases in Grid Control?
    When I haven’t static definition of services in my listener.ora file, database is good registrated (*dbname.dbdomain*).
    Thanks,
    Best regards
    Dragan

    Yes you have control of naming databases in Grid Control.
    When you add a database target to grid control, after chosing the host you'll see the databases on that host. Under the databases there is an option: "Manually add" If you chose this option you can name the database target however you want. so you can delete the database target from grid, and add again with manual option...

  • OWA freezes went I attempt to attach an attachment to message.

    OWA freezes went I attempt to attach an attachment to message. Firefox will still work but not OWA

    Note that your System Details List shows that you have a user.js file in the profile folder to initialize some prefs on each start of Firefox.
    The user.js file is only present if you or other software has created it, so normally it wouldn't be there.
    you can check its content with a plain text editor if you didn't create this file yourself.
    The user.js file is read each time you start Firefox and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    Rename or delete the prefs.js file and possible numbered prefs-##.js files and a possible user.js file to reset all prefs to the default value.
    *http://kb.mozillazine.org/Preferences_not_saved

  • ITunes to include SxxExx to the auto naming process

    I'm using iTunes to manages my media library. I'm having difficulties with the auto naming associated with TV programmes, is there a way to allow iTunes to name the file so it includes SxxExx?

    You're not talking to Apple here. Use iTunes feedback for that.
    Are you refering to the naming of the episode within iTunes, or the file on disc?
    In principle TV Shows are grouped on the Show field and within a show sub-grouped on Season No. In practice recent builds of iTunes and/or Apple TV/iOS firmware seem to be taking account of Album, Artist & Album Artist in certain views. For consistency I therefore suggest the following approach:
    Show = Album = <Show Name>
    e.g. "Heroes"
    Artist = Album Artist = <Show Name> or <Show Name> Cast (or something like that)
    e.g. "Heroes Cast"
    Season No. = <Season No.> or <Blank> (Separate seasons or all listed together)
    e.g. 1-2
    Episode ID = s##e## (This field, sorted alphabetically, controls order)
    e.g. s01e01 - s02e34 (use s##e### when >99 episodes - I prefer to use absolute episode no. here)
    Episode No. = Track No. = <Absolute Episode No.>
    (Can also be per season, but abs. is better) e.g. 1 - 34
    Disc No. = <Season No.> (Can be set even if merging seasons)
    e.g. 1-2
    Taking this approach you can always merge or split into individual seasons simply by clearing or setting the Season No. field.
    or
    For general tips on organizing media in iTunes see Grouping tracks into albums. Note that sort fields should not be used to link things with different main values.
    If you use the scheme above, and you let iTunes manage the media files, you may find they are renamed in a way that suits your needs better.
    tt2

Maybe you are looking for