n2cms
Content
n2cms Home
Getting Started using N2CMS
Troubleshooting
Troubleshooting
search
attachments
weblink
advanced
image-effects
image-attributes
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
Colour picker
More colours
Formatting
Strikethrough
Subscript
Superscript
Monospace
Clear formatting
Bullet list
Numbered list
Task list
Outdent
Indent
Align left
Align center
Align right
Page layout
Link
Table
Insert
Insert content
Files and images
Link
Symbol
Emoticon
Markup
Horizontal rule
Insert macro
User mention
Jira Issue/Filter
Info
Status
Gallery
Table of Contents
Jira timeline
Lucidchart Diagrams
Trello Board
Other macros
Page layout
No layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Find/Replace
Keyboard shortcuts help
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account.
<h1>Duplicate Imports</h1><p><span>If you see "duplicate import" issues, you may see error messages like the following: </span></p><p style="margin-left: 30.0px;"><em>FreeForm refers to both N2.Templates.Mvc.Models.Parts.FreeForm, N2.Templates.Mvc, Version=2.2.1.0, Culture=neutral, PublicKeyToken=null and Dinamico.Models.FreeForm, MWMvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (try using auto-import="false")</em></p><p><strong>Solution: </strong>Check your ~/bin/ directory and ensure that you don't have both N2.Templates.Mvc and Dinamico templates in the same project. You can't use both traditional MVC and Dinamico (Razor MVC) templates in the same project.</p><h1>Assembly binding issues</h1><p>Errors such as <em>[FileLoadException: Could not load file or assembly 'System.Web.Mvc, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]</em></p><p>This is typically caused by errors in your web.config file. Ensure that the XML tags are matched properly. Pay particular attention to the <assemblyBinding> section. </p><p>For example the following configuration is NOT correct because there are two <dependentAssembly> tags in a row.</p><h2>Example. Incorrect assembly binding</h2><table class="wysiwyg-macro" data-macro-name="code" data-macro-parameters="collapse=true|language=xml|title=Incorrect web.config XML" data-macro-schema-version="1" style="background-image: url(https://n2cmsdocs.atlassian.net/wiki/plugins/servlet/confluence/placeholder/macro-heading?definition=e2NvZGU6bGFuZ3VhZ2U9eG1sfHRpdGxlPUluY29ycmVjdCB3ZWIuY29uZmlnIFhNTHxjb2xsYXBzZT10cnVlfQ&locale=en_GB&version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre><runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Lucene.Net" publicKeyToken="85089178b9ac3181" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.9.4.1" newVersion="2.9.4.1" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /> </dependentAssembly> <dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.WebPages.Razor" publicKeyToken="31bf3856ad364e35" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="0.0.0.0-3.0.0.0" newVersion="3.0.0.0" /> </dependentAssembly> <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /> <bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.1.0.0" /> </dependentAssembly> </assemblyBinding> </runtime></pre></td></tr></table><p><br /><br /></p><p> </p><p> </p>
Save
Close
Edit
Preview
View changes
Revert to last published version
{"serverDuration": 509, "requestCorrelationId": "3a2549c49235488db6a7140aff94ef50"}