ExcelFile을 사용하여 Excel 파일을 편집 한 다음 pdf 파일로 저장합니다. 모든 것이 ASP.Net에서 작동하지만 Blazor를 사용하면 작동하지 않았습니다. 내가 얻은 오류는 다음과 같습니다.
"Could not load file or assembly 'PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified."
참조에 대해 "PresentationCore.dll"이 누락되었다고 생각했기 때문에 ASP.Net 프로젝트를 확인하고 동일한 dll 파일을 사용했지만 여전히 오류가 발생했습니다.
"Could not load file or assembly 'PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (0x80131058)"
그런 다음 "PresentationCore.dll"을 시도하지만 버전 3.0에서는 다음과 같은 오류가 발생합니다.
"Could not load type 'MS.Internal.SecurityCriticalDataForSet`1' from assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'."
감사합니다
ExcelFile에 익숙하지 않지만 두 가지 오류를 보면 .NET Framework 라이브러리라는 것을 알 수 있습니다. 이 경우 Blazor 또는 ASP.NET Core에서 작동하지 않습니다.
Blazor 및 .NET Core는 .NET Standard 2.x 라이브러리 (및 경우에 따라 .NET Core 2.x 또는 3.x)에서만 작동합니다.
대안을 찾아야합니다
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다