I get a strange inconsistent server error that is occasionally being raised by a code running when ASP.net web site is loaded.
The exception is a Null reference exception and it happens because somehow the following code (specifically written in VB.net library) generates a null result: "some SQL query".GetHashCode().ToString()
.
There's no exception happening in the relevant code block and there's nothing else I can see on the server's EventViewer log that can explain this strange behavior.
After reloading the web site the problem disappears.
This code is used for creating a hash key for SQL queries and I cannot have a work around it. Server is Windows Server 2008 R2 with IIS 7.5