Jeff Wallace
Apr 9, 2010
  5320
(3 votes)

EPiServer CMS and Existing ASP.NET/ASP Applications

Based on CMS 5 R2 SP2 and IIS 7.5

Many customer moving to EPiServer CMS for their content management may have existing ASP.NET or ASP applications that they don’t want to manage through EPiServer.  However, these applications contain critical business functionality that is necessary to utilize, and naturally they’d like to access this functionality using the same domain as the pages based on EPiServer.  The question is, is it possible to make these applications subdirectories of the domain root without EPiServer interfering?  The simple answer, YES!

The steps I followed aren’t too exciting so if the answer above leaves you feeling content stop reading now.  If you’re curious as to my process, by all means, read on…

___________________________________________________________

 

I started by creating two very basic web apps, both with a login page.  One in ASP.NET and one in classic ASP.  I didn’t do anything special here so I’ll avoid putting these details here to reduce the odds of you falling asleep too quickly.

Next I created a very basic EPiServer site.  Fancy, right?

clip_image002

IIS was not configured to handle classic ASP for my site so I needed to fix this.  To do so I need to create a mapping to tell IIS what module should respond to requests for an .asp extension.  I went into the IIS management console for the EPiServer site and selected “Handler Mappings”. 

image

Once there I selected “Add Script Map…”

image

And filled in the form accordingly:

  1. Name – “ClassicASP” (could be anything)
  2. Request path - “*.asp”
  3. Executable – Path to asp.dll

 

clip_image008

In the IIS management console I created a new virtual directory by right clicking on my site name and selected “Add Virtual Directory…”.

image

In my case I named this directory “ASPNETLogin” but of course it can be whatever you like.  Just like a real world scenario my simple web applications live in a different location than my EPiServer site and of course I selected that location for my virtual directory path.

clip_image012

image

And like magic, a virtual directory appeared…

clip_image014

For test 1, I navigated to my login.aspx (ASP.NET) page and everything looked as expected.

clip_image004

For test 2, I navigated to my classicasplogin.asp (classic ASP) page and everything looked as expected there as well.

clip_image010

Since I drank a couple of extra cups of coffee I was so wound up on caffeine to be a real “go getter”.  ;)  I went a step further and created a page in EPiServer with the same name as my virtual directory “ASPNetLogin”.

image

Again, I waved an invisible magic wand and all was well when I loaded my EPiServer Page…

image

…and also with my ASP.NET and ASP pages (though I’m only going to post a screen shot of one of them).  Note the path in the above and below screen shots.

image

As stated early on, nothing too exciting here, but I wanted to walk through these steps quickly for validation and post a short blog on it for reference.  Plain and simple, as it should be.  I tried to sneak in a couple of jokes to keep it more interesting, but alas my jokes weren’t too great either!  I suppose it’s time for a double espresso…

Apr 09, 2010

Comments

Sep 21, 2010 10:33 AM

Quality information again, Jeff! Thanks for the effort on this!

Sep 21, 2010 10:33 AM

Quality information again, Jeff! Thanks for the effort on this!

Please login to comment.
Latest blogs
Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog

Integration Bynder (DAM) with Optimizely

Bynder is a comprehensive digital asset management (DAM) platform that enables businesses to efficiently manage, store, organize, and share their...

Sanjay Kumar | Jul 22, 2024

Frontend Hosting for SaaS CMS Solutions

Introduction Now that CMS SaaS Core has gone into general availability, it is a good time to start discussing where to host the head. SaaS Core is...

Minesh Shah (Netcel) | Jul 20, 2024

Optimizely London Dev Meetup 11th July 2024

On 11th July 2024 in London Niteco and Netcel along with Optimizely ran the London Developer meetup. There was an great agenda of talks that we put...

Scott Reed | Jul 19, 2024