I\'m using Log4Net and logging everytime my ASP.NET-Application throws an error:
protected void Application_Error(object sender, EventArgs e) {
Check your HTML output of your page in case of using url with tilda "~/"
You need to use @Url.Content() to fix it
http://clubmicrosoft.net/post/2014/02/28/File-does-not-exist.aspx