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...Running Webmatrix Razor site under DNN 6.2Running Webmatrix Razor site under DNN 6.2
Previous
 
Next
New Post
10/3/2012 4:16 PM
 

Hi,

I'm trying to access DNN Role information from inside a Webmatrix web application installed as part of a DNN site.  For background, we're at a university and we run this Webmatrix application to connect a bunch of databases.  We want to put it inside DNN to take advantage of all the module tools and to run authentication from the institution's ActiveDirectory server.  DNN does all this and we've already tested it--so far so good.

The Webmatrix app was built using the Starter Site template to control authentication and roles.  What we'd like to do is strip out all the authentication/role/WebSecurity helpers from the Webmatrix app and have it draw on the roles for the authenticated users from DNN.  But we'd like to do this without rebuilding the whole site as a module in DNN (beyond our abilities and timeline). 

We set the Webmatrix site up in an embedded inline frame on a DNN page and that works fine.  We can do this with the embed src= pointing to the URL for Webmatrix site (it's on the same IIS server) or to a virtual directory inside DNN that points over to the Webmatrix site--it doesn't seem to matter.

I also identified a number of variables from the DotNetNuke.Web.Razor.Helpers class that we need to access inside our Webmatrix site:

  • @Dnn.User.UserID
  • @Dnn.User.UserName
  • @Dnn.User.IsInRole()

These all run correctly inside a Razor-script module in a DNN page, but not inside the Webmatrix app.  What I can't figure out is how to access the DotNetNuke.Web.Razor.Helpers namespace from inside the Webmatrix application.  This blog posting seemed to address the issue, but I haven't been able to make it work.  Some thoughts I've had are:

  • Does the Webmatrix app need to physically located inside the DNN folder?
  • Do I add namespace declarations inside the Webmatrix web.config file?
  • Or, do I move the Webmatrix app insider the DNN folder and move the contents of its web.config folder up to the DNN web.config file?

Any help is appreciated.  Sorry for the long post.

Thanks, Bill 

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Running Webmatrix Razor site under DNN 6.2Running Webmatrix Razor site under DNN 6.2


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