Monday 26 May 2014

The E_INVALIDARG Visual Studio warning

I had a very strange compilation error occur the other day that was preventing me from starting my .NET project.

It read:

ASP.NET runtime error: Could not load file or assembly 'xxxx.yyyyy.zzzzzz, Version=1.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxx' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Fix

Shut down IIS and Visual Studio, then clear the contents of all "C:\WINDOWS\Microsoft.NET\Framework\vx.x.x\Temporary ASP.NET" folders.

I found the fix for this problem on a MSDN blog article.

No comments: