Click here to Skip to main content
14,421,539 members
Rate this:
Please Sign up or sign in to vote.
Hi all,

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

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=, 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.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Just needed to IIS 7 to allow running 32-bit application.
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100