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 ...web.config XMLschemaweb.config XMLschema
Previous
 
Next
New Post
5/28/2008 11:06 AM
 

I have been having to make changes to the core library, DotNetNuke.Framework.AJAX.IsInstalled(), to compensate for an XPath limitation in the code. We have to wrap our system.web section in a <location inheritInChildApplications="false"> to prevent inheritence. This tag is valid according to the schema and, if used, results in a null XPathNavigator object that returns false. I have made the following change to allow an additional check for the nesting tag before return false.

 

Public Shared Function IsInstalled() As Boolean

            'First check that the script module is installed
            Dim configDoc As XmlDocument = Config.Load()
            Dim moduleNavigator As XPathNavigator = configDoc.CreateNavigator.SelectSingleNode("/configuration/system.web/httpModules/add[@name='ScriptModule']")

            ' Original code block that will fail if the XPath has been changed due to system.web wrapping.
            'If moduleNavigator Is Nothing Then
            '    Return False
            'Else
            '    Return Not ScriptManagerType() Is Nothing And IsHostEnabled()
            'End If

            If moduleNavigator Is Nothing Then
                ' Check the new XPath for a wrapped system.web
                moduleNavigator = configDoc.CreateNavigator.SelectSingleNode("/configuration/location/system.web/httpModules/add[@name='ScriptModule']")

                If moduleNavigator Is Nothing Then
                    Return False
                Else
                    Return Not ScriptManagerType() Is Nothing And IsHostEnabled()
                End If
            Else
                Return Not ScriptManagerType() Is Nothing And IsHostEnabled()
            End If

        End Function

 

Can someone from the core team please add this to Gemini. This should be an easy fix for a future release to not limit the XPath string to only the default nesting. I have seen other with this problem.

George

 
New Post
5/28/2008 6:09 PM
 

Thanks George, I've logged that @ http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=7734&PROJID=2 . FYI, the usual process is that community members log issues/enhancement suggestions in the "DNN Core Framework [ PUBLIC ] ** (DNNP)" log @ http://support.dotnetnuke.com/Main.aspx . We check through this periodically and move issues to their relevant location (this helps us keep the "noise" down)

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...web.config XMLschemaweb.config XMLschema


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