Shawn Cicoria - CedarLogic

Perspectives and Observations on Technology

Recent Posts

Sponsors

Tags

General





Community

Email Notifications

Blogs I Read

Archives

Other

Use OpenDNS

December 2009 - Posts

What Identity with IIS7 and ApplicationPoolIdentity?

With IIS7, we have a little bit more isolation with AppPool Identities

For example, if you’re using the the DefaultAppPool, if you need to assign permissions to NTFS, SQL, etc., what you’d use instead is as follows:

IIS APPPOOL\DefaultAppPool

Where “DefaultAppPool” ends up being the name of your AppPool as shown in IIS Manager…

That is if you’ve set the identity to the “ApplicationPoolIdentity” instead of something else, such as Network Service, Local System, or something other…

Wildcard Certificates and IIS7

Let’s face it, during development, managing all the certificates if you’re doing anything with validating SSL/TLS traffic is a pain.

Now with Windows Identity Foundation (fka Geneva) we really have to get crackin on getting used to managing certificates, setting up SSL sites, etc.

So, here’s great post on setting up IIS7 to use wildcard certificates…

http://blog.mikeobrien.net/PermaLink,guid,12d9628c-a350-4f7b-a573-9d05429b54e8.aspx

This gives you 1 certificate rooted at some common domain (eg.    mydev.local) where all sites would be site1.mydev.local, site2.mydev.local, etc.  The CN in the certificate ends up being *.mydev.local – just wire up in your hosts file (..\drivers\etc\hosts) and you’re golden…

Posted: 12-23-2009 1:28 PM by cicorias | with no comments
Filed under: , ,
Make sure you copy the correct web.config…

During an installation issue, a client followed the TechNet article (http://technet.microsoft.com/en-us/library/cc298447.aspx) and those instructions are misleading.

It indicates to copy the “web.config” to the Layouts directory – what if fails to specify is it should be the “layoutsweb.config” file instead.

While following the article does get you passed the issue that brought you there in the first place, you eventually end up with issues on provisioned sites that reference anything in _layouts are there are sections “<system.web>” that don’t make sense in a IIS path.

Just recopying that correct config file fixes all.

How did I miss this one – The VirtualPathUtility in ASP.NET

I’ve been writing one off methods that apparently are handled quite well for a few things in the type System.Web.VirtualPathUtility.

For example, if you just want the page name or the extension, you have this utility to quickly get that from the current request path.

http://msdn.microsoft.com/en-us/library/system.web.virtualpathutility.aspx

Posted: 12-04-2009 10:11 AM by cicorias | with no comments
Filed under: