all about computer information and technology
RSS icon Email icon Home icon
  • A convenient way to deal with “Unexpected Error 0×8ffe2740″

    Posted on May 26th, 2009 admin 1 comment

    Ever had the annoying problem of IIS not wanting to start, coughing up the message ”Unexpected Error 0×8ffe2740 Occurred.”?  The reason is that some other application has grabbed port 80.  The most common applications doing this are Skype or Trillion.  You can try just ending task on them and see if IIS will then start.  If you’re not running either of those then what could it be?  Microsoft’s KB article about the subject describes using the third-party utilities TCPView or FPort.  But I think an easier way to find the issue is to simply drop out to a command prompt and run:

    netstat -aon

    Scroll up to the top part with TCP listings and you’ll see something like this:

    netstat-aon

    Then under “Local Address” look for 0.0.0.0:80.  This is your entry, and a the far right is the PID you’re after.  With that number you can then run Task Manager, select the Process tab, and add the PID column in the display from View / Select Columns:

    taskman_pid

    When you’ve found the process with the same PID, end task on it.  The universe should then return to a state of perfect harmony.  (Or at least your IIS will be able to start at that point!)

    Another more geeky option to kill the offending app is to compile and run this line of .NET code:

    System.Diagnostics.Process.GetProcessById( PID# ).Kill()

    (Of course putting in the proper PID where indicated there.)

    With everything that the Process class does, you could actually write your own highly effective Task Manager application in .NET if you really wanted to!

  • How do I configure IIS to host my web page?

    Posted on May 26th, 2009 admin No comments

    IIS (Internet Information Services) is an easy-to-use web server from Microsoft. IIS is not installed on Windows XP Professional by default. It is however installed when you upgrade from Windows NT or Windows 2000 to Windows XP Pro. If not installed IIS can be installed as follows:

    1. Click Start, click Control Panel, and double-click Add/Remove Programs. The Add/Remove Programs application starts.
    2. In the left column of the Add/Remove Programs dialog box, click Add/Remove Windows Components.
    3. When the Windows Components Wizard appears, click Next.
    4. In the Windows Components list, select IIS.
    5. Click Next, and follow the instructions.

    IIS allows you to host a web page on your own computer that can be accessed by others using the DNS name or the IP address of the PC on the network. The IP address can be found by using the command ipconfig in command prompt.

    The IIS is configured using the IIS snap-in, previously called the Internet Services Manager. This can be accessed in one of three ways:

    Method 1:

    1. From the Start menu, select Settings and then Control Panel
    2. Open Administrative Tools
    3. Open Internet Information Services

    Method 2:

    1. Right click on My Computer on your desktop
    2. Select Manage to open the Computer Management console
    3. Select Internet Information Services under Services and Applications

    Method 3:

    1. From the Start menu, select Run
    2. Type inetmgr and run the command

    The Internet Information Services snap-in provides server management options to control content and access to your Web or FTP sites. For example, if you are a developer testing a site before uploading it to an intranet or the Internet, you can use this tool to test your settings exactly as they will be on the final server. When the IIS is installed a default Web site and FTP site are created. You can now publish information on these default sites by following the steps outlined below:

    To Publish Content on your Web Site

    1. Create a home page for your Web site using any web page design tool
    2. Name your home page file Default.htm or Default.asp
    3. Copy your home page into the default Web publishing directory for IIS also called the home directory located in \inetpub\wwwroot
    4. If your network has a name resolution system (typically DNS), then visitors can simply type your computer name in the address bar of their browsers to reach your site. If your network does not have a name resolution system, visitors must type the numerical IP address of your computer.

    To Publish Content on your FTP Site

    1. Copy or move your files into the default FTP publishing directory. The default directory provided by Setup is \inetpub\ftproot.
    2. If your network has a name resolution system (typically DNS), then visitors can type ftp:// followed by your computer name in the address bar of their browsers to reach your site. If your network does not have a name resolution system, visitors must type ftp:// and the numerical IP address of your computer.

    Using Windows XP Professional you can host one Web site and one FTP site on a single computer. If you would like to host multiple Web or FTP sites on a single computer, consider upgrading to a server product.