After a computer crash my Visual Studio 2010 will

2020-02-23 05:23发布

My computer blue screened. After my computer restarted, I ran my Silverlight application and got this error:

Could not load file or assembly 'AsyncCtpLibrary' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

I actually got a couple of errors regarding RIA services not being able to generate code because a directory name had invalid characters. I cleared that up by deleting everything in the bin and obj directories. Clearly there is something corrupt.

I've pulled the DLL back down and set it to copy local and I still get that error, only after I run the program. I'm not sure if it's something where the DLL is corrupt in the GAC or something like that.

EDIT: After reinstalling the Async CTP DLL and checking the GAC, I decided to turn on Assembly Binding logging which gave me this information (along with a lot more).

ERR: Failed to complete setup of assembly (hr = 0x80070057). Probing terminated.

5条回答
Fickle 薄情
2楼-- · 2020-02-23 05:52

Simply delete temporary file in Temporary folder. enter %temp% in Run command to open temp folder and then delete all file and folder. After this your problem will resolved.

查看更多
爱情/是我丢掉的垃圾
3楼-- · 2020-02-23 05:53

If you think your GAC has become corrupted, I suppose you could take a look at the DLL in there. I bet you could find a checksum for the dll online, or re-download it. I'd follow Reed's advice, though -- that seems more likely to treat the root issue.

查看更多
我只想做你的唯一
4楼-- · 2020-02-23 05:59

Have you tried starting devenv in safemode?

devenv.exe /SafeMode

If this works you can try resetting the settings files to:

devenv.exe /ResetSettings

Instead of repairing Visual Studio you reset the user data back to their defaults with:

devenv.exe /resetuserdata
查看更多
The star\"
5楼-- · 2020-02-23 06:14

Okay, so I figured it out. I had to delete everything in this directory: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\

查看更多
祖国的老花朵
6楼-- · 2020-02-23 06:17

Delete all files from the following folders and try again:

C:\Users[username]\AppData\Local\Temp\Temporary ASP.NET Files\

.NET 4.0

%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\ %SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\

.NET 2.0

%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ %SystemRoot%\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\

查看更多
登录 后发表回答