Sample application demonstrating how to combine DotVVM with existing ASP.NET Web Forms application
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

DotVVM + ASP.NET Web Forms in one application

This repo is a demo of how to combine DotVVM with existing ASP.NET Web Forms application.

Steps Required to Add DotVVM in Existing Web Forms App

  1. Install the DotVVM.Owin NuGet package.

  2. Install the Microsoft.Owin.Host.SystemWeb package if you already don't have it in your project.

  3. Add the OWIN Startup class and call app.UseDotVVM....

  4. Unload the project, edit the .csproj file and add the DotVVM Project guid (94EE71E2-EE2A-480B-8704-AF46D2E58D94) as a first one in the <ProjectTypeGuids> element.

This is only needed to get full editing experience in Visual Studio. If you don't have the DotVVM for Visual Studio installed, do not add this GUID otherwise you won't be able to load the project.

It should look like this:

  1. Make sure you have told the IIS to run all managed modules for all HTTP requests in the web.config:

        <modules runAllManagedModulesForAllRequests="true" />
        <validation validateIntegratedModeConfiguration="false" />
  2. Create your DotvvmStartup file and register your DotVVM routes. Any request that doesn't match any DotVVM route, will be passed to the ASP.NET Web Forms handlers.

For more information about DotVVM, visit the DotVVM website.