首页 > 解决方案 > 我的网站突然显示 IOException, Nopcommerce

问题描述

我有一个在 Nopcommerce 平台上运行的网站。我不熟悉 Nopcommerce,但我已被分配解决此问题。我确实有 ASP.net 方面的经验,这可能会有所帮助。

一天,网站刚刚关闭,根据附件在生产服务器中显示以下错误。我们发现,当我们将数据库切换到我们的 uat 数据库时,它工作正常,我们推断程序本身可能没有问题,但是 DB。我怀疑生产数据库中的某些数据可能会导致错误,但我仍然无法完全隔离问题。我们尝试使用很多断点,我们发现在通过 Application_Start() 后我们无法进入我们的 home .cshtml 文件

编辑:这些测试在生产服务器和测试服务器上完成,两个服务器上都有数据库。

我们比较了主题和目录配置设置,但它们相似。我们还被告知要删除 Temporary ASP.NET 文件夹中的文件,但这也不起作用。顺便说一下,DB 是 SQL Server。

提前致谢

Server Error in '/' Application.
The file or directory is corrupted and unreadable.
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.IO.IOException: The file or directory is corrupted and unreadable.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[IOException: The file or directory is corrupted and unreadable.
]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +12841516
   System.IO.FileSystemEnumerableIterator`1.MoveNext() +12933561
   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +445
   System.IO.Directory.GetDirectories(String path) +91
   System.Web.Compilation.StandardDiskBuildResultCache.FindSatelliteDirectories() +22
   System.Web.Compilation.BuildManager.RegularAppRuntimeModeInitialize() +107
   System.Web.Compilation.BuildManager.Initialize() +251
   System.Web.Compilation.BuildManager.InitializeBuildManager() +227
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +475

[HttpException (0x80004005): The file or directory is corrupted and unreadable.
]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +10075596
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

标签: c#asp.netnopcommerce

解决方案


推荐阅读