https://github.com/bluephoton/najm 에서이 프로젝트를 실행하는 동안이 오류가 발생합니다. 다른 사람이 이미 여기에 대해 질문했습니다. 파일 또는 어셈블리 IronPython을로드 할 수 없지만 지금까지 대답이 없습니다! 다른 버전의 IronPython을 설치하려고했지만 운이 없었습니다.
이것은 오류 메시지입니다.
> System.IO.FileNotFoundException: Could not load file or assembly 'IronPython, Version=2.7.9.0,
Culture=neutral, PublicKeyToken=7f709c5b713576e1' or one of its dependencies. The system cannot find
the file specified.
File name: 'IronPython, Version=2.7.9.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1'
at IPython.IronPythonHost.Load(String handlerModuleFile)
at Najm.Handlers.HandlerAssembly.LoadAssembly(String assemblyName, String loadParam) in
F:\najm\Application\Handlers\HandlerAssembly.cs:line 63
at Najm.Handlers.HandlerAssembly.Load(String location, String handlerAssembly, String loadParam) in
F:\najm\Application\Handlers\HandlerAssembly.cs:line 35
at Najm.Handlers.HandlersManager.LoadHandler(HandlerInfo hi) in
F:\najm\Application\Handlers\HandlersManager.cs:line 51
at Najm.Handlers.HandlersManager.LoadHandlers(IEnumerable`1 his) in
F:\najm\Application\Handlers\HandlersManager.cs:line 41
at Najm.UI.MainAppForm.MainAppForm_Load(Object sender, EventArgs e) in
F:\najm\Application\UI\MainAppForm.cs:line 40
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Pre-bind state information
LOG: DisplayName = IronPython, Version=2.7.9.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1
(Fully-specified)
LOG: Appbase = file:///F:/najm/Application/bin/x64/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : Najm.Handler.IPython, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: F:\najm\Application\bin\x64\Debug\Najm.exe.Config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Post-policy reference: IronPython, Version=2.7.9.0, Culture=neutral, PublicKeyToken=7f709c5b713576e1
LOG: Attempting download of new URL file:///F:/najm/Application/bin/x64/Debug/IronPython.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Build Number
LOG: Attempting download of new URL file:///F:/najm/Application/bin/x64/Debug/IronPython/IronPython.DLL.
LOG: Attempting download of new URL file:///F:/najm/Application/bin/x64/Debug/IronPython.EXE.
LOG: Attempting download of new URL file:///F:/najm/Application/bin/x64/Debug/IronPython/IronPython.EXE.
LOG: Attempting download of new URL file:///F:/najm/Application/bin/x64/Handlers/IPythonW/IronPython.DLL.
LOG: Attempting download of new URL file:///F:/najm/Application/bin/x64/Handlers/IPythonW/IronPython/IronPython.DLL.
LOG: Attempting download of new URL file:///F:/najm/Application/bin/x64/Handlers/IPythonW/IronPython.EXE.
LOG: Attempting download of new URL file:///F:/najm/Application/bin/x64/Handlers/IPythonW/IronPython/IronPython.EXE.
마침내 문제를 해결했습니다. Repo 소유자에게 연락하여 Najm.config를 편집하도록 요청했습니다. 먼저 "\ najm \ Application \ Najm.config"에서 Najm.config를 편집했습니다. Loaction 속성을 빈 문자열로 설정해야했는데 이제 Najm.config가 다음과 같이 보입니다. :
<?xml version="1.0"?>
<Najm>
<Handlers>
<!-- individual ids must match IDs you assign for your handler -->
<Handler Id="37581060-646F-49aa-8D1E-1E255B81B471" Location=""
Assembly="Najm.Handler.Default.dll" Param="" IsEnabled="true"/>
<Handler Id="18E85847-29C2-4cb1-BDA5-0C971BFAB906" Location=""
Assembly="Najm.Handler.Imaging.dll" Param="" IsEnabled="true"/>
<Handler Id="1E93F6DB-F2D2-4bda-A114-2B6F633859AC" Location=""
Assembly="Najm.Handler.Tables.dll" Param="" IsEnabled="true"/>
<Handler Id="B705A42E-7671-4097-A366-6DC6534CCFF9" Location=""
Assembly="Najm.Handler.IPython.dll"
Param="..\Handlers\IPythonSamples\Console\Console.py" IsEnabled="true"/>
<Handler Id="5CB3C60C-CB36-4925-9C00-69771586F5B9" Location=""
Assembly="Najm.Handler.IPython.dll"
Param="..\Handlers\IPythonSamples\TableFields\TableFields.py"
IsEnabled="true"/>
<Handler Id="871E9132-A1FF-410b-A897-5C72F003F7A4" Location=""
Assembly="Najm.Handler.IPython.dll"
Param="..\Handlers\IPythonSamples\Cube2GIF\cube2gif.py" IsEnabled="true"/>
</Handlers>
</Najm>
그리고 https://github.com/bluephoton/najm/issues/4에서 잘 할 수있는 것처럼 몇 개의 폴더를 다른 위치에 복사 하십시오 .
그런 다음 (솔루션 플랫폼)을 x64에서 Any CPU로 변경하여 문제가 해결되었습니다!
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다