Implementing Front Controller in ASP.NET Using HTTPHandler

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Prasad Patil

    Implementing Front Controller in ASP.NET Using HTTPHandler

    Hi
    I am trying to understand the article [url]http://msdn.microsoft. com/practices/type/Patterns/Enterprise/DesFrontControl ler/ [/url
    mentioned on the msdn website, I created the following example [url]http://msdn.microsoft. com/practices/type/Patterns/Enterprise/ImpFrontControl lerInASP/ [/url
    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.map ping' 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

    Than
    Prasad
  • Cor

    #2
    Re: Implementing Front Controller in ASP.NET Using HTTPHandler

    Hi Prasad,

    See this article

    VS2002 and net 1.1



    Cor

    "Prasad Patil" <p_patil22@hotm ail.com> schreef in bericht
    news:A2517DEF-E65A-4F7A-A44B-210A02BE2CB9@mi crosoft.com...[color=blue]
    > Hi,
    > I am trying to understand the article[/color]
    http://msdn.microsoft.com/practices/...r /> ntroller/[color=blue]
    > mentioned on the msdn website, I created the following example[/color]
    http://msdn.microsoft.com/practices/...ntrollerInASP/[color=blue]
    > which describes Enterprise Solution Patterns Implementing Front Controller[/color]
    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.map ping' 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.[color=blue]
    >[/color]


    Comment

    • Alfredo Coviello

      #3
      RE: Implementing Front Controller in ASP.NET Using HTTPHandler

      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.map ping' 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="controlle r.mapping" type="UrlMap,We bFrontControlle r"/></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/us...esources/code/ and then Front Controller Demo for a complete working implementation of the pattern

      Alfred


      Comment

      • Alfredo Coviello

        #4
        RE: Implementing Front Controller in ASP.NET Using HTTPHandler

        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.map ping' 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="controlle r.mapping" type="UrlMap,We bFrontControlle r"/></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/us...esources/code/ and then Front Controller Demo for a complete working implementation of the pattern

        Alfred


        Comment

        Working...