I have try to run the command dotnet MVCWebAPI.dll and it's working fine i can able to call api also.
When try to publish in iis 10.0.xx get the below error:
HTTP Error 502.5 - Process Failure Common causes of this issue:
The application process failed to start The application process started but then stopped The application process started but failed to listen on the configured port
Check the system event log for error messages Enable logging the application process' stdout messages Attach a debugger to the application process and inspect
When open event viewer get the below message:
Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE' with physical root 'C:\inetpub\wwwroot\' failed to start process with commandline ' ', ErrorCode = '0x80070057' : 0.
Below is my web.config file:
<configuration> <location path="." inheritInChildApplications="false"> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> </handlers> <aspNetCore processPath="dotnet" arguments="./MVCWebAPI.dll" stdoutLogEnabled="true" stdoutLogFile="./logs/stdout" /> </system.webServer> </location> </configuration>
User contributions licensed under CC BY-SA 3.0