Unwanted Data Dump to Screen in Localhost

筅森魡賤 提交于 2019-12-25 05:30:52

问题


I'm guessing if you've seen something like this before, you know what it is.

Personally, I don't know where to start with describing this issue other than it looks like all of my standard output is somehow going to the console.

From what I can tell, this stuff is not called in my code, but then I generally work with Windows Forms, not ASP.NET.

I don't typically debug using localhost, but I wanted to make sure I had a lot of ASP.NET login security features removed before updating my personal website.

Here's what I see when I debug in localhost:


回答1:


That's because you have Trace enabled on either the web.config or at the page level.

 <system.web>
    <trace enabled="true" pageOutput="true" requestLimit="40" localOnly="false"/>
  </system.web>

Or:

<%@ Page Title="Home Page" Trace="true" Language="C#" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>


来源:https://stackoverflow.com/questions/11731593/unwanted-data-dump-to-screen-in-localhost

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!