zoukankan      html  css  js  c++  java
  • 未能加载文件或程序集“System.ServiceModel, Version=2.0.5.0, ...”解决方法

    未能加载文件或程序集“System.ServiceModel, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。(FaultException`1)
    ---异常堆栈---
    Server stack trace:
    在 System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
    在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
    在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    在 JetSun.IXS.ServiceModel.IFiabSvc.QueryExpenseSummary(ClientContext context, ExpenseSummaryQueryParam param)
    Exception rethrown at [1]:
    在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    在 JetSun.IXS.ServiceModel.IFiabSvc.QueryExpenseSummary(ClientContext context, ExpenseSummaryQueryParam param)
    在 JetSun.ClinicalManagement.Library.FiabService.QueryExpenseSummaryByEncounterIds(String encounterIds, Boolean isNeedRecal) 位置 E:VSTSMedicalHealthClinicalManagementClinicalManagement.LibraryServicesFiabService.cs:行号 207
     
    原因:
    先安装了 .NET Framework 4,随后启用了 .NET Framework 3.5 WCF HTTP 激活,则会发生此错误。
     
    解决方法:
    以管理员用户在cmd中运行aspnet_regiis.exe -i -enable即可
     
    C:>CD C:WindowsMicrosoft.NETFrameworkv4.0.30319
    C:WindowsMicrosoft.NETFrameworkv4.0.30319>aspnet_regiis.exe -i -enable
     
    问题解决。
     
     
  • 相关阅读:
    关于全志A20的Ubuntu12.04 64位系统下环境配置及编译过程笔记【转】
    使用buildroot创建自己的交叉编译工具链【转】
    什么是make config,make menuconfig,make oldconfig,make xconfig,make defconfig,make gconfig?【转】
    JZ2440专用dnw 支持xp、win7、win8和win10系统【转】
    win10 x64下的DNW驱动不完全安装方法【转】
    GlusterFS
    iOS唯一标示符引导
    lftp使用
    教你10步闯进google play排行榜前列
    ${ }的用法
  • 原文地址:https://www.cnblogs.com/chriskwok/p/7064394.html
Copyright © 2011-2022 走看看