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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:21:56+00:00 2026-06-14T05:21:56+00:00

Im fairly new to ASP.net (making basic applications for about 2 weeks), and im

  • 0

Im fairly new to ASP.net (making basic applications for about 2 weeks), and im struck by a big problem with my databases.

I was building a simple email application, with a login system. Everything was working just fine a few days ago.

But somehow, everytime i try to access a database file with my programs im getting the following error:

*Server Error in ‘/’ Application.
The database file may be corrupted. Run the repair utility to check the database file. [ Database name = C:\Users\ArvinAsus\Documents\Visual Studio 2010\Projects\mailer\App_Data\Database.mdf ]
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.SqlServerCe.SqlCeException: The database file may be corrupted. Run the repair utility to check the database file. [ Database name = C:\Users\ArvinAsus\Documents\Visual Studio 2010\Projects\mailer\App_Data\Database.mdf ]*

This error is always displayed with every database. Wether i use a database that worked in the past or just create a new empty db.

Im having the feeling that this problem has nothing to do with db corruption but with another problem i am having:

When i have my local database connected in the server explorer, i am able to add tables – fill tables with data, test connection always succeeds. when i try to connect to the database through my program :

*Exception Details: System.Data.SqlServerCe.SqlCeException: There is a file sharing violation. A different process might be using the file. [ C:\Users\ArvinAsus\Documents\Visual Studio 2010\Projects\mailer\App_Data\Database.mdf ]*

I then close the connection in the server explorer, and the error vanishes, leaving me with the corruption error.

I am completely stuck with this. Anybody with an idea to get me going again?

thanks in advance.

PS: Im using Visual Studio 2010 Professional

  • 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-14T05:21:57+00:00Added an answer on June 14, 2026 at 5:21 am

    A .MDF file is NOT a SQL Compact Edition Database file but a SQL Server data file. You should use SQL Server (Express, Professional or any other version) to access your database and conect to it using SQL Native Client, OleDB or any other Data Connector instead of SQLServerCE.

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

Sidebar

Related Questions

I'm fairly new to ASP.NET MVC and I've got a problem with Html.TextBoxFor() -
I am fairly new to unit testing. I am building an ASP.NET MVC3 application
I'm fairly new to ASP.NET. And I was wondering how I could go about
I'm fairly new to ASP.Net MVC and I find myself making a single model
I am fairly new to asp.net and come into a problem whilst using a
I am fairly new to ASP.NET MVC and working on a small project in
I am fairly new to ASP.NET and I discovered repeaters recently. Some people use
So I am fairly new to ASP.NET MVC and Windows Live Connect API. Basically
I'm fairly new to ASP.NET and as a self-chosen assignment I am to create
I am fairly new to C# and ASP.NET. I am working on an existing

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.