locked
Please help me fix this error: Access to the database file is not allowed. RRS feed

  • Question

  • User743508062 posted

    Aaargh, more problems, is any easy??

    Sorry about my rant I am getting the following error:

    I hope someone can help me make sense of it.

    ------------------------

    Access to the database file is not allowed. [ 1914,File name = C:\inetpub\LensCatalogueSystem\App_Data\StarterSite.sdf,SeCreateFile ] 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: Access to the database file is not allowed. [ 1914,File name = C:\inetpub\LensCatalogueSystem\App_Data\StarterSite.sdf,SeCreateFile ]

    Source Error:

     Line 1:  @{ Line 2:      WebSecurity.InitializeDatabaseConnection("StarterSite", "UserProfile", "UserId", "Email", autoCreateTables: true); Line 3:  Line 4:      // To let users of this site log in using their accounts from other sites such as Microsoft, Facebook, Twitter,

    -------------------------

    Why and how can I fix this. Thanks.

    Wednesday, March 13, 2013 1:14 PM

Answers

  • User743508062 posted

    OK, I went to the source which was the startsite.sdf db using windows explorer.

    Right clicked the db and then properties.

    added ISUR and gave everyone read, write etc rights and then OKed all OK.

    Voila no more error!

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 14, 2013 6:54 AM

All replies

  • User-581111879 posted

    check your windows or folder security...

    Wednesday, March 13, 2013 3:17 PM
  • User743508062 posted

    Thank for your reply but after I look at the folder security what am I looking for and how can I fix it?

     

     

    Thursday, March 14, 2013 5:45 AM
  • User743508062 posted

    OK, I went to the source which was the startsite.sdf db using windows explorer.

    Right clicked the db and then properties.

    added ISUR and gave everyone read, write etc rights and then OKed all OK.

    Voila no more error!

    Thanks.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 14, 2013 6:54 AM
  • User-581111879 posted

    please mark my answer as correct if it did help you :)

    Sunday, March 17, 2013 12:31 AM