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 ExtensionsModulesModulesnew module blows DNN 6.0.xnew module blows DNN 6.0.x
Previous
 
Next
New Post
10/25/2011 4:58 AM
 
Hi,
I'm trying to create a new module in DNN6 using Christoc's templates. So, I have VS2008, MSBuild,  the template and DNN 6.0.2 CE Install Package installed as directed in the wiki. On the portal I've installed a skin which is not using the new DDRMenu. The problem arises when I buld the module. Somehow it blows the DDRMenu (see error below) even if I'm not using it in the skin. After that the portal is unusable. I've tried to downgrade to 6.0.1 with the same result. Then, tried to upgrade the project to Framework 4 (even if in the wiki it says v2). I doubt that has something with the machine as I'm sucesfully developing modules for DNN5 on it (Windows 7 x64 + IIS 7.5 + SQL Server 2008R2).

The error I'm getting:
An error has occurred.DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Web.DDRMenu.DDRMenuControl.OnPreRender(EventArgs e) at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
 
New Post
10/25/2011 7:40 PM
 
Do you have DDR referenced in the module?

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
10/26/2011 4:04 AM
 
I'll try that, but first I have to reinstall the development environmet because the portal throws the error even when I delete the dll from the bin folder and the entire module from the DesktopModules folder. I even believe that something gets messed up in the IIS configuration as I've tried to restore the database to the point before compiling the module and the portal still throws the error.
 
New Post
10/26/2011 7:01 AM
 
OK. I've reinstalled the environment from scratch and referrenced DDR. Now the portal does not crash. But, now i'm getting 
 Error: Katalog is currently unavailable.DotNetNuke.Services.Exceptions.ModuleLoadException: The type initializer for 'kr.Modules.Katalog.DataProvider' threw an exception. ---> System.TypeInitializationException: The type initializer for 'kr.Modules.Katalog.DataProvider' threw an exception. ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) at DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) at kr.Modules.Katalog.DataProvider.CreateProvider() in C:\Projekti.DNN\dnndev6\DesktopModules\Katalog\Data\DataProvider.vb:line 41 at kr.Modules.Katalog.DataProvider..cctor() in C:\Projekti.DNN\dnndev6\DesktopModules\Katalog\Data\DataProvider.vb:line 36 --- End of inner exception stack trace --- at kr.Modules.Katalog.DataProvider.Instance() at kr.Modules.Katalog.KatalogController.KatalogGrupeGet(Int32 ParentId) in C:\Projekti.DNN\dnndev6\DesktopModules\Katalog\Data\KatalogController.vb:line 15 at kr.Modules.Katalog.GrupeView.FillTree() in C:\Projekti.DNN\dnndev6\DesktopModules\Katalog\GrupeView.ascx.vb:line 35 at kr.Modules.Katalog.GrupeView.Page_Load(Object sender, EventArgs e) in C:\Projekti.DNN\dnndev6\DesktopModules\Katalog\GrupeView.ascx.vb:line 25 --- End of inner exception stack trace ---

I've searched through the forum and most of the posts claim that
objProvider = CType(Framework.Reflection.CreateObject("data", "kr.Modules.Katalog.Data", "kr.Modules.Katalog"), DataProvider)
should solve the problem. Well, it does not.

The Namespace and Assembly name are set to: kr.Modules.Katalog.

What am I doing wrong?

 
New Post
10/27/2011 10:08 AM
 
Hi Chris,
Please disregard my previous posts. Well, it's true that I've blown DNN with your templates but finally I've found the reason. As I'm developing (maintanance only) some modules for DNN5 and programming the new ones in DNN6  I have two different installations accordingly http://dnndev and http://dnndev6. For the template to work (compile) correctly I had to modify the source files and references in the source files to dnndev6 and after creating the solution (IMPORTANT) I had to change the property Copy Local to False for each DotNetNuke reference in VS. This is the reason I've blown DNN6 - I had the reference to DotNetNuke.Webcontrols from DNN5 (as it was in dnndev/bin folder) and when i compiled the module it copied it over the DNN6 version.

Maybe you could put a note about that on your wiki.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesnew module blows DNN 6.0.xnew module blows DNN 6.0.x


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