Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can not NetLoad DgnLsPurge.dll Hotfix

11 REPLIES 11
SOLVED
Reply
Message 1 of 12
dallasn
10306 Views, 11 Replies

Can not NetLoad DgnLsPurge.dll Hotfix

I am having trouble loading the DGN hot fix.

I get an error message every time I try the Netload command to load DgnLsPurge.dll

Something about .Net sandboxing the program.

I have tried using both the original AcDgnLS.dbx in my AutoCad folder and the new one from the Hot Fix Download and get the same negative results.

I am was able to install the Hot fix on my P.C. with no problems. I am not able to install it on my LapTop which is about a year newer.

When I installed it on my P.C. I was able to copy the files to the AutoCad directory with no messages.

When I installed it on my Laptop I got a 'provide administrator permission to copy' message when copying the files over to the AutoCad directory, for which I selected 'continue' and it copied over.

 

I appreciate anyones help or ideas...

 

Thanks

Dallas

 

Below it the error message I get inside of Autocad

 

 NETLOAD
Cannot load assembly. Error details: System.IO.FileLoadException: Could not
load file or assembly 'file:///C:\Program Files\Autodesk\AutoCAD MEP
2012\DgnLsPurge.dll' or one of its dependencies. Operation is not supported.
(Exception from HRESULT: 0x80131515)
File name: 'file:///C:\Program Files\Autodesk\AutoCAD MEP 2012\DgnLsPurge.dll'
---> System.NotSupportedException: An attempt was made to load an assembly from
a network location which would have caused the assembly to be sandboxed in
previous versions of the .NET Framework. This release of the .NET Framework
does not enable CAS policy by default, so this load may be dangerous. If this
load is not intended to sandbox the assembly, please enable the
loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569
for more information.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound,
Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly,
StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound,
Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile,
Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm
hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks,
StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
   at loadmgd()
Command: '_LOCKUI
Enter new value for LOCKUI <15>: 0

11 REPLIES 11
Message 2 of 12
Ajilal.Vijayan
in reply to: dallasn

Make sure you loading the dll from a local drive.

Do not load the dll from  a server location.

 

Also check this settings.

http://through-the-interface.typepad.com/through_the_interface/2011/07/loading-blocked-and-network-h...

http://labs.blogs.com/its_alive_in_the_lab/2011/05/unblock-net.html

 

 

Message 3 of 12
dallasn
in reply to: dallasn

Ajilil, thanks for the quick reply.

 

The link for unblocking the DLL seemed to do the trick.

 

For some reason I was not able to unblock the DLL from within the Autocad folder.

I had to go back and unblock the file in the download folder and copy it over.

 

Thanks again

D

Message 4 of 12
kcc143
in reply to: Ajilal.Vijayan

having the same issue but I unblocked dll and its still not allowing me to do the commend netload. help. thanks

Message 5 of 12
Alfred.NESWADBA
in reply to: kcc143

Hi,

 

>> still not allowing me to do the commend netload

You are loading the DLL from a local drive?

What message do you get when you try to load the module with command _NETLOAD?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 6 of 12

Hi, I was directed to this form through Angelo with Autodesk Customer Support. 

 

I have been trying to load AutoCAD DGN Hotfix for my version of AutoCAD 2012.  I have followed all steps listed on the AutoCAD DGN Hitfix Readme posted on the autodesk site and I am stuck in trying to run the DGNPURGE command to make the affect drawing elements purgeable (Step 4 under 'To excute the clean-up tool).  When I type in DGN in the command bar, a bunch of 'DGN ---' options come up but not 'DGNPURGE'. I'm not sure why this is happening.  I checked the security settings in properties and I did not have the option to unblock the files under the general selection, so I am assuming the files were already unblocked.  

 

I'm not sure what to do next, please help!  

 

Nicole

Message 7 of 12

Hi,

 

welcome @forums.autodesk.com!

 

Let's start at the beginning, you downloaded the tool from what download-site?

You have 32bit or 64bit of AutoCAD.

When you start command _NETLOAD and select this DLL ... what is then reported in the command area (press <F2> to get the window with more messages)?

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 8 of 12

Hi Alfred!  Thank you for your response!

 

Yes, I downloaded the zip file from the website and copied it into the project installation folder. 

 

I have 64bit autocad

 

When I do what you asked me below, this is the what comes up in the text window:


Command: NETLOAD
Cannot load assembly. Error details: System.IO.FileLoadException: Could not
load file or assembly 'file:///X:\05_LIBRARY\CAD\DGN
Hotfix\px64\DgnLsPurge.dll' or one of its dependencies. Operation is not
supported. (Exception from HRESULT: 0x80131515)
File name: 'file:///X:\05_LIBRARY\CAD\DGN Hotfix\px64\DgnLsPurge.dll' --->
System.NotSupportedException: An attempt was made to load an assembly from a
network location which would have caused the assembly to be sandboxed in
previous versions of the .NET Framework. This release of the .NET Framework
does not enable CAS policy by default, so this load may be dangerous. If this
load is not intended to sandbox the assembly, please enable the
loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569
for more information.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint,
StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean
forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName
assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile,
Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm
hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks,
StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile)
   at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
   at loadmgd()

 

-Nicole

Message 9 of 12

Hi,

 

One part of the message is:

>> An attempt was made to load an assembly from a
>> network location which would have caused the assembly to be sandboxed in
>>previous versions of the .NET Framework

That tool (and dotNET applications by default) are not loadable from network drives. Copy the DLL (if it's only a DLL, I don't know that now) to a local drive, e.g. C:\TEMP and load the tool with _NETLOAD then from this local folder.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 10 of 12

Got it to work! 

 

I am still having issues in cleaning up a couple of the files -   I sometimes get a pop-up and it wont continue to dgnpurge, and other times it wont clean out the file and it is still huge (even though all the xrefs had been cleaned out).  

 

Thanks for all your help!

 

Nicole 

 

 

Message 11 of 12

Hi,

 

>> I sometimes get a pop-up and it wont continue to dgnpurge

Can you show a screenshot of that message? If we see the content of the message maybe someone here might have a solution to get it running also with that files.

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 12 of 12


and other times it wont clean out the file and it is still huge (even though all the xrefs had been cleaned out).  

 


When I was using the compiled version from Kean's webpage, was facing the same proglem with huge files.

That's why I created a batch version to purge the drawing without opening it.

 

I dont know whether hotfix have a batch version.

If not try this one which is now available in Exchange Apss.

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

Post to forums  

Autodesk Design & Make Report

”Boost