Unable to cast object of type ‘x’ to type ‘x’.

Talk about an ambiguous error…

I just got this is .NET for what appears to be no reason at all. Turns out that this is an issue with .NET when it doesn’t fully compile the page. The only way that I’ve found to resolve this issue is to delete the temp files under:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

<rant>
.net is cool and all, but seriously. I’ve encountered a lot of ‘bugs’ while working with it. WTF? Classic ASP never any any issues like this in the 7+ years that I’ve been using it…. ARG!
</rant>


Leave a Reply