小编Jun*_*Guo的帖子

14
推荐指数
2
解决办法
9202
查看次数

Microsoft.Owin.Diagnostics.ErrorPageExtensions.UserErrorPage将捕获哪些异常

我从http://blogs.msdn.com/b/webdev/archive/2013/11/22/debugging-owin-app-or-framework.aspx获得了演示代码,它显示了一个性感的错误页面.

app.UseErrorPage(new ErrorPageOptions()
        {
            //Shows the OWIN environment dictionary keys and values. This detail is enabled by default if you are running your app from VS unless disabled in code. 
            ShowEnvironment = true,
            //Hides cookie details
            ShowCookies = false, 
            //Shows the lines of code throwing this exception. This detail is enabled by default if you are running your app from VS unless disabled in code. 
 ShowSourceCode = true,
            });

            app.Run(async context =>
            {
               throw new Exception("UseErrorPage() demo");
               await …
Run Code Online (Sandbox Code Playgroud)

owin katana

7
推荐指数
1
解决办法
1345
查看次数

标签 统计

java ×1

katana ×1

owin ×1

spring ×1

velocity ×1