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

  • SEARCH
  • Home
  • 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 8932875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:24:23+00:00 2026-06-15T09:24:23+00:00

I deployed a simple ASP.net MVC application on IIS (7.5 under win 2k8 R2

  • 0

I deployed a simple ASP.net MVC application on IIS (7.5 under win 2k8 R2 64 bit), and it created its databases (ApplicationData and the second one with my own data) when I started using the app.
The databases (.mdf and .ldf files) were created inside App_Data folder.

Application uses entity framework code first approach. I had to change the app pool’s identity to Network Service to get the webpage working. I also had to manually create this App_Data directory and assign permissions for Network Service user to modify it’s contents.

Now the problem I got is that I can’t see those databases in Management Studio (got SQL server 2012 express with advanced services installed). I can attach them manually if not using the webpage for a longer time, otherwise the .mdf files are locked by sqlservr.exe process of Network Service user.
All the time I got two simultaneously running sqlservr processes. One is run by MSSQLsomething user and the second one by Network Service. However, I got only one instance of SQL server installed (I’m 100% sure of it).

Could anyone explain me how is that possible that Management Studio cannot see those databases even at the moment they’re being used (locked by sqlservr.exe process)?

  • 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-06-15T09:24:24+00:00Added an answer on June 15, 2026 at 9:24 am

    This is because the database is hosted in User Instance Mode, and therefore not actually attached to the ‘official’ database server.

    In that article you’ll see that this is enabled using User Instance=true; in the connection string. To switch it off you specify User Instance=false;.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have simple asp.net webservice has login method and its deployed on IIS server
I deployed my ASP.NET application under an existing virtual directory. The new deployment will
I've recently deployed to http://domainshop.apphb.com/ a simple ASP.NET application using the following NuGet packages:
I cannot get ASP .NET MVC 4.0 to work when deployed on IIS 7.5
I just deployed an ASP.NET MVC 3 application to our staging server. Whenever an
I have a relatively simple ASP.net MVC 2 app that is using SubSonic. Everything
In my asp.net webforms application I am using plain and simple forms authentication hooked
I have an ASP.NET MVC3 application deployed to a shared hosting service. It uses
We deployed our legacy ASP.NET application to production after successful test deployments to our
I've got an app built using asp.net mvc and deployed over 2 Amazon EC2

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.