I have a problem to execute a application under wwwroot. It works fine when i run before published my site but it doesn't work as soon as my site is under wwwroot.
Here my codes
AppDomain sendBox = AppDomain.CreateDomain("sandBox");
string fileName = "C:\\inetpub\\wwwroot\\Rangoon\\Reports\\ReceiptPrinter.exe";
sendBox.ExecuteAssembly(fileName);
AppDomain.Unload(sendBox);
Note: I set IIS permission for my site folder. Please help thank you all.
Make sure that the executable (ReceiptPrinter.exe) is a .NET assembly. No native .exe will work there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.