在Windows窗体应用程序中以编程方式创建DTSX包时获取异常。 [英] Getting exception while creating DTSX package programmatically in windows form application.

查看:72
本文介绍了在Windows窗体应用程序中以编程方式创建DTSX包时获取异常。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在尝试以编程方式创建一个dtex包。为此,我参考了

Hi all,

I am trying to create a dtex package programmatically. for that I have taken reference of

Microsoft.SqlServer.DTSPipelineWrap
Microsoft.SqlServer.DTSRuntimeWrap
Microsoft.SqlServer.ManagedDTS



但当我试图在Windows窗体应用程序中运行以下行时


but when I m trying to run the following line in windows form application

package = new Package();



它给我FileNotFoundException


Its giving me FileNotFoundException

Could not load file or assembly 'Microsoft.SqlServer.DTSRuntimeWrap, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.





如果我在控制台应用程序中运行,如果完美无误地工作,那同样的事情。



如果我在我的Windows窗体应用程序中更改了构建平台32位它的工作,但我需要保留它只有任何CPU。



任何人都可以告诉我为什么会发生这样的事情。请告诉我如何克服它。



same thing if I run in console application if working perfectly without error.

If I change the Build platform 32 bit in my windows form application its working but I need to keep it Any CPU only.

Can anyone please tell me why its happening so. and please give me some idea how to overcome from it.

推荐答案

只需要IIS 7来运行32位应用程序。
Just needed to IIS 7 to allow running 32-bit application.


这篇关于在Windows窗体应用程序中以编程方式创建DTSX包时获取异常。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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