博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
  错误信息如下:
  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"