Click here to Skip to main content
15,899,937 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

but when I m trying to run the following line in windows form application
package = new Package();

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.


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.
Posted

1 solution

Just needed to IIS 7 to allow running 32-bit application.
 
Share this answer
 
Comments
Sanchayeeta 3-Dec-14 8:47am    
This not web application. Its windows form application. Is that will work?

Anyways, Can you please tell me how to do that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900