I have an ASP.NET 4 application written in c# in visual studio 2010. I start a timer in application_start in Global.asax and I want it to start once but after logging application behavior I have noticed that application_start fires multiple times. Whenever there are no requests on the website for a while, application_start would fire on next request. I am not doing any file operations and not modifying web.config file. Is there a way to prevent this behavior.
In my webpages I have references to js and images as such: "../../Content/Images/"Filename" In my code if I reference a file as above, it doesnt work so i have to write: "c:/miscfiles/"filename" 1-...