System.Web.HttpException File does not exist - Page loads just fine (ASP.NET)

后端 未结 3 1673
伪装坚强ぢ
伪装坚强ぢ 2020-12-11 02:23

I\'m using Log4Net and logging everytime my ASP.NET-Application throws an error:

    protected void Application_Error(object sender, EventArgs e)
    {
              


        
3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-11 02:37

    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

提交回复
热议问题