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.
精彩评论