none
webmatrix 2.0 beta 不支持的关键字:“file access retry timeout”。 RRS feed

  • 问题

  • 更新了 4月9日的webmatrix 版本后出现的错误。

    以前没有出现过,包括直接按照模板新建一个都报这个错误。。

    求管理员和大侠们解惑!!!

    “/”应用程序中的服务器错误。



    不支持的关键字:“file access retry timeout”。

    说明: 执行当前
    Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

    异常详细信息:
    System.ArgumentException: 不支持的关键字:“file access retry timeout”。

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

    源文件:
    d:\User\Documents\My Web Sites\入门网站1\_AppStart.cshtml    行: 4


    堆栈跟踪:
    [ArgumentException: 不支持的关键字:“file access retry timeout”。]
       System.Data.SqlServerCe.SqlCeConnectionStringBuilder.GetIndex(String keyword) +192
       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) +177
       System.Data.SqlServerCe.SqlCeConnection.set_ConnectionString(String value) +239
       WebMatrix.Data.DbProviderFactoryWrapper.CreateConnection(String connectionString) +95
       WebMatrix.Data.<>c__DisplayClass15.<OpenConnectionStringInternal>b__14() +16
       WebMatrix.Data.Database.get_Connection() +19
       WebMatrix.Data.Database.EnsureConnectionOpen() +13
       WebMatrix.Data.<QueryInternal>d__0.MoveNext() +72
       System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +4216372
       WebMatrix.Data.Database.QuerySingle(String commandText, Object[] args) +98
       WebMatrix.WebData.DatabaseWrapper.QuerySingle(String commandText, Object[] parameters) +17
       WebMatrix.WebData.SimpleMembershipProvider.CheckTableExists(IDatabase db, String tableName) +54
       WebMatrix.WebData.SimpleMembershipProvider.CreateTablesIfNeeded() +56
       WebMatrix.WebData.WebSecurity.InitializeMembershipProvider(SimpleMembershipProvider sMembership, DatabaseConnectionInfo connect, String userTableName, String userIdColumn, String userNameColumn, Boolean createTables) +70
       WebMatrix.WebData.WebSecurity.InitializeProviders(DatabaseConnectionInfo connect, String userTableName, String userIdColumn, String userNameColumn, Boolean autoCreateTables) +52
       WebMatrix.WebData.WebSecurity.InitializeDatabaseConnection(String connectionStringName, String userTableName, String userIdColumn, String userNameColumn, Boolean autoCreateTables) +52
       ASP._Page__AppStart_cshtml.Execute() in d:\User\Documents\My Web Sites\入门网站1\_AppStart.cshtml:4
       System.Web.WebPages.ApplicationStartPage.<ExecuteInternal>b__0() +64
       System.Web.WebPages.ApplicationStartPage.<GetSafeExecuteStartPageThunk>b__3(Action action) +7
       System.Web.WebPages.ApplicationStartPage.ExecuteInternal() +74
       System.Web.WebPages.ApplicationStartPage.ExecuteStartPageInternal(HttpApplication application, Action`1 monitorFile, IVirtualPathFactory virtualPathFactory, IEnumerable`1 supportedExtensions) +188
       System.Web.WebPages.ApplicationStartPage.ExecuteStartPage(HttpApplication application, Action`1 monitorFile, IVirtualPathFactory virtualPathFactory, IEnumerable`1 supportedExtensions) +39
    
    [HttpException (0x80004005): 引发类型为“System.Web.HttpException”的异常。]
       System.Web.WebPages.ApplicationStartPage.ExecuteStartPage(HttpApplication application, Action`1 monitorFile, IVirtualPathFactory virtualPathFactory, IEnumerable`1 supportedExtensions) +86
       System.Web.WebPages.ApplicationStartPage.ExecuteStartPage(HttpApplication application) +160
       System.Web.WebPages.WebPageHttpModule.StartApplication(HttpApplication application, Action`1 executeStartPage, EventHandler applicationStart) +113
       System.Web.WebPages.WebPageHttpModule.StartApplication(HttpApplication application) +67
       System.Web.WebPages.WebPageHttpModule.Init(HttpApplication application) +209
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +503
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +198
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +356
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +262
    
    [HttpException (0x80004005): 引发类型为“System.Web.HttpException”的异常。]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +636
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +190
    

    2012年4月11日 10:31

答案

全部回复