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 ...Modules: add new module returns undefinedModules: add new module returns undefined
Previous
 
Next
New Post
8/17/2015 3:45 PM
 

This problem is driving me crazy. Im developing a custom module for a customer of us. 

I create a service layer for the controllers. One reference is pointing to system.web.http but this needs Newtonsoft.Json, Version=6.0.0.0 and DNN uses 4.5.0.0

Assembly 'System.Web.Http, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' uses 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'    d:\Documenten\documenten_werk\Klanten\AZBIL\DNN\DNN Website\Azbil\packages\Microsoft.AspNet.WebApi.Core.5.2.3\lib\net45\System.Web.Http.dll    AzbilServices

so i searched on the www and found this solution (web.config):

<dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
        <codeBase version="4.5.0.0" href="bin\Newtonsoft.Json.dll" />
        <codeBase version="6.0.0.0" href="bin2\Newtonsoft.Json.dll" />
 </dependentAssembly>

 

i also tried

<dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="4.5.0.0" />
      </dependentAssembly>

 

but now DNN is acting strange. The 'add new module' function goes to DesktopModules/internalservices/API/controlbar/GetPortalDesktopModules?category=Common and if i check it, it gives the expected set back. But in Fidler i see /undefined coming back and all my modules lost there names and get the tag undefined.

I found the solution to change the controlbar to the ribbonbar but i can't add a new module for testing. I keeps adding the banner module. And this is a known issue:  https://dnntracker.atlassian.net/browse/DNN-5141

 

Who can help me. I don't know how to go further.

 
New Post
8/21/2015 8:56 AM
 
if you require a certain version of a dll, and items target different versions you need the binding redirect to point to the highest one i.e bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0."

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
8/21/2015 10:53 AM
 

i changed my web.config to this

   <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" />
        <!--<codeBase version="4.5.0.0" href="bin\Newtonsoft.Json.dll" />
        <codeBase version="6.0.0.0" href="bin2\Newtonsoft.Json.dll" />-->
        <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
      </dependentAssembly>

 

 removed the old dll from the bin folder and added the new one. I still get undefined modules when i try to add a new one.

 
New Post
8/21/2015 10:56 AM
 

In fidler i see

http://webtest.orbid.be/azbil/DesktopModules/internalservices/API/controlbar/GetPortalDesktopModules?category=All&loadingStartIndex=0&loadingPageSize=15&searchTerm=

and then i get a 404 http://webtest.orbid.be/azbil/undefined HTTP/1.1

 
New Post
8/21/2015 11:07 AM
 

In fidler i see

http://webtest.orbid.be/azbil/DesktopModules/internalservices/API/controlbar/GetPortalDesktopModules?category=All&loadingStartIndex=0&loadingPageSize=15&searchTerm=

and then i get a 404 http://webtest.orbid.be/azbil/undefined HTTP/1.1

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Modules: add new module returns undefinedModules: add new module returns undefined


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