Where do logs go when running ASP.NET Core on IIS 7.5? -


i'm posting , answering it, because left me stumped long time. have following line in web.config:

<aspnetcore processpath="dotnet" arguments=".\xxx.server.dll" stdoutlogenabled="true" stdoutlogfile=".\logs\stdout" forwardwindowsauthtoken="false" /> 

so apparently, should logging logs\stdout, when look, there's nothing there. went on wild goose chase, searching whole disk named 'log' (that returned much) or 'stdout' (that returned nothing), , still couldn't figure out.

you check event viewer on machine -> application see if there errors logged, explain why log files aren't being generated.

however, probable reason iis doesn't have permission write log folder.

  1. right click on folder -> security
  2. ensure iis_isurs user has following permissions: read , execute, list, write (potentially write missing default)

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -