cancel
Showing results for 
Search instead for 
Did you mean: 

COMException from LoadFromXML

AdKerremans
Active Contributor
0 Kudos

Ls,

The method LoadFromXML always gives the following internal exceptions

A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in BasisProject 2005C.dll

A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in BasisProject 2005C.dll

Has anyone seen this?

Regards

Ad

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Firstly Release the Objects which you are using..

Like FiledsMD, UserFieldsMd,Recordset.. This problem Comes when You does not relaese object and working continously using one object....

remove these SAPbobsCom and SAPBouiCom dlls and add again... then Rebuild project and use breakpoint to check where this problem is coming...

i think u will get some help...

regards

deepak

AdKerremans
Active Contributor
0 Kudos

Hi Deepak,

Releasing the application object is not option.

I already removed and reapplied the dll's but this did not work also.

Regards

Ad

Answers (2)

Answers (2)

Former Member
0 Kudos

hi Ad,

there is a lot of reason behind these type o error.

can u send your code as it is difficult to understand the reason behind this.

regards

nirdesh panwar

AdKerremans
Active Contributor
0 Kudos

Hi Nirdesh,

My code is:

SBO_Application.LoadBatchActions(ref sXML);

This is a SBO call, there is nothing to be seen.

Regards

Ad

Former Member
0 Kudos

hi kerremans,

Before start to debug your program, once clean your project by-

Built -> clean solution.

after run your code, hope it will work fine.

if not, can u send me the details of exception.. and check proper references are added in your project...

if satisfied with answer, rewards points.

regards

yogesh gupta

AdKerremans
Active Contributor
0 Kudos

Hi Yogesh,

It doesn't work.

the exception is in the LoadFromXML method from the UI API.

The only thing I get is what is in my originial post.

Regards

Ad