The Web.config XML text file stores settings that control how a Web site works.



Open the Web.config in the root of the ASP.NET Web application project.


The HTTP handler needs to be added to the "<configuration> - <system.webServer> - <handlers>" node. Copy the following line verbatim into the <handlers> node of the Web config.


<add name="Ventura-FSPRO" path="Ventura.FSPRO" verb="*" type="VenturaServer.FrameStreamProcessor" />


This handler will redirect the path http://server:port/Ventura.FSPRO to the FrameStreamProcessor class.


For example:


<?xml version="1.0"?>

<configuration>

 <system.webServer>

   <handlers>

     <add name="Ventura-FSPRO" path="Ventura.FSPRO" verb="*" type="VenturaServer.FrameStreamProcessor" />

   </handlers>

 </system.webServer>

 ...


Make sure that every open tag is matched with a close tag. For example <configuration> is closed with </configuration>

ASP.NET with MVC

Read this topic when you are adding the processor to an ASP.NET with MVC project.


The MVC routing system will capture all HTTP request by default. MVC needs to be instructed to ignore the "Ventura.FSPRO" path:


Open the RouteConfig.cs file and scroll to the RegisterRoutes method.


Add the IgnoreRoute call like in the example:


    public static void RegisterRoutes(RouteCollection routes)

    {

        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");


        routes.IgnoreRoute("Ventura.FSPRO");


        routes.MapRoute(

            name: "Default",

            url: "{controller}/{action}/{id}",

            defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }

        );


    }