I've developed an ASP.NET WebApi application. When I publish and test it to localhost IIS,I got this error at one request:
Response with status: 500 Internal Server Error for URL:
http://localhost/api/COMI/NEW/158/3
web.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule"
resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\POSweb.dll"
stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
<!--ProjectGuid: 5f28b9b3-0e00-439a-8fa1-e64186505b5e-->
Running it for IDE gives no error at that point.How can I fix/debug this.
route configuration:
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
routes.MapSpaFallbackRoute(
name: "spa-fallback",
defaults: new { controller = "Home", action = "Index" });
});
thanks