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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...stopping child applications from inheriting web.configstopping child applications from inheriting web.config
Previous
 
Next
New Post
12/7/2009 9:19 PM
 

I DNN in root directory.

I have child applications in "apps" directory

Before upgrading to DNN 5, I could have both application folders running different applications by adding

 

<location inheritinchildapplications="false">

<system.web>

...

</system.web>

</ location>

 

to the root web.config.  However, in DNN 5.1.4 this breaks the DNN site.  If I remove it, the DNN site works but the child apps do not.  The child apps are in ASP.NET 2.0.

How do I run DNN in ASP.NET 3.5  in the root, and ASP.NET 2.0 child apps in the apps folder with their own web.configs?

Thanks

 
New Post
12/8/2009 10:31 AM
 

Set the apps folder as an application in IIS, this will prevent inheritance and provide a barrier to all app settings from cascading down.

Jeff

 
New Post
12/15/2009 6:44 PM
 

m, did you already solve this probem? I am having the same problem, I need to have another ASP.NET application at www.mydomain.com/aspnetapp2 along with DotNetNuke being configured as the root application at www.mydomain.com.

I have already set the subfolder as an application and it is still trying to access the root web.config. Could anyone please guide me how can I achieve what m is trying to achieve?

 
New Post
12/15/2009 8:30 PM
 

Hi Scoolweb,

Somehow, I was tinkering  with the settings and it now works.  I never setup the subfolder as an application.  I don't know why it didn't work initially? Maybe IIS had to reset?

From now on I am going to take out the <location> tags before doing upgrades.

Hope this helps...

The settings I have are below (I deleted some codes if I didn't know what they meant)... most important is the bold section, I think... but I left a few lines above and below so you see:

</system.codedom>
  <!-- The system.webServer section is required for IIS7 compatability It is ignored by IIS6-->
  <location path="." inheritInChildApplications="false">
    <system.web>

      <!-- Ensure validationkey is not set to AutoGenerate,IsolateApps so it correctly supports webfarms -->
      <machineKey validationKey="section intentionally deleted" decryptionKey="intentionally deleted" decryption="intentionally deleted"" validation="intentionally deleted"" />
      <!-- HttpModules for Common Functionality -->
      <httpModules>
        <!-- add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" / -->
        <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
        <add name="Compression" type="DotNetNuke.HttpModules.Compression.CompressionModule, DotNetNuke.HttpModules" />
        <add name="RequestFilter" type="DotNetNuke.HttpModules.RequestFilter.RequestFilterModule, DotNetNuke.HttpModules" />
        <add name="UrlRewrite" type="DotNetNuke.HttpModules.UrlRewriteModule, DotNetNuke.HttpModules" />
        <add name="Exception" type="DotNetNuke.HttpModules.Exceptions.ExceptionModule, DotNetNuke.HttpModules" />
        <add name="UsersOnline" type="DotNetNuke.HttpModules.UsersOnline.UsersOnlineModule, DotNetNuke.HttpModules" />
        <add name="DNNMembership" type="DotNetNuke.HttpModules.Membership.MembershipModule, DotNetNuke.HttpModules" />
        <add name="Personalization" type="DotNetNuke.HttpModules.Personalization.PersonalizationModule, DotNetNuke.HttpModules" />
      </httpModules>
      <httpHandlers>
        <!-- This is for CAPTCHA support -->
        <add verb="*" path="*.captcha.aspx" type="DotNetNuke.UI.WebControls.CaptchaHandler, DotNetNuke" />
        <!-- This is for Serving files, secure, insecure, from database -->
        <add verb="*" path="LinkClick.aspx" type="DotNetNuke.Services.FileSystem.FileServerHandler, DotNetNuke" />
        <!-- This adds syndication support -->
        <add verb="*" path="RSS.aspx" type="DotNetNuke.Services.Syndication.RssHandler, DotNetNuke" />
        <!-- This adds legacy support for the Logoff page -->
        <add verb="*" path="Logoff.aspx" type="DotNetNuke.Services.Authentication.LogOffHandler, DotNetNuke" />
        <!-- ASP.NET AJAX support -->
        <remove verb="*" path="*.asmx" />
        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
        <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
        <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=intentionally deleted" validate="false" />
      </httpHandlers>
      <!-- set code access security trust level - this is generally set in the machine.config
    <trust level="Medium" originUrl=".*" />
     -->
      <!-- set debugmode to false for running application -->
      <compilation debug="false" strict="false">
        <buildProviders>
          <remove extension=".resx" />
          <remove extension=".resources" />
        </buildProviders>
        <assemblies>
          <add assembly="Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
          <add assembly="System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
          <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
          <add assembly="System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
          <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
          <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
          <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
          <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=intentionally intentionally deleted" />
          <add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
        </assemblies>
        <!-- register your app_code subfolders to generate granular assemblies during compilation
      <codeSubDirectories>
         <add directoryName="sub-directory name"/>
      </codeSubDirectories>
      -->
        <codeSubDirectories>
          <add directoryName="IFrame" />
          <add directoryName="Survey" />
          <add directoryName="XML" />
          <add directoryName="Chat" />
          <add directoryName="effority.UserDirectory" />
        </codeSubDirectories>
      </compilation>
      <!-- permits errors to be displayed for remote clients -->
      <customErrors mode="RemoteOnly" />
      <!-- forms or Windows authentication -->
      <authentication mode="forms">
        <forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" />
      </authentication>
      <!--
            <identity impersonate="true"/>
            <authentication mode="Windows">
            </authentication>
        -->
      <!-- allow large file uploads -->
      <httpRuntime useFullyQualifiedRedirectUrl="true" executionTimeout="600" maxRequestLength="20000" requestLengthDiskThreshold="20000" />
      <httpCookies httpOnlyCookies="true" requireSSL="false" domain="" />
      <!--  GLOBALIZATION
        This section sets the globalization settings of the application.
        Utf-8 is not supported on Netscape 4.x
        If you need netscape compatiblity leave iso-8859-1.
        UTF-8 is recommended for complex languages
        -->
      <globalization culture="en-US" uiCulture="en" requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8" />
      <!--<globalization culture="en-US" uiCulture="en"  fileEncoding="iso-8859-1" requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"/>-->
      <!-- page level options -->
      <pages validateRequest="false" enableview_stateMac="true" enableEventValidation="false">
        <controls>
          <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=intentionally deleted" />
        </controls>
        <namespaces>
          <add namespace="System.ComponentModel" />
          <add namespace="System.Data" />
          <add namespace="System.Data.SqlClient" />
          <add namespace="System.Drawing" />
          <add namespace="Microsoft.VisualBasic" />
          <add namespace="System.Globalization" />
          <add namespace="DotNetNuke.Services.Localization" />
          <add namespace="DotNetNuke.Entities.Users" />
          <add namespace="DotNetNuke" />
          <add namespace="DotNetNuke.Common" />
          <add namespace="DotNetNuke.Data" />
          <add namespace="DotNetNuke.Framework" />
          <add namespace="DotNetNuke.Modules" />
          <add namespace="DotNetNuke.Security" />
          <add namespace="DotNetNuke.Services" />
          <add namespace="DotNetNuke.UI" />
          <add namespace="DotNetNuke.Entities.Portals" />
          <add namespace="DotNetNuke.Common.Utilities" />
          <add namespace="DotNetNuke.Services.Exceptions" />
          <add namespace="DotNetNuke.Entities.Tabs" />
        </namespaces>
      </pages>
      <!-- ASP.NET 2 Membership/Profile/Role and AnonymousAuthentication Providers -->
      <!-- anonymousIdentification configuration:
          enabled="[true|false]"                              Feature is enabled?
          cookieName=".ASPXANONYMOUS"                         Cookie Name
          cookieTimeout="100000"                              Cookie Timeout in minutes
          cookiePath="/"                                      Cookie Path
          cookieRequireSSL="[true|false]"                     Set Secure bit in Cookie
          cookieSlidingExpiration="[true|false]"              Reissue expiring cookies?
          cookieProtection="[None|Validation|Encryption|All]" How to protect cookies from being read/tampered
          domain="[domain]"                                   Enables output of the "domain" cookie attribute set to the specified value
        -->
      <anonymousIdentification enabled="true" cookieName=".ASPXANONYMOUS" cookieTimeout="100000" cookiePath="/" cookieRequireSSL="false" cookieSlidingExpiration="true" cookieProtection="None" domain="" />
      <membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15">
        <providers>
          <clear />
          <!-- Configuration for DNNSQLMembershipProvider:
              connectionStringName="string"               Name corresponding to the entry in <connectionStrings> section where the connection string for the provider is specified
              passwordAttemptThreshold="int"              The number of failed password attempts, or failed password answer attempts that are allowed before locking out a user?s account
              passwordAttemptWindow="int"                 The time window, in minutes, during which failed password attempts and failed password answer attempts are tracked
              enablePasswordRetrieval="[true|false]"      Should the provider support password retrievals
              enablePasswordReset="[true|false]"          Should the provider support password resets
              requiresQuestionAndAnswer="[true|false]"    Should the provider require Q & A
                    minRequiredPasswordLength="int"                  The minimum password length
                    minRequiredNonalphanumericCharacters="int"  The minimum number of non-alphanumeric characters
              applicationName="string"                    Optional string to identity the application: defaults to Application Metabase path
              requiresUniqueEmail="[true|false]"          Should the provider require a unique email to be specified
              passwordformat="[Clear|Hashed|Encrypted]"   Storage format for the password: Hashed (SHA1), Clear or Encrypted (Triple-DES)
              description="string"                        Description of what the provider does
        -->
          <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SiteSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="false" passwordformat="Encrypted" applicationName="DotNetNuke" description="Stores and retrieves membership data from the local Microsoft SQL Server database" />
        </providers>
      </membership>
    </system.web>
  </location>

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

 
New Post
12/16/2009 3:20 PM
 

the location tag wasn't working for me when I tried it yesterday, but now it is.

Thank you very much for helping me out m!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...stopping child applications from inheriting web.configstopping child applications from inheriting web.config


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