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 StartedInstalling DNN ...Installing DNN ...Dilemma Running DNN in the Default WebsiteDilemma Running DNN in the Default Website
Previous
 
Next
New Post
6/16/2010 7:41 AM
 
Hi there,

Could someone pease point us in the right direction regarding whether DNN should be installed in a virtual directory, or straight under the default web site. We currently have a website e.g.  www.domain.com which has many virtual directories under it, including custom applications, OWA etc. We would like to have www.domain.com/Default.aspx to go to DNN. Unfortunately, when we tried to install DNN at the default website root (luckily in the test environment), it broke the  underlying applications including OWA. This is because of the httphandlers dnn uses and the fact that ASP.NET does not allow one to clear the httphandlers for a sub-directory, once they are set at the default website. There are many threads about that.

DNN runs well as a virtual directory, does not break other applications, but the setback is that the website URLs will be http://www.domain.com/Dotnetnuke/Defa... . This is not ideal. Sure, we can put a default.htm or whatever in the default website root which redirects to the virtual directory http://www.domain.com/Dotnetnuke/Defa..., but that seems ungraceful.

Is there any way of either installing DNN in a virtual directory, but making it accessible using a root url like www.domain.com/Default.aspx, while not breaking other virtual directories like www.domain.com/owa/Default.aspx and www.domain.com/CustomApp/Default.aspx?

We are running DNN 05.04.02 (66) on Windows Server 2008 R2, IIS 7, is a DC and has Exchange and SQL.

Thank you in advance!
 
New Post
6/16/2010 6:50 PM
 
it can actually be done, it just takes some work
  • Ensure that your subdirectory is an application in IIS.
  • As the root level folder is running a dotnetnuke site, then edit any virtuals under that web.config files and add the line below just before the <system.web> tag.

    <location path="." inheritInChildApplications="false">  
    <system.web> 


Clearing individual sections
Please note, setting the inheritInChildApplications attribute will ensure no inheritance on any items within system.web. This includes httphandlers, httpmodules,assemblies, authentication and other optional sections such as compilation and customErrors. If you need to ensure that a subdirectory obeys a setting from one of those (e.g. a common customErrors behaviour) you will either need to copy the relative section to the subdirectory web.config, or else you will need to remove the inherited settings at the individual levels using the <clear> directive e.g. to remove inherited httpHandlers in a subdirectory you would alter the web.config in the sub directory to look like:



<httpHandlers> 
      <clear/> 
</httpHandlers> 

Note: Care must be taken when doing this as it's possible to clear entries that are required for the running of the site. Typically you will add the <clear> entry to the first line of the relevant section(s) and retain the existing entry. This ensures that the entries are not duplicated.

Alternatively you could try the hostheader setting in the web.config (theres a comment explaining it's usage)


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/1/2010 4:40 PM
 
I just got one more question since DNN 5.4.x is running .net framework 3.5 and virtual web app is built using .net framework 2.0. How do you stop child inheritance for sectiongroup ?
 
New Post
7/2/2010 10:57 AM
 
If the subdirectories for all your non-DNN apps are configured as applications in IIS, it will break inheritance completely, allowing each to run separately.  A better option would be to run DNN on a second site, under a different IP address.  I hate having anything run on the same site as OWA, too much to screw up.

Jeff
 
New Post
7/6/2010 2:28 PM
 
Jeff, Thank you for you reply - It will be nice if I can run as a second site, but that is not option for me in this case. When I setup DNN 5.4 using framework 3.5 but virtual web app using framework 2.0 will generate the following error: 
---
Parser Error Message: Section or group name 'system.web.extensions' is already defined. Updates to this may only occur at the configuration level where it is defined.

Source Error:

Line 3:  
Line 4:
Line 5:
Line 6:
Line 7:

Source File: C:\VirtualWebApps\IQC\web.config    Line:

Section or group name 'scripting' is already defined. Updates to this may only occur at the configuration level where it is defined. (C:\VirtualWebApps\IQC\web.config line 6)

Section or group name 'scriptResourceHandler' is already defined. Updates to this may only occur at the configuration level where it is defined. (C:\VirtualWebApps\IQC\web.config line 7)

Section or group name 'webServices' is already defined. Updates to this may only occur at the configuration level where it is defined. (C:\VirtualWebApps\IQC\web.config line 8)

Section or group name 'jsonSerialization' is already defined. Updates to this may only occur at the configuration level where it is defined. (C:\VirtualWebApps\IQC\web.config line 9)

Section or group name 'profileService' is already defined. Updates to this may only occur at the configuration level where it is defined. (C:\VirtualWebApps\IQC\web.config line 10)
Section or group name 'authenticationService' is already defined. Updates to this may only occur at the configuration level where it is defined. (C:\VirtualWebApps\IQC\web.config line 11)

-----------------------

 If I can upgrade my application to 3.5 framework then the error will go away but again that's not an option also. Seems to me the error generate due the inheritInChildApplications start at <system.web> and not at <configSection>

Any help is greatly appreciated.
dinh


 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Dilemma Running DNN in the Default WebsiteDilemma Running DNN in the Default Website


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