zoukankan      html  css  js  c++  java
  • Framework版本导致不能加载相应的组件

    报错:
    Server Error in '/CorpOfflineHotel' Application.
    --------------------------------------------------------------------------------

    Could not load file or assembly 'System.Runtime.Serialization, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The module was expected to contain an assembly manifest.

    解决1:
    C:WINDOWSMicrosoft.NETFrameworkv2.0.50727caspol.exe -m -ag 1 -url "file:////\computernamesharename*" FullTrust -exclusive on
    The operation you are performing will alter security policy?
    Are you sure you want to perform this operation?
    y
    Added union code group with "-url" membership condition to the Machine level.
    Success.
    这个方法是从网上找到的,不行

    解决2:
    项目用的是Framework 2.0.50727,所以不会涉及到“Version=3.0.0.0”,我删除了Framework 3.0,然后就可以了。
    后来同事提示在IIS里面有个地方设置网站属性的地方,在这个地方修改成相应的版本就可以了。具体如下:
    开始->运行->输入inetmgr->右击“网站”->选择“属性”->选择“ASP.NET”->在ASP.NET Version中选择相应的版本
    这个方法是可行的,问题原因如题。

  • 相关阅读:
    Linux(debian)安装Redis教程
    Linux下Nginx学习笔记
    Linux常用命令
    MySQL代码片段
    MySql学习笔记
    漂亮的Web颜色
    Electron开发问题总结
    Git 教程
    Python基础
    【原创】servlet+spring+mybatis配置总结
  • 原文地址:https://www.cnblogs.com/shirly1981/p/5643713.html
Copyright © 2011-2022 走看看