Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocad Library does not work with Autocad 2019 #12

Open
jugdemon opened this issue Aug 9, 2018 · 0 comments
Open

Autocad Library does not work with Autocad 2019 #12

jugdemon opened this issue Aug 9, 2018 · 0 comments

Comments

@jugdemon
Copy link
Collaborator

jugdemon commented Aug 9, 2018

When trying netload on the dll I get the following error:


Cannot load assembly.
Error details: System.IO.FileLoadException: Could not load file or assembly 'MomenTumV2CadLayouting.dll' or one of its dependencies.
Operation is not supported. (Exception from HRESULT: 0x80131515)
File name: 'MomenTumV2CadLayouting.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.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()

Looking it up, apparently downloading files from the internet - i.e. the dll - makes them blocked in Windows 10 and Autocad 2019 blocks execution. You should add a step to the tutorial that tells people to open the properties on the file and unblock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant