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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T20:22:19+00:00 2026-06-06T20:22:19+00:00

I keep getting the Keyword not supported: ‘file access retry timeout’ error when viewing

  • 0

I keep getting the Keyword not supported: ‘file access retry timeout’ error when viewing pages that access my database.

So I’m assuming it can’t access the database. I had this exact same problem just a few moments ago, when viewing my homepage. I changed (in my _AppStart.cshtml file) this:

WebSecurity.InitializeDatabaseConnection("MYDB", etc, etc, etc, etc);

to:

WebSecurity.InitializeDatabaseConnection("Data Source=|DataDirectory|\\MYDB.sdf", "System.Data.SqlServerCe.4.0", etc, etc, etc, etc);

and it worked!

However, when I go to another page, (which tried to access the database from a C# Class, (.cs file) I get the same error!

But, in my C# file (.cs) – I cannot change:

var database = Database.Open("MYDB");

to:

var database = Database.Open("Data Source=|DataDirectory|\\MYDB.sdf", "System.Data.SqlServerCe.4.0", etc, etc, etc, etc);

… because it says:

No overload for method ‘Open’ takes 2 arguments (obviously).

The error (before making the above change in the .cs file:

Server Error in ‘/’ Application.

Keyword not supported: ‘file access retry timeout’. 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.ArgumentException: Keyword not supported:
‘file access retry timeout’.

Source Error:

> 
> Line 161:     foreach(string item in items) Line 162:     { Line 163:         var
> row = database.QuerySingle("select Suburb, State from
> SuburbsPostCodesAndStates where Suburb = @0", item); Line
> 164:          if(row != null) Line 165:           {
>   

Source File:
c:\HostingSpaces\jpezzime\mysite.com\wwwroot\App_Code\JTSi.cs
Line: 163

Stack Trace:

[ArgumentException: Keyword not supported: ‘file access retry
timeout’.]
System.Data.SqlServerCe.SqlCeConnectionStringBuilder.GetIndex(String
keyword) +198
System.Data.SqlServerCe.SqlCeConnectionStringBuilder.set_Item(String
keyword, Object value) +31
System.Data.Common.DbConnectionStringBuilder.set_ConnectionString(String
value) +185
System.Data.SqlServerCe.SqlCeConnectionStringBuilder..ctor(String
connectionString) +181
System.Data.SqlServerCe.SqlCeConnection.set_ConnectionString(String
value) +241
WebMatrix.Data.DbProviderFactoryWrapper.CreateConnection(String
connectionString) +96
WebMatrix.Data.<>c_DisplayClass15.b_14()
+16 WebMatrix.Data.Database.get_Connection() +19 WebMatrix.Data.Database.EnsureConnectionOpen() +13
WebMatrix.Data.d__0.MoveNext() +72
System.Linq.Enumerable.FirstOrDefault(IEnumerable1 source) +4232212
WebMatrix.Data.Database.QuerySingle(String commandText, Object[] args)
+98 JTSi.FindSetAndRemoveLocation(List
1 items) in c:\HostingSpaces\jpezzime\mysite.com\wwwroot\App_Code\JTSi.cs:163
ASP._Page_Shared_Pages_Search_cshtml.Execute() in
c:\HostingSpaces\jpezzime\mysite.com\wwwroot\Shared\Pages\Search.cshtml:17
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +208
System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1
executors) +68 System.Web.WebPages.WebPage.ExecutePageHierarchy()
+123 System.Web.WebPages.StartPage.RunPage() +19 System.Web.WebPages.StartPage.ExecutePageHierarchy() +67
System.Web.WebPages.StartPage.RunPage() +19
System.Web.WebPages.StartPage.ExecutePageHierarchy() +67
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext
pageContext, TextWriter writer, WebPageRenderingBase startPage) +78
System.Web.WebPages.WebPageHttpHandler.ProcessRequestInternal(HttpContextBase
httpContext) +121

——————————————————————————– Version Information: Microsoft .NET Framework Version:4.0.30319;
ASP.NET Version:4.0.30319.272

Can anybody please help shed some light on this? I have absolutely no idea how a website can go from totally awesome, to totally screwed up, in just a matter of minutes – when I haven’t even made any changes!

  • 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-06T20:22:20+00:00Added an answer on June 6, 2026 at 8:22 pm

    Solution:

    replace:

    var database = Database.Open("MYDB");
    

    with:

    var database = Database.OpenConnectionString("Data Source=|DataDirectory|\\MYDB.sdf", "System.Data.SqlServerCe.4.0");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting an error saying that @android:style/Widget.Holo.Light.Button.Borderless is not public and so can't
Keep getting the error Arguments are not sufficiently instantiated for the multiplication by addition
I keep getting this T_STRING Parse error im not sure what it is but
I keep getting the following error: Method not found: 'Void Castle.MicroKernel.ComponentActivator.ComponentActivatorException..ctor this is from
I keep getting this error, and I'm not really sure why this isn't working
I keep getting this error when I go to the development server that the
Keep getting this error after inserting a subdatasheet into a query and trying to
I keep getting this error and have no idea why. I googled and scanned
I keep getting this error on emulator: I copied this from a tutorial and
I keep getting this error Error in readPNG(destfile) : libpng error: PLTE: CRC error

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.