Jeff Wallace
Apr 9, 2010
  4685
(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
Display Child Pages in Content Delivery API Response

The below example will implement an instance of IContentConverterProvider to customise the serialisation of PageData and output child pages in the...

Minesh Shah (Netcel) | Oct 4, 2022

Bring the Report Center back in Optimizely CMS 12

The Report Center has been a part of Optimizely CMS since its first debut in version 5R2 in 2008, but in CMS 12, it's removed! Don't despair! Make...

Tomas Hensrud Gulla | Oct 4, 2022 | Syndicated blog

Customizing Property Lists in Optimizely CMS

Generic property lists is a cool editorial feature that has gained a lot of popularity - in spite of still being unsupported (officially). But if y...

Allan Thraen | Oct 2, 2022 | Syndicated blog

Optimizely names Luminary Senior Developer, Ynze Nunnink, OMVP

Luminary Senior Developer and Optimizely Lead, Ynze Nunnink has secured the coveted position of Optimizely MVP. Earning a Platinum badge for his...

Ynze | Oct 2, 2022 | Syndicated blog