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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesExtending DNN HTML Module problemExtending DNN HTML Module problem
Previous
 
Next
New Post
7/6/2011 8:45 AM
 
Hi Everyone,

I have re-created the DNN Html module that comes with DNN to include new features such as displaying multiple HTML Text on one instance of the module depending on who is logged in. Instead of creating a module from scratch, I took the code from the HTML module and added in or modified the code to work with these new features.

This worked fine, however sometimes the module does not load properly and the following error is displayed instead:



The new module is called 'BSLHtml' but its trying to look for a WorkflowStateInfo object in the HTML module and cast it to the BSLHtml module. I want these two to be independent of each other and have both modules installed. The code for the method the error appears on is the following:

Public Function GetFirstWorkflowStateID(ByVal WorkflowID As Integer) As Integer
            Dim intStateID As Integer = -1
            Dim arrWorkflowStates As ArrayList = GetWorkflowStates(WorkflowID)
            If arrWorkflowStates.Count > 0 Then
                intStateID = CType(arrWorkflowStates(0), BSLHtml.WorkflowStateInfo).StateID
            End If
            Return intStateID
        End Function

as you can see, I tried to call the 'WorkflowStateInfo' class using 'BSLHtml.WorkflowStateInfo' but that doesn't help. A workaround to fix this problem is to go into the extension settings for BSLHtml and just click on 'Update Extension'. The error then disappears for a while before re-appearing. 

Anyone know what the problem is?? Thanks
 
New Post
7/9/2011 5:47 AM
 
please check your dnn manifest file and make se you updated the business controller so it isnt pointing to the old html one (you can also do this under host->extensions AFAIR)

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
7/11/2011 7:21 AM
 
Hi,

The manifest and business controller has already been modified to point to BSLHtml instead of HTML. The namespace has also been changed to BSLHtml. I also can't find any references to the Html module in the code.

Should I rename the methods / class names as that's the only thing which is the same for both at the moment.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesExtending DNN HTML Module problemExtending DNN HTML Module problem


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