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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Having issues with <location> tag since upgrade to 6.2.3Having issues with <location> tag since upgrade to 6.2.3
Previous
 
Next
New Post
10/16/2012 4:29 AM
 
Hi,

Having a few issues with a current setup of DNN and was hoping for some ideas to resolve it could be thrown my way.

Have done an update from DNN 5.6.3 to 6.2.3 (141) and it is running on IIS7.5 using .Net 3.5. The upgrade went well and no errors were shown on the front-end.

However, I am now getting some issues with the   <location path="." inheritInChildApplications="false"></location> tag I have implemented alongside my custom <rewrite>.

Under the root of the site we have a sub-application, under a seperate app pool, called /news/ which hosts something else but relevant to the parent site (its a custom blog). To prevent this from erroring we had to use the   <location path="." inheritInChildApplications="false"></location> tags in the root web.config to stop it inheriting unneccessary settings etc.

In the root web.config we also have some custom <rewrite> to give the site a more friendly URL structure by removing the .aspx. See below for snippet:

      <rewrite>
        <rules>
          <rule name="RemoveASPX" enabled="true" stopProcessing="true">
            <match url="(.*)\.aspx" />
            <action type="Redirect" url="{R:1}" />
            <conditions logicalGrouping="MatchAll">
              <add input="{URL}" pattern="(.*)/default.aspx" negate="true" />
              <add input="{URL}" pattern="(.*)/admin/*" negate="true" />
              <add input="{URL}" pattern="(.*)/desktopmodules/*" negate="true" />
              <add input="{URL}" pattern="(.*)/providers/*" negate="true" />
              <add input="{URL}" pattern="(.*)/ImageChallenge.captcha.aspx" negate="true" />
            </conditions>
          </rule>
          <rule name="AddASPX" enabled="true">
            <match url=".*" negate="false" />
            <conditions>
              <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
              <add input="{URL}" pattern="(.*)\.(.*)" negate="true" />
            </conditions>
            <action type="Rewrite" url="{R:0}.aspx" />
          </rule>
        </rules>
      </rewrite>

We are also using the Active Forums 4.3.8 module. The issue comes from enabling the Active Forums URL Handler. As soon as we do this all the posts/threads become unaccessible with 404s as it treats them as folders (http://www.mywebsite.com/forums/category/post-thread-title).

However, if I remove <location path="." inheritInChildApplications="false"></location> tags from the web.config the forums work fine but then the /news/ site fails with a .Net error when it tries to utilise settings etc. from the parent web.config (<codeSubDirectories> etc.).

Any suggestions would be greatly appreciated to try and get around this.

If any further info is needed let me know.

Kind regards,

Liam
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Having issues with <location> tag since upgrade to 6.2.3Having issues with <location> tag since upgrade to 6.2.3


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