Hi friends
I have a project with C#.when I run my project's exe and I want to run one part of my project,I have this error:
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.DTS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Interop.DTS, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'
.
.
.
But when I want to run this part of my project via VS environment(not exe file) there is no error and every thing is OK.What should I do?Plz Help me.
thx alot.

Member Avatar

Huntondoom

do a If-statement on the file

if(system.file.exists(path))
{
//code when file exists


}
else
{
//code when file doesn't exists
}

but dont know what the exact problem is since you haven't posted any code