cad.net 記錄net加載錯誤


那一劍的風情:

命令: NETLOAD 無法加載程序集。錯誤詳細信息: System.IO.FileLoadException: 未能加載文件或程序集“file:///D:\Program Files\Pycad\NFox.Pycad.Acad.dll”或它的某一個依賴項。不支持操作。 (異常來自 HRESULT:0x80131515)
文件名:“file:///D:\Program Files\Pycad\NFox.Pycad.Acad.dll” ---> System.NotSupportedException: 
嘗試從一個網絡位置加載程序集,在早期版本的 .NET Framework 中,這會導致對該程序集進行沙盒處理。此發行版的 .NET Framework 默認情況下不啟用 CAS 策略,因此,此加載可能會很危險。如果此加載不是要對程序集進行沙盒處理,
請啟用 loadFromRemoteSources 開關。有關詳細信息,請參見
http://go.microsoft.com/fwlink/?LinkId=155569 在 System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 在 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) 在 System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark) 在 System.Reflection.Assembly.LoadFrom(String assemblyFile) 在 Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName) 在 loadmgd()

 

那一劍的風情:

 

那一劍的風情:

搞定

從錯誤提示的鏈接點進去就有解決方法。

福蘿卜:

文件屬性,解鎖

即使加了這個開關,文件被鎖還是會報這個錯誤

 

------------------------------------------------------------------------------------------------------------------------------------------------

命令重復了:

無法加載程序集。錯誤詳細信息: Autodesk.AutoCAD.Runtime.Exception: eDuplicateKey
   在 Autodesk.AutoCAD.Runtime.Interop.Check(Int32 returnValue)
   在 AcMgCommandClass.AddCommand(AcMgCommandClass* , ICommandLineCallable ca, 
MethodInfo mi)
   在 
Autodesk.AutoCAD.ApplicationServices.AutoCADApplicationHolder.Initialize(Assembl
y assembly)
   在 
Autodesk.AutoCAD.ApplicationServices.ExtensionLoader.ProcessAssembly(Assembly 
assembly)

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM