3

I am running asp.net website on IIS 10 and I wrote a HttpModule in a class. when I add this module in IIS, I have this error:

Add Managed Module: There was an err while performing this operation Cannot execute program. The command being executed was 'c:...\bin\roselyn\csc.exe' /shared /keepalive:"10" /noconfig/fullpathes @'c:\Windows\Microsoft.NET\ranework64\v4.0.30310\Temporary ASP.NET Files\root\u8mj01d2\qwerty.cmdline'

Hamedb
  • 73
  • 10
  • Try to set the "Enable 32-Bit Applications" to true in iis advanced settings. Open the IIS -> select Application Pools -> Advanced Settings -> Enable 32-Bit Applications to True. – samwu Nov 23 '21 at 01:47
  • @samwu sorry, this solution does not solve the problem – Hamedb Nov 24 '21 at 08:00
  • can you post more information about your HttpModule in a class? – samwu Nov 25 '21 at 08:39
  • @samwu that is based on this article: [link](https://www.c-sharpcorner.com/UploadFile/akkiraju/url-rewriting-in-Asp-Net/) – Hamedb Nov 27 '21 at 07:20
  • You can try the solution in this link: [https://stackoverflow.com/questions/37427195/iis-7-error-cannot-execute-a-program-the-command-being-executed-was-csc-exe-a/43547793](https://stackoverflow.com/questions/37427195/iis-7-error-cannot-execute-a-program-the-command-being-executed-was-csc-exe-a/43547793). – samwu Nov 29 '21 at 02:10
  • Does this err happens even when you click on the first node in IIS Connections which is the name of your computer? – Ehsan Abidi Dec 07 '21 at 13:58
  • @EhsanAbidi There is no error in this case – Hamedb Dec 14 '21 at 05:35
  • It is difficult to reproduce your problem, I suggest you open a case via: support.microsoft.com. – samwu Dec 15 '21 at 09:12
  • @samwu FYI, the workaround to this problem is writing module tag manually in web.config instead of selecting module from module list in IIS. – Hamedb Dec 19 '21 at 11:05
  • I'm receiving the same error. I'm testing application initialization settings to figure out why we're having downtime and not a true overlapped recycle, so I'm trying to add the application initialization module, but getting stuck at this error that prevents the list of modules from being populated. Windows 10, with latest updates. Note that this error occurs only for web applications under the website, but works without error when choosing modules for the website itself. – Triynko Dec 26 '21 at 19:51

0 Answers0