Friday, July 15, 2011

IIS : Classic ASP, Windows 7 and IIS 7

Classic ASP is the good old Active Sever Pages technology which was the way Microsoft rendered web sites before the advent of managed code and ASP.NET.

It is essentially just a directory of asp, htm and other static content.

It's not supported by Microsoft e.g. there is no Classic ASP project type in VS 2010. May might just as well use Notepad (as I've seen some people do!).

Anyway, needed to do some work with this using the Classic .NET AppPool and got:

"The page you are requesting cannot be served because of the extension configuration. if the page is a script, add a handler. if the file should be downloaded, add a mime map."

Mr Google suggested IIS Handler Mappings but when I looked there I saw that ISAPI.dll was disabled (no way to enable it) and the message:

"You must manage managed handlers directly in the configuration file"

Come in Mr Google - your time is up.

Eventually found the solution under Windows Features:

Under IIS / World Wide Web Services / Application Development Features:

ASP = On
ISAPI Extensions = On
ISAPI Filters = On

Under IIS / World Wide Web Services / Common HTTP Features:

Static Content = On

Enjoy!

Thursday, July 14, 2011

TechNet : Wiki top dog

I've been doing a lot of work over at the TechNet Wiki - mainly in the WIF area.

Good to see that this week I'm officially top dog.

Frabjous joy in the North Compound!





Enjoy!

Wednesday, July 13, 2011

Windows : Windows Integrated Authentication

This is for Windows Integrated Authentication (IWA / WIA)

If you want to use this to automatically log into other sites that you access after logging in once when you come into work:

The site you want to access has to be in the “Local Intranet” zone.

The WIA setting in the IIS site – Authentication icon should be set.

For IE (which can do this behind the scenes):

  • Tools / Internet Options / Security / Custom Level (Scroll down to end) / Automatic login only in Intranet zone
  • Tools / Internet Options / Advanced (Scroll down to Security) / Enable Windows Integrated Authentication.

For Firefox, see

FireFox supports Integrated Windows Authentication

Also:

Configuring Windows Integrated AuthN

Note there are three articles here.

and

SSO with Office 365: ADFS Logon Web Site / Authentication / Browser Support

and

AD FS, Enhanced Protection for Authentication (EPA), Chrome and Integrated Windows Authentication (IWA)

Enjoy!

Friday, July 08, 2011

Misc : Find a similar article

 

The Internet is a wonderful source of information – the only problem is at least half of it is rubbish and  a quarter of the rest is misleading.

Had an example of this recently on a forum.

I was asking about V2 of a product and the answer was “Look at this article”. Which I duly did and noticed that the article referred to V1 of the product which used a feature which had been removed in V2.

I pointed that out on the forum. Back comes the answer “Oh – just ignore that section” WTF – without that section there is no solution.

Pointed that out on the forum. Back comes the answer “Find a similar article” WTF – that’s where I started. I couldn't find one – hence the forum question.

Thanks for FA dude!

Enjoy!