Implementing Front Controller in ASP.NET Using HTTPHandler

G

Guest

Hi
I am trying to understand the article http://msdn.microsoft.com/practices...o 2002 and dot net framework 1.1 Than Prasad
 
C

Cor

Hi Prasad,

See this article

VS2002 and net 1.1

http://msdn.microsoft.com/library/d...n/html/vbconProjectsBackwardCompatibility.asp

Cor

Prasad Patil said:
Hi,
I am trying to understand the article
http://msdn.microsoft.com/practices/type/Patterns/Enterprise/DesFrontCo ntroller/
mentioned on the msdn website, I created the following example
http://msdn.microsoft.com/practices/type/Patterns/Enterprise/ImpFrontCo ntrollerInASP/
which describes Enterprise Solution Patterns Implementing Front Controller
in ASP.NET Using HTTPHandler. When i created the web application and tried
to run the same It gives me Parser Error Message: Unrecognized configuration
section 'controller.mapping' can anyone guide me setting a running version
of the application on my machine. I am currently using Microsoft Visual
studio 2002 and dot net framework 1.1.
 
G

Guest

H
The sample you're trying to run doesn't work right away if you copy and paste all the code. The problem you're getting is because you have to declare the section 'controller.mapping' in the web.config, something that's not shown in the example
You would do this by inserting this into your web.confi
<configSections><section name="controller.mapping" type="UrlMap,WebFrontController"/></configSections

If you get this working, you'll have to correct the entries by replacing the /patterns/frontc/3/ part with the virtual directory that you've created for your site
I'll recomend you take a look at http://msdn.microsoft.com/asp.net/using/migrating/jspmig/resources/code/ and then Front Controller Demo for a complete working implementation of the pattern

Alfred
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top