Visual Studio 2008 Beta 2 英文版中 svcutil.exe 无法运行的解决方法
Posted on 2007-09-10 20:42 江南白衣 阅读(1005) 评论(13) 编辑 收藏 举报
错误信息如下:
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'svcutil, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
File name: 'svcutil, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
解决方法:sn -Vr "c:\program files\Microsoft SDKs\Windows\v6.0A\Bin\SvcUtil.exe"
Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'svcutil, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
File name: 'svcutil, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
解决方法:sn -Vr "c:\program files\Microsoft SDKs\Windows\v6.0A\Bin\SvcUtil.exe"