cancel
Showing results for 
Search instead for 
Did you mean: 

Error System.IO.FileNotFoundException

Former Member
0 Kudos

It runs fine when im executing from my .Net Dev Environment. But when I execute the exe file on it's own I get the following error message:

An unhandled exception of Type 'System.IO.FileNotFoundException' occurred in sapsolution.exe

Additional information: File- or assemblyname Interop.SAPbouiCOM or one of its dependencies wasnt found.

Any clue on what might be wrong? Did I fail to add something. Somewhere?

The best regards

Allan, Denmark

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Christian,

Looks like you are missing a file.

Be sure that in the BinDebug or in the BinRelease folder exists the Interop.SAPbouiCOM.dll file. When you execute the project from the .Net environment, it uses the Interop.SAPbouiCOM.dll file that is in the Obj folder.

If it isn´t try just rebuilding the project and it should create the file again.

Hope helps,

Ibai Peñ

Answers (0)