日期:2014-05-20  浏览次数:20848 次

头疼问题:Calling assembly has different key than this assembly.
服务器换IP后就这样了。。。  





Calling assembly has different key than this assembly. 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 

异常详细信息: System.Exception: Calling assembly has different key than this assembly.

源错误: 


行 170: <tr>
行 171: <td width="224" height="175" valign="top" background="images/inde_16.jpg">
行 172: <uc2:adrotatorP id="AdrotatorP1" runat="server"></uc2:adrotatorP></td>
行 173: </tr>
行 174: <tr>
 


堆栈跟踪: 


[Exception: Calling assembly has different key than this assembly.]
  myZsf.myOptions..cctor() +58

[TypeInitializationException: “myZsf.myOptions”的类型初始值设定项引发异常。]
  myZsf.myOptions.test() +0
  myZsf.modName..cctor() +5

[TypeInitializationException: “myZsf.modName”的类型初始值设定项引发异常。]
  myZsf.OLEDBClass..ctor(String ConnectionString) +35
  WebApplication1.myUserControl..ctor() +73
  WebApplication1.adrotatorP..ctor() +49
  ASP.adrotatorp_ascx..ctor() +25
  ASP.index_aspx.__BuildControlAdrotatorP1() in D:\website\00000IUF^&76UT\chuanyi.cn-f34bcfd\index.aspx:172
  ASP.index_aspx.__BuildControlform1() in D:\website\00000IUF^&76UT\chuanyi.cn-f34bcfd\index.aspx:116
  ASP.index_aspx.__BuildControlTree(index_aspx __ctrl) in D:\website\00000IUF^&76UT\chuanyi.cn-f34bcfd\index.aspx:1
  ASP.index_aspx.FrameworkInitialize() +69
  System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +38
  System.Web.UI.Page.ProcessRequest() +86
  System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
  System.Web.UI.Page.ProcessRequest(HttpContext context) +49
  ASP.index_aspx.ProcessRequest(HttpContext context) +29
  System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 


------解决方案--------------------
程序集不正确,版本是否正确