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...Using Modules a...Using Modules a...Assemblies versionAssemblies version
Previous
 
Next
New Post
8/28/2014 6:43 PM
 
I created new module with option "Create module". In there I put some third party controls, for example Ext.Net. Because it uses 4 dll-s i opened bin2 folder, register with web.config and put inside dll-a. On new page run, all dll-s are recognized except Newtonsoft.Json. Obviously that Ext.Net uses same dll but in different version than dll. In bin folder there is version 4.5.0.0 and mine is 6.0.0.0. When I replace original in bin folder, dnn dont work, when I use vice versa then Ext.Net dont work. I guess that both files must exist. So I put mine in bin2 folder. But, somehow it is not recognized. Every other dll ih normaly recognized but that Newtonsoft.Json is making problem. Error is:

Error: Test2 is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Ext.Net.ControlState.SetDirectEventUpdate(String key, Object value) at ASP.desktopmodules_sasa_test2_view_ascx.__BuildControlButton4() at ASP.desktopmodules_sasa_test2_view_ascx.__BuildControlTree(desktopmodules_sasa_test2_view_ascx __ctrl) at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleControlFactory.LoadModuleControl(TemplateControl containerControl, ModuleInfo moduleConfiguration) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---

 
New Post
8/29/2014 12:41 AM
 

   We met the same thing when develop our "Classified Pro 8.1 - (store, auction, classified ads, subscribe, catalog, for DNN 7.3+)" module. In this module we use a third party dll (Stripe.net.dll) to support Stripe payment gateway. However, Stripe.net.dll is based  Newtonsoft.Json.dll (v6.0.0.0), which is newer than DNN built-in version (v4.5.0.0).  We solve this issue as follows:
    1. Open 
Stripe.net project, change its reference to  Newtonsoft.Json.dll (v4.5.0.0), and rebuild it.
    2. Now we can get a version of  
Stripe.net.dll which is compatible with Newtonsoft.Json.dll (v4.5.0.0).  And can be used in DNN 7.3+ sites. 

    Thanks very much for the Stripe.net project creators (it is open source, so we can get source code).  If you also have source code for your third party controls, you can try rebuild it. If not, maybe you can try contact module vendor, to see if he can build a custom version for you.

   

 


Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
8/29/2014 5:03 PM
 
Thanks for your reply but I found the solution. I put both files in different folders and write in 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>

 






 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Assemblies versionAssemblies version


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