Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3850486
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:01:01+00:00 2026-05-19T17:01:01+00:00

I wanted to run (using Cassini) two copies of my web application from the

  • 0

I wanted to run (using Cassini) two copies of my web application from the same computer – not unreasonable (or so I thought!). One using port 80, the other using port 81. So I did the following:

  1. Stopped Cassini and SQL Express
  2. Copy and paste of the site root folder (and renamed it)
  3. Opened Cassini explorer and setup a new site on port 81 and pointed it to the copied location
  4. Changed the web.config of the copied site so that the connection string used “Database=NewAlias” because SQL Express cant attach two databases with the same alias.
  5. Started Cassini and SQL Express again

When I browsed to the NEW site, the first thing that comes up is:

Unable to open the physical file
“C:\site1\App_Data\db_log.ldf”.
Operating system error 32: “32(The
process cannot access the file because
it is being used by another
process.)”. Cannot create file ‘C:\site2
\App_Data\db_log.LDF’ because
it already exists. Change the file
path or the file name, and retry the
operation. Cannot open database
“NewAlias” requested by the login. The
login failed. Login failed for user
‘NT AUTHORITY\SYSTEM’. File activation
failure. The physical file name
“C:\site1\App_Data\db_log.ldf” may be
incorrect.

Its trying to open the mdf from the OLD location (even if the web.config specifies the exact mdb path to the new location) but trying to create a log in the NEW location. Then to top it all off, drops the hint that it cannot access the ldf from the OLD location, or maybe cant log into it.

Well done Microsoft and your team once again for some truly intuitive errors! Can anyone help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:01:01+00:00Added an answer on May 19, 2026 at 5:01 pm

    I don’t think you can just copy a live database via the files. If you detach it first, then copy it, you can then reattach (with sp_detach_db) it by mounting the files as a new database.

    sp_detach_db OldDb
    

    Then copy the folder, then reattach (with sp_attach_db) the db files as a new database.

    sp_attach_db NewDb, "C:\copy of site\App_Data\db_data.mdf", "C:\site1\App_Data\db_log.ldf"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanted to run my application on iPhone simulator via some script. Is it
Wanted to know if there was a way one could query shelveset details from
I wanted to create PDFs for my rails application using wkhtml2pdf and wicked_pdf. I
I run queries using SQLCMD utility via PHP and I wanted to know if
I am having trouble using JSF just wanted to run it by so if
I wanted to compare reading lines of string input from stdin using Python and
I'm using acts_as_commentable to in an application through a polymorphic association and wanted to
I wanted to run libvirt using a customized version of qemu. However, after I
I've just started a little page using CodeIgniter and wanted to run CodeIgniter's form
I just wanted some opinions from people that have run Selenium ( http://selenium.openqa.org )

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.