System.Xml.Linq dll问题 [英] Problem with System.Xml.Linq dll

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

问题描述

大家好,

我已经使用.Net Framework 3.5开发了一个应用程序.
在此应用程序中,我正在使用System.Xml.Linq.
我的机器一切正常.
但是我的客户端在其计算机上安装了(唯一).Net Framework 4.0,并且当他尝试运行应用程序时,出现错误,因为"无法加载文件或程序集System.xml.linq version = 3.5.0.0 ".

我是否需要在客户端计算机上将System.Xml.Linq程序集添加到GAC中?
如果是,System.Xml.Linq是共享程序集还是私有程序集?

谁能告诉我如何使我的应用程序在仅安装了.Net Framework 4.0并在.Net Framework 3.5中构建的应用程序的客户端计算机上运行.
<-更新->

我的客户端未安装Visual Studio,因此我无法在其中运行gacutil命令.
谁能告诉我如何在没有Visual Stdio命令提示符的情况下运行gacutil.
<-更新->


谢谢,
Nagendra.

Hello All,

I have developed an application with .Net Framework 3.5.
In this application, i am using System.Xml.Linq.
Everything is working fine at my machine.
But my client has (ONLY) .Net framework 4.0 installed on his machine, and when he is trying to run application, an error is coming as "could not load file or assembly System.xml.linq version=3.5.0.0".

Do i need to add System.Xml.Linq assembly into GAC on client''s machine?
If yes, is System.Xml.Linq is a shared assembly or private assembly?

Can anybody tell me how can i make my application run on my client''s machine which has ONLY .Net Framework 4.0 installed and my application built in .Net Framework 3.5.

<--update-->

My client don''t have Visual Studio installed, so i can''t run gacutil command there.
Can anybody tell me how can i run gacutil without Visual Stdio command prompt.
<--update-->


Thanks,
Nagendra.

推荐答案

您必须重新编译.NET 4 Framework的解决方案才能使其正常工作.
或者,您的客户端必须安装.NET 3.5 Framework.
You have to recompile your solution to .NET 4 Framework to make it work.
Alternative your client has to install .NET 3.5 Framework.


System.Xml.Linq是共享程序集,我认为它是.Net Framework 3.5附带的.因此,可能是您必须安装.net framework 3.5.或者,您可以在将此程序集复制到GAC之后尝试.这可能有效
System.Xml.Linq is a shared assembly and I think it comes with .Net Framework 3.5. So may be you have to install .net framework 3.5. OR you can try after copying this assembly to GAC. This may work


您可以通过将其添加到App.Config文件中来强制其使用版本4.0

You can force your app to use version 4.0 by adding this to your App.Config file

<configuration>
   <startup>
      <supportedRuntime version="v4.0"/>
   </startup>
</configuration>



希望对您有帮助



Hope this helps


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

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