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 9210569
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:06:35+00:00 2026-06-18T01:06:35+00:00

I’m developing an ASP.NET MVC application that is using a LocalDb database. This app

  • 0

I’m developing an ASP.NET MVC application that is using a LocalDb database. This app also needs to have a corresponding Windows service that runs all the time. After much research, it looks like LocalDb is not a wise choice for deployment because of needing to have two users and concurrent access and 24/7 up time.

The app I’m building won’t be deployed to one server, it will be bundled up in an installer and distributed to multiple users. This would me so much simpler if I could justify distributing SQL Server Express 2012, but blowing up the installer by 120MB and using 300MB on disk is something I’m trying very hard to avoid.

The load on the database will very light — the web app is using the SimpleMembership provider and besides the membership tables, there are only a handful of other tables that will never have any significant amount of data in them. In previous versions of this app, I used an XML membership provider that stored user and role data on disk and the other data in my own XML configuration file. Some customers had security concerns about that so I would like moving membership and config data to a database so customers could point the app to their own SQL Server and do all the security they want with it.

I also would like the Windows service to use SQL Server Broker and SqlDependency to detect changes that the web app makes in the database.

SQL Express is out because it’s so big and this app needs to go on some embedded systems that I could not likely get permission to put it on.

LocalDb is probably out for the reasons I stated above.

SQL Server Compact – I’ve never worked with it. My understanding is that it runs in-process – can that process be my Windows service so that it’s always running? Can I access it concurrently with the web app? Will the SimpleMembership provider work with it? Any idea if SqlDependency works with it or is it back to polling?

  • 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-18T01:06:36+00:00Added an answer on June 18, 2026 at 1:06 am

    Both a Windows service and asp.net can access the database concurrently on the same machine, yes. SimpleMemberShip Works with it, no SqlDependency, but you can potentially do lightweight polling fir example by using rowversion columns and the @@dbts function, possibly in combination with some system table queries

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

Sidebar

Related Questions

I've been developing an application using asp.net MVC, and I have some configurations that
We are developing an ASP.NET MVC Application that currently uses it's own database ApplicationData
I'm developing an application using asp.net mvc, NHibernate and DDD. I have a service
I'm interested in using Subsonic 3.0 for developing a new ASP.Net MVC application that
I have an ASP.NET MVC application that I'm working on. I've been developing it
We are developing an application in ASP.Net MVC 3 using jQuery UI Dialog. This
I am developing an ASP.NET MVC 3 application using C# and Razor. I have
I'm developing an ASP.NET MVC application that will send the user a confirmation email.
I'm developing an ASP.NET MVC 2 application that connects to some services to do
I'm having a problem with an ASP.NET MVC application that I'm developing. I'm still

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.