Solution contains 2 projects: Main Web app project and Webjob project.
The main web app currently utilizes Elmah to log errors. I followed the following link and implemented Elmah logging in webjob app.
The problem is I have the main webapp instance and a slot which are interchanged on commit build. Due to this the applicationName
to be put in app.config
also changes. How do I keep the applicationName
constant so that I have a single elmah.axd view to see all errors with a particular instance.
<errorLog type="Elmah.SqlErrorLog, Elmah" connectionStringName="ErrorLog" applicationName="/LM/W3SVC/5/ROOT"/>