2017-02-14 1 views
0

C# MVP에서 EPPlus를 사용하여 Excel 파일을 메모리에로드하고 있습니다.EPPLus 40MB보다 큰 스트림을로드하는 중 오류가 발생했습니다.

model.File.InputStream 

을하고 ExcelPackage.Load() 방법이 통과 : 나는 파일 업로드에서 스트림을 복용하고 있습니다.

파일에 유용합니다. < 40MB. 그러나 큰 파일, 나는 오류를 얻을 :

An exception of type 'System.Runtime.InteropServices.COMException' occurred in EPPlus.dll but was not handled in user code

Additional information: A disk error occurred during a write operation. (Exception from HRESULT: 0x8003001D (STG_E_WRITEFAULT))

enter image description here

답변

1

이 문제를 해결 X64하는 프로젝트를 전환!

  • IIS에서 사용하는 경우 x64에서 실행되도록 풀을 설정해야합니다.
  • IIS Express에서 사용자는 Enable x64 bit version
관련 문제