How to troubleshoot “System.Web.HttpException (0x80004005): File does not exist”?

The reason is likely that the service has not been specified. When a web server (the local dev one as well) recieve a request for a folder they look inside that folder for the default page (usually called: index.htm, index.html, default.asp, default.aspx, etc) and present that (unless you are using a REST based service description). … Read more

Could not find any resources appropriate for the specified culture or the neutral culture

I just hit this same exception in a WPF project. The issue occurred within an assembly that we recently moved to another namespace (ProblemAssembly.Support to ProblemAssembly.Controls). The exception was happening when trying to access resources from a second resource file that exists in the assembly. Turns out the additional resource file did not properly move references from … Read more

Format of the initialization string does not conform to specification starting at index 0

228 Check your connection string. If you need help with it check Connection Strings, which has a list of commonly used ones. Commonly used Connection Strings: SQL Server 2012 Standard Security Trusted Connection Connection to a SQL Server instance The server/instance name syntax used in the server option is the same for all SQL Server connection … Read more

Why is HttpContext.Current null?

Clearly HttpContext.Current is not null only if you access it in a thread that handles incoming requests. That’s why it works “when i use this code in another class of a page”. It won’t work in the scheduling related class because relevant code is not executed on a valid thread, but a background thread, which … Read more