I running a C# MVC website written on C# for quite long time. Recently, I've noticed this log message in my logger data:
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)
I also know:
- This exception is thrown from the
ASP.global_asax
file. - This happen for one time in few weeks. But, when it's happen, I see this exception for few times in my logger (delay of a second between each exception).
As you can see, nothing in this call-stack is in my code. Therefore, I don't know how to repro this or solve this.
How do you recommend me to solve this? Any tip will be helpful.