.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem in Initialize() method

3 REPLIES 3
Reply
Message 1 of 4
mzakiralam
340 Views, 3 Replies

Problem in Initialize() method

Hi ,

 

I am facing a problem during initialize method of a DLL. During initialiazation it throw following error message.

 

Capture11.JPG

 

 It happens only when I am using ACAD 2010 and try to load DLL from network. When I try to load the DLL form local disc then it works fine. I try in ACAD 2011 where it also works fine from network. Can anybody give me any clue how to resolve this problem. I am attaching the project so that anybody reproduce this problem.

 

Regards

Zakir

3 REPLIES 3
Message 2 of 4
hgasty1001
in reply to: mzakiralam

Hi,

 

Not sure, but you can try adding this line to the acad.exe.config (in the AutoCAD folder) in the runtime section:

 

<runtime>

...

<loadFromRemoteSources enabled="true" /> 

...

</runtime>

 

 

Gaston Nunez

Message 3 of 4
mzakiralam
in reply to: hgasty1001

I have tried that before posting this message but no luck. What I have found that if I remove the reference of PresentationCore.DLL then there is not problem of initialization. But I need that reference. Everything is working fine if I load the dll from local disc.

Message 4 of 4
fieldguy
in reply to: mzakiralam

Do a search for CASPOL - this forum or google.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost