HELP!!! Unable to load .dll

HELP!!! Unable to load .dll

songmaverick
Contributor Contributor
1,654 Views
6 Replies
Message 1 of 7

HELP!!! Unable to load .dll

songmaverick
Contributor
Contributor

I would like to learn C# to code some function in order to simply the my drawing work..

My IDE : Visual Studio

AUTUCAD 2020

I use Class Library (.NET Framework) templates to create a project and build solution.

songmaverick_1-1686543699272.png

 

I add accoremgd,  acdbmgd,  acmgd in Reference.

songmaverick_0-1686543658324.png

I get the .dll from /bin/Debug/.dll and type 'netload' in CAD 2020 to load the .dll file.

But I get this result as follows

songmaverick_2-1686543901665.png

 

I repeat these on my colleague's CAD2020, it is OK..

Could anyone tell me what is wrong with my computer?

Thank!!!

0 Likes
Accepted solutions (1)
1,655 Views
6 Replies
Replies (6)
Message 2 of 7

kerry_w_brown
Advisor
Advisor

Please Clarify.
Is the dll that doesn't load on your machine loading on your associated machine

or

are you rebuilding on your associates machine and loading it there ?

By any chance are you ignoring a Trusted Location warning ??

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
Message 3 of 7

songmaverick
Contributor
Contributor

Thanks for your reply!!

I do not build the solution on my colleague's computer and I use the same .dll to netload in cad

I am sure no  Trusted  warning appears .

I type 'netload' and choose the .dll and it says unable to .....

there is a warning appearing in my colleagues' CAD .

My colleague's warning is below

songmaverick_0-1686546623300.png

 

I am confused that there is no warning in my CAD!!

0 Likes
Message 4 of 7

songmaverick
Contributor
Contributor
Accepted solution

Option -> System ->Security Options 

change the Security Level from High to Medium

 

0 Likes
Message 5 of 7

songmaverick
Contributor
Contributor
Thanks for your reply , which reminds me of changing the Security Level
I could netload .dll
0 Likes
Message 6 of 7

kerry_w_brown
Advisor
Advisor

I had a suspicion it was a 'trust' issue becaue I've seen the wording of the message when cancelling the load from the Security dialog.

Glad it's working.


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 7 of 7

songmaverick
Contributor
Contributor

Thank you very much

I set high security level before . So the warning would not come out .

Your reply reminds me of this .. 

 

Thank you again!!

 

0 Likes