Developer forum

Forum » Development » not load type 'Dynamicweb.Extensibility.SelectionBox' from assembly 'Dynamicweb, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null'.

not load type 'Dynamicweb.Extensibility.SelectionBox' from assembly 'Dynamicweb, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null'.

Martin Møller Christensen
Reply

Hi,

I am experiencing this issue whenever I right click on a page and select "Properties".

We are running DW 9.4.34 but somehow its looking for 9.0.0.0?

Server Error in '/' Application.


Could not load type 'Dynamicweb.Extensibility.SelectionBox' from assembly 'Dynamicweb, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.TypeLoadException: Could not load type 'Dynamicweb.Extensibility.SelectionBox' from assembly 'Dynamicweb, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null'.

Source Error: 

 

Line 521:        </script>
Line 522:
Line 523:        <% End If%>
Line 524:
Line 525:        <dw:Dialog ID="NavigationDialog" runat="server" Size="Medium" Title="Navigation" ShowOkButton="true">


Source File: D:\Solutions\DW\S_DW_SGM\SGMLight.Website\Admin\Content\Page\PageEdit.aspx    Line: 523 

Stack Trace: 

 

[TypeLoadException: Could not load type 'Dynamicweb.Extensibility.SelectionBox' from assembly 'Dynamicweb, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null'.]
   Dynamicweb.Controls.SelectionBox.Render(HtmlTextWriter writer) +0
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   Dynamicweb.UI.Controls.GroupBoxContentElement.Render(TextWriter writer, ElementScope scope) +74
   Dynamicweb.UI.Elements.Element.RenderElements(TextWriter writer, ElementScope scope) +114
   Dynamicweb.UI.Elements.Layouts.GroupBox.Render(TextWriter writer, ElementScope scope) +57
   Dynamicweb.UI.Controls.GroupBox.Render(HtmlTextWriter writer) +599
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +250
   Dynamicweb.Controls.Dialog.Render(HtmlTextWriter writer) +1055
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   ASP.admin_content_page_pageedit_aspx.__RenderMainForm(HtmlTextWriter __w, Control parameterContainer) in D:\Solutions\DW\S_DW_SGM\SGMLight.Website\Admin\Content\Page\PageEdit.aspx:523
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +11830129
   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +47
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +50
   ASP.admin_content_page_pageedit_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in D:\Solutions\DW\S_DW_SGM\SGMLight.Website\Admin\Content\Page\PageEdit.aspx:104
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753

 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0

 

Best Regards,

Martin


Replies

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply

Hi Martin,

The reason it says version 9.0.0.0 is because it's using the assembly version, not the informational version. The Dynamicweb assemblies are versioned with an assembly version separate from the actual version of Dynamicweb. For Dynamicweb.dll and Dynamicweb.Admin.dll, they are versioned according the the major software version, in this case "9" but they have informational versions (product version if you use File Explorer to inspect it) of the actual version of the assembly, e.g. 9.4.34. You can read about versioning here: https://docs.microsoft.com/en-us/dotnet/framework/app-domains/assembly-versioning#version-information. Be aware that this may change with future major versions of Dynamicweb.

Now, for your actual issue. I think you have a mismatch between you Admin folder and your bin folder. I would recommend downloading the latest version of 9.4, which is 9.4.20, from the Doc-site and make sure you use the Admin and bin folder contained in that package.

- Jeppe

 
Martin Møller Christensen
Reply

Hi Jeppe,

Thank you for the reply!

I will try what you suggested :-)

 

You must be logged in to post in the forum