我已经运行了一段时间使用C#编写的C# MVC网站。最近,我在我的日志记录数据中注意到了这条日志信息:
System.IO.IOException: The network name cannot be found.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
at System.IO.Directory.EnumerateFiles(String path)
at System.Web.WebPages.Deployment.WebPagesDeployment.AppRootContainsWebPagesFile(String path)
at System.Web.WebPages.Deployment.PreApplicationStartCode.OnChanged(String key, Object value, CacheItemRemovedReason reason)
at System.Web.Caching.CacheEntry.CallCacheItemRemovedCallback(CacheItemRemovedCallback callback, CacheItemRemovedReason reason)
我了解到:
1. 这个异常被抛出来自于
ASP.global_asax
文件。
2. 这种情况每隔几周才会发生。但是,当它发生时,我在我的记录器中看到这个异常几次 (每个异常之间有一秒钟的延迟)。
3. 如您所见,调用栈中没有我的代码。因此,我不知道如何复现或解决这个问题。你有什么建议可以帮助我解决这个问题吗?任何提示都将是有帮助的。