c# - 我的网站突然显示 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
解决方案
推荐阅读
- flutter - 颤振类型'_CompactIterable
- >' 不是类型“列表”的子类型
' - arrays - 我在 MongoDB 中收到“未知的顶级操作员错误”
- javascript - Node / Express / Mocha 禁用中间件?
- ubuntu-18.04 - 在 Ubuntu 18.04 中安装时 freeradius 出现错误
- javascript - 通过替换字段名称使用 jquery ajax 发送表单数据
- git - 是否可以使用当前和目标分支提交哈希确定当前分支正在合并到哪个分支中?
- python - 使用带有 django 的 jquery 自动完成来选择一个选项
- node.js - 如何使用 node.js 获取嵌套的 JSON 对象 MongoDB 的数据
- python - 有没有办法使用 pandas 获取每月日期时间间隔 [(timestart_of_month1, timeend_of_month1), ...] 的列表?
- javascript - 笑话模拟模块功能