开发者

IIS 6.0 web site server output? or server Console? New to IIS 6.0

Is there a way to enable and see server output on IIS 6.0?

I have deployed my VS 2008 MVC 2 project into IIS 6.0 with wildcard mapping. Static views show up correctly, but database access doesn't work.

My problem is I don't see any error message or error output. So I wonder if I can see server output for my sample web site, that could help me to see what goes wrong?

For example, I will put output before and after connection, the easiest way to debug.

Console.Wr开发者_运维技巧iteLine("Before connection");

Console.WriteLine("After connection");

However, IIS Manager doesn't allow me to see anything server output except log, which record only GET and POST actions.


There is no "server output". You can have your code write lines to a log file or you can use Visual Studio to attach to the process and debug it that way.


If you need to log NHibernate information to diagnose a problem, use log4net. See this article as reference.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜