The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,116 other followers

IIS on Windows 7: installing and opening the firewall

Posted by jpluimers on 2012/11/12

Usually, I run IIS only on server systems, but for the occasional time when I need it on a (development) workstation (as Cassinni only listens to localhost), these links come in handy:

  1. Installing IIS 7 on Windows Vista and Windows 7 : Installing IIS 7 : Installing and Configuring IIS : The Official Microsoft IIS Site.
    This helps you setup IIS 7, and make sure ASP.NET works on it
  2. Allowing Remote Connection in IIS on Windows 7 – Super User.
    This helps you open up the firewall to access IIS over http port 80.
  3. Make sure if you add virtual directories or applications, that they are based on Physical Paths. When not (for instance with a subst path), you will get an error like this:
    <<
    —————————
    Add Virtual Directory
    —————————
    The specified directory does not exist on the server.
    —————————
    OK
    —————————
    >>
  4. For ASP.NET applications, when creating a virtual directory or application (especially outside the C:\inetpub\wwwroot realm), make sure the rights are set correctly.
    The IIS configuration will warn you when testing a new virtual directory:
    <<
    The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that <domain>\<computer_name>$ has Read access to the physical path. Then test these settings again.
    >>
    When in doubt, check out the rights set to C:\inetpub\wwwroot and use that as a point to get started.
    Usually the user is IIS_USRS, and the minimum rights looks like read+execute, but in fact is excute+read-data+read-attributes+read-extended-attributes.

–jeroen

2 Responses to “IIS on Windows 7: installing and opening the firewall”

  1. Rob Schoenaker said

    Another option would be to download NGINX, make it listen on port 80 and then use it as a proxy to Cassini. This basically allows for ‘testing from the outside’. Installing and starting NGINX is a bliss.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: