无法加载文件或程序集'System.Data.DataSetExtensions,版本= 3.5.0.0 [英] Could not load file or assembly 'System.Data.DataSetExtensions, Version=3.5.0.0

查看:379
本文介绍了无法加载文件或程序集'System.Data.DataSetExtensions,版本= 3.5.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用System.Data.DataSetExtensions的C#控制台应用程序,可以通过命令行在客户端服务器上平稳运行.我唯一要做的就是将bin/Release目录的内容复制到服务器上的特定目录,然后通过cmd运行该应用程序.

I have a C# Console Application that uses System.Data.DataSetExtensions that I can run smoothly on the client's server through the command line. The only thing I did was to copy the bin/Release directory contents to a specific directory on the server and run the app through the cmd.

现在,我想通过SQL SERVER Job运行相同的应用程序.我已经尝试了CmdExecT-SQL选项,最近一次使用的是xp_cmdshell.我也尝试过在没有工作的情况下运行程序,只是在新的查询选项卡上使用xp_cmdshell.

Now, I want to run the same app through an SQL SERVER Job. I've tried both the CmdExec and T-SQL options, the latest using xp_cmdshell. I've also tried running the program without the job, just with the xp_cmdshell on a new query tab.

我总是会收到此错误:

未处理的异常:System.IO.FileNotFoundException:无法加载 文件或程序集'System.Data.DataSetExtensions,Version = 3.5.0.0, 文化=中性,PublicKeyToken = b77a5c561934e089'或其中之一 依赖关系.系统找不到指定的文件.

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

有人可以帮我解决这个问题吗?为什么我可以通过cmd行而不是通过Sql Server行运行该程序?

Can someone help me to fix this? Why can I run the program through the cmd line and not through Sql Server?

非常感谢!

推荐答案

确保数据库服务器(安装SQL Server的数据库服务器)已安装.NET Framework 3.5.

Make sure that the database server (where SQL Server was installed) has .NET Framework 3.5 installed.

这篇关于无法加载文件或程序集'System.Data.DataSetExtensions,版本= 3.5.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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