在Application_EndRequest中加入调试信息导致WebHtmlEditor出错
2005-06-06 14:44
363 查看
前天下了个WebHtmlEditor (http://www.cnblogs.com/lion.net/)回来
发现在我的项目中死都用不起,在demo和新建一个项目中用却正常。
折腾了1天,后来发现是我的项目中在Application_EndRequest加入了调试信息,每个request后面都加上了登者的信息,导致WebHtmlEditor脚本出错。
HttpApplication application = (HttpApplication)sender;
HttpContext context = application.Context;
string userInfo = "No User";
try
{
if(context.Request.IsAuthenticated)
{
userInfo ="<br>登录用户:"+ context.User.Identity.Name;
}
}
catch
{}
//context.Response.Write(userInfo);
发现在我的项目中死都用不起,在demo和新建一个项目中用却正常。
折腾了1天,后来发现是我的项目中在Application_EndRequest加入了调试信息,每个request后面都加上了登者的信息,导致WebHtmlEditor脚本出错。
HttpApplication application = (HttpApplication)sender;
HttpContext context = application.Context;
string userInfo = "No User";
try
{
if(context.Request.IsAuthenticated)
{
userInfo ="<br>登录用户:"+ context.User.Identity.Name;
}
}
catch
{}
//context.Response.Write(userInfo);
相关文章推荐
- 试图运行项目时出错: 无法在 Web 服务器上启动调试。您不具备调试此应用程序的权限。此项目的 URL 位于 Internet 区域。有关更多信息,请单击“帮助”。
- 试图运行项目时出错: 无法在 Web 服务器上启动调试。您不具备调试此应用程序的权限。此项目的 URL 位于 Internet 区域。有关更多信息,请单击“帮助”。
- 试图运行项目时出错: 无法在 Web 服务器上启动调试。您不具备调试此应用程序的权限。此项目的 URL 位于 Internet 区域。有关更多信息,请单击“帮助”。终极解决方案
- 调试代码导致IE出错的避免方法
- 也谈Qt经典出错信息之QApplication: No such file or directory
- 中断处理程序中输出调试信息导致无法计算机无法启动
- Qt经典出错信息之QApplication: No such file or directory
- 试图运行项目时出错: 无法在 Web 服务器上启动调试。您没有调试该服务器的权限。
- web.xml文件出错导致了There is no Action mapped for namespace / and action name
- 无法在web服务器上启动调试。未能启动asp.net调试。在不调试的情况下启动项目也许能获得更多信息。
- 我所遇到的“调试 ASP.NET 应用程序时出现‘无法在 Web 服务器上启动调试’的错误信息”
- web 服务器监控状态模块权限控制不严格,导致信息泄露
- 微信开发获取出错信息,进行debug错误调试-微信开发教程8
- libpcap出错信息调试函数pcap_geterr, pcap_perror
- linux 系统调用 出错信息 调试 strerror errno
- javaweb未全站https化,因tomcat版本导致站内http请求出错解决
- js中的全局变量和静态变量的使用, js 的调试?- 如果js出错, js引擎 就会停止, 这会 导致 后面的 html中 refer 该函数时, 会报错 函数为定义!!
- eclipse发布web项目到tomcat 是卡在信息: Initializing Spring root WebApplicationContext
- DNN调试利器DNNDebug.aspx--如何调试出错信息不具体的程序错误
- 在页面中直接设计TreeView的节点而不使用Web.Sitemap文件在运行时出错信息