RealDWG exception on RuntimeSystem.Initialize(new ApplicationHost(), 1033)

RealDWG exception on RuntimeSystem.Initialize(new ApplicationHost(), 1033)

Anonymous
Not applicable
904 Views
1 Reply
Message 1 of 2

RealDWG exception on RuntimeSystem.Initialize(new ApplicationHost(), 1033)

Anonymous
Not applicable

I am new to RealDWG and am attempting to get a simple application working that reads Title blocks from DWG drawings. On the first line of my RealDWG 2010 application I get the following exception:

 

  

The specified module could not be found. (Exception from HRESULT: 0x8007007E)

 This occures when I call the following method:

 

RuntimeSystem.Initialize(new ApplicationHost(), 1033)

 

I have installed RealDWG 2010 x86 on my 64bit Windows 7 PC, am building the assembly with the StrongNameKey file and the correct license information. I have also added the following path to my PATH environment variable:

 

     C:\Program Files (x86)\RealDWG 2010

 

I have also attempted this with the x64 RealDWG installation, with the same result. I assume that there is something simple that I am missing such as a required dependency, but cannot figure out what it might be.

 

Could you please advise what I need to do to resolve this issue?

 

Thanks and Regards,

 

Sean Hunter

Onset Design

 

0 Likes
905 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

This was resolved by adding C:\Program Files (x86)\RealDWG 2010 to the start of the path variable.

0 Likes