this first time working log4net , error logging. trying deploy mvc5 application. have location on network , path \\dev\wwwroot\scheduler
.
what have done far?
1) published project on location following configurations:
- changed copy output directory copy always
changed build action files in models , controllers folder compile
changed copy local system.web.mvc , system.web.routing , system.web.abstractions true
- after publishing models , controllers folder gets copied inside \dev\wwwroot\bccscheduler\bin folder on location.
2) , start application giving url bccscheduler.dev.rgc.lcal/appointments/details/?clientid=1001 when run application. an error occurred while processing request
but when run application on localhost works.the localhost url http://localhost:50137/appointments/details/?clientid=1001
i url appointments controller , details action method.
- the folder structure in visual studio looks
3) tried logging errors using log4net
- created logs folder inside project.
configured log4net http://weblogs.asp.net/jhallal/configure-log4net-logging-framework-for-mvc
this creates log file when run code locally.
what need with?
1) how enable logging when deploy application
2) folder structure correct on network location error when give url bccscheduler.dev.rgc.lcal/appointments/details/?clientid=1001. should deploy application correctly>
if cannot run application locally on deployed server, try modifying web config include this:
<configuration> <system.web> <customerrors mode="remoteonly"/> </system.web> </configuration>
https://technet.microsoft.com/en-ca/library/bb684665.aspx
this should provide stack trace can figure out going on.
also, please post log4net.config if file/path related issue
Comments
Post a Comment