Web Debug

Fix broken web applications, from servers to clients.

How Internet Explorer Chooses Between Document Modes

By default, Windows Internet Explorer 8 uses IE8 mode, Windows Internet Explorer 9 uses IE9 mode, etc. However, Windows Internet Explorer uses several criteria to determine which document mode to use. For example, if an HTML page contains a valid  declaration (see [HTML]), Internet Explorer uses one of the standards-based document modes. But, if there is no valid  declaration, Internet Explorer uses quirks mode.

Fix Common IE Problems

Fix Common IE Problems: Update your Docmode for Web Standards

http://blog.reybango.com/2012/01/09/fix-common-ie-problems-update-your-docmode-for-web-standards/

Document compatibility defines how a browser renders your website.  The more specific you are at telling the browser what to expect, the better the experience for your users. When using web standards like HTML5, start by explicitly declaring the HTML5 document type:




<!DOCTYPE html>




This markup triggers standards mode in Internet Explorer 9 and 10.  And it also works well in Chrome and Firefox.  Four steps will get your site ready for many browsers and devices:

Step 1: Validate that your site uses standards mode

Step 2: Implement docmode for web standards

Step 3: Determine why your site is not in Standards Mode

Step 4: Resolve common IE problems when updating docmode

Other reasons my page does not render correctly:

For further detail, try these articles:


 

How Do I Fix My Site Today?

http://msdn.microsoft.com/library/ee318404.aspx

This document will take you through the steps required to fix your site so that it will properly render in Windows Internet Explorer 8.

Wireshark vs Network Monitor

1) Wireshark is released under the GNU Public License; its source code is available to all, and if anybody makes a modified version of Wireshark available, they must make it available in source form to everybody to whom they make it available in binary form (see the GPL, Version 2:
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
and the FAQ about it:
http://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html
for a more detailed and perhaps more correct explanation). It is available at no cost.
Microsoft Network Monitor (henceforth referred to as "NetMon") is available at no cost, but its source code is not available.

2) Wireshark dissects packets by directly executing code, written in C, Lua (for versions of Wireshark built with Lua) or, I think, Python (for versions of Wireshark built with the Python interpreter); a third-party plugin:
http://wsgd.free.fr/
allows packet formats to be described in a packet description language. Tools exist to transform some packet description languages (ASN.1, Samba's PIDL interface description language for DCERPC/MSRPC, CORBA IDL) into C code.
NetMon dissects packets by using packet descriptions written in NetMon's own packet description language.

3) Wireshark runs on Windows and a number of UN*Xes (Linux distributions, *BSD, Mac OS X, Solaris, HP-UX, AIX, etc.).
NetMon runs only on Windows (it might be able to run, without support for packet capture, on x86 UN*Xes under Wine).

4) Wireshark can read capture files in a number of formats, including both pcap and pcap-NG format, as well as various formats from other packet analyzers, including NetMon format.
NetMon can read both its native format and pcap format; it supports some features of its native format that Wireshark does not (including, at present, frame comments).

5) Network Monitor can categorize network messages by processes while Wireshark cannot.

6) Network Monitor provides parser for windows native trace like wininet trace or etw trace.

Troubleshoot asp.net session lost issues

ASP.NET session state supports several different storage options for session data. Each option is identified by a value in the SessionStateMode enumeration. The following list describes the available session state modes:

How to configure SMTP service on IIS

To install IIS SMTP

Windows 2003
1. Under Add/Remove Programs, choose to Add/Remove a Windows Component.
2. Choose IIS and SMTP, and install. You may need access to your operating system's install CD.
3. Reboot after installation.

Windows 2008
1. Select Start|Control Panel.
2. Double click Programs and Features.
3. Click Turn Windows Features on and off. This starts the Server Manager.
4. Click Add Features.
5. Check SMTP Server. Click Install.

To setup IIS SMTP

Windows 2003
1. Check whether the SMTP service is running. Right click on My Computer and select Manage.
2. In Computer Management expand Services and Applications.
3. Expand Internet Information Services and right click on Default SMTP Virtual Server and select Properties.
4. Select the Delivery tab and press the Advanced button.
5. In the Smart Host enter the IP Address of your mail server and the Fully qualified domain name of the server listed in the Smart Host for the Fully-qualified domain name.
6. In the Masquerade domain enter the domain name of your primary email domain (e.g. imlogic.com).
7. Press OK to accept the changes.

Windows 2008
1. Click Start|Administrative Tools|Internet Information Services (IIS) 6.0 Manager.
3. Expand and right click on SMTP Virtual Server and select Properties.
4. Select the Delivery tab and press the Advanced button.
5. In the Smart Host textbox enter the IP Address of your mail server and the Fully qualified domain name of the server listed in the Smart Host for the Fully-qualified domain name.
6. In the Masquerade domain enter the domain name of your primary email domain (e.g. imlogic.com).
7. Press OK to accept the changes.

To test IIS SMTP

1. Open a text editor
2. Type in the following text :

to:.com
from:.com
subject:This is a test.

This is a test.

The following is an example:

to: john@foobar.com
from: jane@symanec.com
subject:This is a test.

This is a test.

Replace the email addresses with ones that exist in your organization.

3. Save the file as a .txt file to the c:\Inetpub\mailroot\Pickup\ folder.
4. You should receive the email message. If the message fails, the following Microsoft KB article gives further IIS SMTP troubleshooting instructions: How to test outbound mail flow with a file in the Pickup folder.

Other Resource

Config the Server SMTP IIS6 to send Mail
http://www.codeproject.com/Articles/8196/Config-the-Server-SMTP-IIS-to-send-Mail
Configure SMTP E-Mail in IIS 7
http://www.iis.net/learn/application-frameworks/install-and-configure-php-on-iis/configure-smtp-e-mail-in-iis-7-and-above

Fork me on GitHub