Can I run prism in ASP.NET v4.0 Classic

Topics: Prism v2 - Silverlight 4
Sep 17, 2010 at 1:47 PM


I want to know if I can run a Prism Silverlight application in v4.0 classic mode application pool.    I created an application,  but it only runs in integrated mode.     Our production servers do not have II7,  and I would like to avoid having to upgrade the servers.

When I run the application in classic mode I get this error: "Unable to cast object of type 'System.Web.HttpApplication' to type 'Microsoft.Practices.CompositeWeb.WebClientApplication'."   It runs great in integrated mode.

Thank you in advance.

Sep 17, 2010 at 2:13 PM

Nevermind, It was an error in the web.config file.  I removed this line from System.Web->HttpModules node.

  <add name="WebClientAuthorizationModule" type="Microsoft.Practices.CompositeWeb.Authorization.WebClientAuthorizationModule, Microsoft.Practices.CompositeWeb" />

Sep 17, 2010 at 2:54 PM


Nice to see that you solved this scenario, and thanks for sharing this with the community.

Fernando Antivero