서버에서 실행중인 VB 프로그램에서 .Net 어셈블리에 액세스하려고합니다. 자주 언급 된 Could not load file or assembly
오류가 나타납니다. 저는 약 60 개의 서로 다른 웹 페이지를 훑어 보았습니다..Net 어셈블리를로드 할 수 없습니다.
저는 실행 파일과 동일한 디렉토리에 dll을 가지고 있습니다. Appbase에서는 file://?/c:
을 보여주고 있으며 다른 예제에서는 이것을 연구 해 보았습니다. 그들은 모두 file:///
이었습니다. 그게 문제가 될 수 있는지 아닌지 나는 모른다. 그렇다면 누구나 해결 방법을 알려 줄 수 있습니까? file://?/
에 대한 검색을 시도했지만 Google 및 Bing의 물음표로 묶인 경우에도 모든 특수 문자를 무시합니다.
오류 메시지 :
Unhandled Exception: System.TypeInitializationException: The type initializer for 'cgiTest.modCurrentBalance' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Aspose.Cells, Version=7.4.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56' or one of its dependencies. The system cannot find the file specified.
File name: 'Aspose.Cells, Version=7.4.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56'
at cgiTest.modCurrentBalance..cctor()
=== Pre-bind state information ===
LOG: User = WEBSERVER1\Administrator
LOG: DisplayName = Aspose.Cells, Version=7.4.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56
(Fully-specified)
LOG: Appbase = file://?/c:/inetpub/intranet/
LOG: Initial PrivatePath = NULL
Calling assembly : cgiTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=abaf442583423e6f.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Aspose.Cells, Version=7.4.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56
LOG: Attempting download of new URL file://?/c:/inetpub/intranet/Aspose.Cells.DLL.
LOG: Attempting download of new URL file://?/c:/inetpub/intranet/Aspose.Cells/Aspose.Cells.DLL.
LOG: Attempting download of new URL file://?/c:/inetpub/intranet/Aspose.Cells.EXE.
LOG: Attempting download of new URL file://?/c:/inetpub/intranet/Aspose.Cells/Aspose.Cells.EXE.
--- End of inner exception stack trace ---
at cgiTest.modCurrentBalance.GenerateReport()
at cgiTest.Module1.ProcessFunction() in q:\visual studio 2010\Projects\cgiTest\cgiTest\Module1.vb:line 65
at cgiTest.Module1.Main() in q:\visual studio 2010\Projects\cgiTest\cgiTest\Module1.vb:line 41
음 *가 *'Aspose.Cells.dll'입니까? –
그것은 C : C의 \을 Inetpub \ 인트라넷 –
디렉토리 : \를 Inetpub \ 인트라넷 2013년 2월 25일 오후 10시 2분 7,172,952 Aspose.Cells.dll 1 개 파일 (들) 7,172,952 바이트 –