Running boxed app on web host failed

Issues related to Enigma Virtual Box
Post Reply
Posts: 1
Joined: Wed Aug 14, 2019 5:47 pm

Running boxed app on web host failed

Post by yasin_dn » Wed Aug 14, 2019 5:59 pm


I have a small .Net console app written in c#. This app calls a c++ DLL by DllImport and run a function.
I'v boxed console app and DLL by EVB. This program run properly in win 7 and win 10 but when upload it to a web host and run on it, below error happened.
can anyone help me?

System.NotSupportedException: FileStream was asked to open a device that was not a file. For support for devices like 'com1:' or 'lpt1:', call CreateFile, then use the FileStream constructors that take an OS handle as an IntPtr. at Microsoft.Win32.Win32Native.SafeCreateFile(String lpFileName, Int32 dwDesiredAccess, FileShare dwShareMode, SECURITY_ATTRIBUTES securityAttrs, FileMode dwCreationDisposition, Int32 dwFlagsAndAttributes, IntPtr hTemplateFile) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)

Post Reply