System.directoryservices.dll不是完美的 [英] System.directoryservices.dll is not woking perfectly

查看:100
本文介绍了System.directoryservices.dll不是完美的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更改了网站目标框架从3.5更改为4.因此它也修改了网络配置。



之后我添加了system.diresctory。 dll进入我的项目,它也被添加到我的项目和webconfig中。



但是当我在aspx.cs文件中编码时,它显示缺少汇编参考。



请帮帮我。





I changed a website target Framework was changed from 3.5 to 4. hence it modified the web config too.

after that I have added the system.diresctory.dll into my project and it also been added to my project and webconfig.

but when I code in aspx.cs file it shows missing assembly reference.

please help me.


<assemblies>
        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
        <add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
      </assemblies>
    </compilation>

推荐答案

我不知道你是如何得到问题中显示的程序集列表的,但看起来你的问题是有一些旧版本的程序集。删除它们,替换为v.4。只需删除所有引用并再次添加。



-SA
I don't know how did you get the list of assemblies shown in the question, but it looks like your problem is having some assemblies of old versions. Remove them, replace with v.4. Simply remove all references and add again.

—SA


这篇关于System.directoryservices.dll不是完美的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆