My computer crashed and I\'m now unable to start my previously working ASP.NET Web Application in Visual Studio 2008 -- getting the following error:
=== Pre-bind
The answer is I had to delete this folder's contents:
C:/Users/Adam/AppData/Local/Temp/Temporary ASP.NET Files/root/
After a BSOD, I had same error code but with AutoMapper.dll in VS 2010 for a .Net 4.0 MVC 3 project. The resolution for me was to delete the contents of:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\temp
(This is on Windows 7 x64)
It seems the error message 'Bind result: hr = 0x80070057. The parameter is incorrect.' can be caused when a temporary copy of a referenced DLL becomes corrupted by a system failure. The resolution is to remove this temporary copy. Then when you re-compile the compiler will re-copy the original DLL to the temporary folder.
Full list of paths to check and delete:
%LocalAppData%\Temp\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
%SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\