有人可以帮我吗?'/'应用程序中的服务器错误。未指定的错误[5,sqlcese40.dll]
在昨天收到Google发送的电子邮件,告知我网站(www.bigint.biz)中的几个链接已损坏,我修复了它们。然后我对网站地图进行了更改。
之后,当访问站点时,我收到消息:'/'应用程序运行时错误中的服务器错误,此标签应该将其“模式”属性设置为“关闭”。
所以,我把网站的内容完全恢复到了对网站地图进行更改之前的样子;但是,我收到了 内部服务器错误500错误消息。
然后,我从主机提供商处删除了整个网站,然后再次上传了原始版本,但没有任何快乐。
因为,我已经设置了的customErrors标记的“mode”属性设置为“关”,以获得更详细的错误信息 - 以下信息:在“/”应用
服务器错误。 未指定的错误[5,sqlcese40.dll]
描述:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪以获取有关该错误的更多信息以及源代码的位置。
异常详细信息:System.Data.SqlServerCe.SqlCeException:未指定错误[5,1 sqlcese40.dll]
源错误:行2:@ {行3:行4:WebSecurity.InitializeDatabaseConnection( “图片集锦”, “UserProfile”,“UserId”,“Email”,true);
源文件:\ WEB-123win \ winpackage22 \ XXX.COM \网络\ content_AppStart.cshtml行:4
Stack Trace:
[SqlCeException (0x80004005): Unspecified error [ 5,sqlcese40.dll ]]
System.Data.SqlServerCe.SqlCeConnection.Open(Boolean silent) +2182
System.Data.SqlServerCe.SqlCeConnection.Open() +47
WebMatrix.Data.Database.EnsureConnectionOpen() +44
WebMatrix.Data.<QueryInternal>d__0.MoveNext() +66
System.Linq.Enumerable.FirstOrDefault(IEnumerable`1 source) +164
WebMatrix.Data.Database.QuerySingle(String commandText, Object[] args) +103
WebMatrix.WebData.DatabaseWrapper.QuerySingle(String commandText, Object[] parameters) +14
WebMatrix.WebData.SimpleMembershipProvider.CheckTableExists(IDatabase db, String tableName) +57
WebMatrix.WebData.SimpleMembershipProvider.CreateTablesIfNeeded() +49
WebMatrix.WebData.WebSecurity.InitializeMembershipProvider(SimpleMembershipProvider simpleMembership, DatabaseConnectionInfo connect, String userTableName, String userIdColumn, String userNameColumn, Boolean createTables) +73
WebMatrix.WebData.WebSecurity.InitializeProviders(DatabaseConnectionInfo connect, String userTableName, String userIdColumn, String userNameColumn, Boolean autoCreateTables) +51
WebMatrix.WebData.WebSecurity.InitializeDatabaseConnection(String connectionStringName, String userTableName, String userIdColumn, String userNameColumn, Boolean autoCreateTables) +51
ASP._Page__appstart_cshtml.Execute() in \\web-123win\winpackage22\bigint.biz\www.bigint.biz\web\content\_AppStart.cshtml:4
System.Web.WebPages.ApplicationStartPage.<ExecuteInternal>b__0() +65
System.Web.WebPages.ApplicationStartPage.<GetSafeExecuteStartPageThunk>b__3(Action action) +7
System.Web.WebPages.ApplicationStartPage.ExecuteInternal() +78
System.Web.WebPages.ApplicationStartPage.ExecuteStartPageInternal(HttpApplication application, Action`1 monitorFile, IVirtualPathFactory virtualPathFactory, IEnumerable`1 supportedExtensions) +184
System.Web.WebPages.ApplicationStartPage.ExecuteStartPage(HttpApplication application, Action`1 monitorFile, IVirtualPathFactory virtualPathFactory, IEnumerable`1 supportedExtensions) +30
[HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.]
System.Web.WebPages.ApplicationStartPage.ExecuteStartPage(HttpApplication application, Action`1 monitorFile, IVirtualPathFactory virtualPathFactory, IEnumerable`1 supportedExtensions) +96
System.Web.WebPages.ApplicationStartPage.ExecuteStartPage(HttpApplication application) +170
System.Web.WebPages.WebPageHttpModule.StartApplication(HttpApplication application, Action`1 executeStartPage, EventHandler applicationStart) +126
System.Web.WebPages.WebPageHttpModule.StartApplication(HttpApplication application) +71
System.Web.WebPages.WebPageHttpModule.Init(HttpApplication application) +127
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +418
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
[HttpException (0x80004005): Exception of type 'System.Web.HttpException' was thrown.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9874568
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
我注意到,当我在上传该网站再次使用FileZilla的客户端时4个文件未能复制到主机;但是,相同的文件位于主机bin目录中,因为它们最初并未因某些原因而被删除 - 我认为是访问权限。这些文件是:
网站/内容/斌/ X86/sqlceer40ENN.dll
网站/内容/斌/ X86/sqlceqp40.dll
网站/内容/斌/ X86/sqlcese40.dll
网站/内容/斌/ X86/sqlceme40.dll
这只是巧合,因为错误消息引用这些文件中的一个?
任何帮助将非常感激。
谢谢。
编辑 - 我已经在这里发现了一些更多的信息,但我很努力去了解它如何能够帮助我:http://www.blakepell.com/Blog/?p=227
我已经删除了该网站备份和运行为分钟:WebSecurity.InitializeDatabaseConnection( “PhotoGallery”,“UserProfile”,“UserId”,“Email”,true);
但问题依然存在
我认为问题是连接字符串 –
谢谢Saghir。你能更具体吗? – DaniB
同意@Saghir,但这可能是一个dll问题,因为它之前的工作,但不是因为失败的上传dll文件。如果您需要的所有内容都在您的解决方案输出中,那么请始终进行干净的上载,即删除目标上的现有文件,以便只添加文件,不更新。 –