Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Integrating ASP.NET MVC 3 app with DotNetNukeIntegrating ASP.NET MVC 3 app with DotNetNuke
Previous
 
Next
New Post
10/2/2012 1:54 PM
 

Hi,

 I'm trying to integrate an ASP.NET MVC 3 application with an existing DNN website. The reason for integration is to benefit from the Single Sign On (SSO) features of the DNN website.

In order to achieve that I publish the MVC 3 app to the DNN website; as I learned in order to have SSO in DNN I need to have the new website either as an Virtual directory or Application. I did so as well.

Considering that my MVC 3 app is empty, just a "Hello World" and I want to test the SSO, I referenced the DNN HttpModule as requested.

However when I click the link to MVC app from DNN portal, I get the following errors:

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Common.Globals.get_Status() +146
   DotNetNuke.HttpModules.RewriterUtils.OmitFromRewriteProcessing(String localPath) +158
   DotNetNuke.HttpModules.RequestFilter.RequestFilterModule.FilterRequest(Object sender, EventArgs e) +441
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +79
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +164


I appreciate any thoughts.

Thanks,
Reza
 
New Post
10/3/2012 5:49 AM
 
Raza, either use an IIS website pointing to a subdomain or integrate your app using a virtual directory mapped into DNN root folder with your mvc app inside.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/4/2012 11:27 AM
 

Hi Sebastian,

 Thanks for the reply. We followed similar approach and it didn't work. I also worked on disabling the inheritance between Web.Config from DNN to MVC app which failed also.

 The solution was to state in MVC web.config to remove all the DNN modules, then everything worked fine with Single Sign On.

 Thanks,

Reza

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Integrating ASP.NET MVC 3 app with DotNetNukeIntegrating ASP.NET MVC 3 app with DotNetNuke


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out