This blog site which has been quite neglected while I work on the book occasionally gets a bizarre error. I have not had a chance to look into it at all and it is not reproducible in any way that I know. It just seems to occur randomly and usually after a long period of time. Here is the stack trace:
[DirectoryNotFoundException: Could not find a part of the path 'C:\Inetpub\wwwroot\dunnry.com\wwwroot\dasblogce\category\SiteConfig\blockedips.config'.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +1885372 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +916 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) +115 System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) +85 System.IO.StreamReader..ctor(String path) +117 newtelligence.DasBlog.Web.Core.IPBlackList.GetBlockedIPs(String configPath) in C:\dev\DasBlog CE\source\newtelligence.DasBlog.Web.Core\IPBlackList.cs:62 newtelligence.DasBlog.Web.Core.IPBlackList.GetBlockedIPs(HttpContext context) in C:\dev\DasBlog CE\source\newtelligence.DasBlog.Web.Core\IPBlackList.cs:37 newtelligence.DasBlog.Web.Core.IPBlackList.HandleBeginRequest(Object sender, EventArgs evargs) in C:\dev\DasBlog CE\source\newtelligence.DasBlog.Web.Core\IPBlackList.cs:102 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
If anyone has seen this and knows what’s up, shoot me an email.
Comments [0] December 10, 2005 Tracked by:"Strange DasBlog Error Fixed" (Extemporaneous Mumblings) [Trackback]
This is the personal site of Ryan Dunn, co-author of the The .NET Developers Guide to Directory Services Programming.
Ryan currently works for Microsoft and is the Technical Evangelist for Windows Azure
Buy the Book
Contact Ryan