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
Solved! Go to Solution.
Solved by Ajilal.Vijayan. Go to Solution.
Make sure you loading the dll from a local drive.
Do not load the dll from a server location.
Also check this settings.
http://labs.blogs.com/its_alive_in_the_lab/2011/05/unblock-net.html
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
having the same issue but I unblocked dll and its still not allowing me to do the commend netload. help. thanks
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 -
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
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 -
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
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 -
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
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 -
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.