12

I am trying to sort out a problem where some relative urls are not resolving properly in an ASP.NET website. I want to see the HTTP logs to determine which URLs are being requested from the web server. I am using the ASP.NET Development Server, not IIS.

So are there logs produced by the ASP.NET Development Server where I can check which files are being requested?

Windows 7, 64bit
VS2008
ASP.NET 3.5 SP1

Charles
  • 50,943
  • 13
  • 104
  • 142
David
  • 1,940
  • 3
  • 17
  • 30
  • Im not sure what you mean by development server. Are you referring to the built-in Visual Studio server? – Jeff Jan 19 '11 at 02:29
  • 1
    @Jeff: yes that is also called Cassini or Development Server. – VoodooChild Jan 19 '11 at 02:30
  • @VoodooChild thanks. I knew Cassini but I didn't realize "Development Server" was official. – Jeff Jan 19 '11 at 02:52
  • 1
    @Jeff: actually I am not sure if it is official as well and don't care. I remember it because there is a always a little balloon pops ups in your tray icon when you are using cassing which says something like "ASP.NET Development Server Started" :) – VoodooChild Jan 19 '11 at 03:14

6 Answers6

9

If you are willing to replace the basic ASP.NET development server that comes with Visual Studio...

CassiniDev includes a real-time request/response viewer and logging facility. As I understand it you can drop it in as a replacement web server very easily.

CassiniDev Log Viewer

CassiniDev seems to do exactly what you need. If you absolutely cannot use IIS for your site this may be the only other option in terms of being able to generate a request log.

Saul Dolgin
  • 8,624
  • 4
  • 37
  • 43
  • what do you mean "stuck with IIS as the only option"? Don't you mean that he will have to "Upgrade" to IIS? :) ..Or give a reason why Cassini is a better choice in your opinion. – VoodooChild Jan 19 '11 at 02:59
  • @VoodooChild: I've changed my summary statement to reflect the fact that this is an alternative to Cassini. Whether or not @David is willing or able to use IIS in his situation is besides the point I think. Personally I always prefer to use IIS to host my development web sites but I also understand that this may not always be possible or desired for everyone. – Saul Dolgin Jan 19 '11 at 11:35
6

As far as I understand Cassini has no logging feature

Zayar
  • 347
  • 2
  • 11
2

The short answer is:

There are no logs for the development server, aka: Cassini

I would highly recommend using the IIS web server, if the logging is a crucial to your needs.

VoodooChild
  • 9,776
  • 8
  • 66
  • 99
  • 1
    +1 for the link and question comments. Though Zayar did beat you to the punch with the answer so he gets accepted. :) – David Jan 19 '11 at 04:46
0

Uh, if you are patient and don't have too much chatter on your system, I was able to find errors in the Event Viewer under Application section. Look for category 'WebHost' to find them.

0

I would switch to IIS Express, it includes logging but even better it has support for Failed Request Tracing feature that will give you much more details.

See: http://learn.iis.net/page.aspx/868/iis-express-overview/

Carlos Aguilar Mares
  • 13,411
  • 2
  • 39
  • 36
0

UltiDev Web Server Pro, although it has no logging for now, when running from command line, it tells you exactly which file the request is mapped to: Request processing trace in UWS Pro

VladH
  • 702
  • 1
  • 6
  • 16