Al publicar una aplicación Webassembly con IIS no me ejecuta los .exe

CarlosRojas 0 Reputation points
2023-09-14T20:49:10.21+00:00

Hola... En Webassembly Hosted desde el Backend utilizo ProcessStartInfo para procesar archivos .exe y todo marcha muy bien... Pero cuando Publico la aplicación y utilizo IIS no funciona ProcessStartInfo, no marca error pero no ejecuta los .exe... si voy al administrador de tareas tiene abierto el proceso... pero los deja en standby... alguna sugerencia Gracias

Internet Information Services
{count} votes

1 answer

Sort by: Most helpful
  1. Lex Li (Microsoft) 3,821 Reputation points
    2023-09-15T01:36:14.2633333+00:00

    https://halfblood.pro/web-application-differences-in-visual-studio-and-iis-60fec7e311b3

    Your code is executed in session 0 when hosted on IIS, so you can see the process in Windows Task Manager but cannot see its UI elements (session 0 has an invisible desktop).

    There isn't any workaround for you with Process.Start, as the modern web browser security policies prevent a web app from creating processes on the client machine (high security risk).

    If you do need more guidance on your specific scenario(s), you might hire an experienced consultant or contact Microsoft support. After thorough there might be alternative design approaches that fulfill your requirements.

    0 comments No comments