Date: Fri, 29 Mar 2024 14:28:21 +0000 (UTC) Message-ID: <1731430274.5.1711722501278@20cb4c0f0c24> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4_312264992.1711722501277" ------=_Part_4_312264992.1711722501277 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
If you see "duplicate import" issues, you may see error messages l= ike the following:
FreeForm refers to both N2.Templates.= Mvc.Models.Parts.FreeForm, N2.Templates.Mvc, Version=3D2.2.1.0, Culture=3Dn= eutral, PublicKeyToken=3Dnull and Dinamico.Models.FreeForm, MWMvc, Version= =3D1.0.0.0, Culture=3Dneutral, PublicKeyToken=3Dnull (try using auto-import= =3D"false")
Solution: Check your ~/bin/ directory and ensure t= hat 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.
Errors such as [FileLoadException: Could not load file or assem= bly 'System.Web.Mvc, Version=3D5.1.0.0, Culture=3Dneutral, PublicKeyToken= =3D31bf3856ad364e35' or one of its dependencies. The located assembly's man= ifest definition does not match the assembly reference. (Exception from HRE= SULT: 0x80131040)]
This is typically caused by errors in your web.config file. Ensure that = the XML tags are matched properly. Pay particular attention to the <asse= mblyBinding> section.
For example the following configuration is NOT correct because there are= two <dependentAssembly> tags in a row.
<runtime> <assemblyBinding xmlns=3D"urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> =09<assemblyIdentity name=3D"Lucene.Net" publicKeyToken=3D"85089178b9ac3= 181" culture=3D"neutral" /> =09<bindingRedirect oldVersion=3D"0.0.0.0-2.9.4.1" newVersion=3D"2.9.4.1= " /> </dependentAssembly> <dependentAssembly> =09<assemblyIdentity name=3D"Newtonsoft.Json" publicKeyToken=3D"30ad4fe6= b2a6aeed" culture=3D"neutral" /> =09<bindingRedirect oldVersion=3D"0.0.0.0-6.0.0.0" newVersion=3D"6.0.0.0= " /> </dependentAssembly> <dependentAssembly> <dependentAssembly> =09<assemblyIdentity name=3D"System.Web.Razor" publicKeyToken=3D"31bf385= 6ad364e35" culture=3D"neutral" /> =09<bindingRedirect oldVersion=3D"0.0.0.0-2.0.0.0" newVersion=3D"2.0.0.0= " /> </dependentAssembly> <dependentAssembly> =09<assemblyIdentity name=3D"System.Web.WebPages.Razor" publicKeyToken= =3D"31bf3856ad364e35" culture=3D"neutral" /> =09<bindingRedirect oldVersion=3D"0.0.0.0-2.0.0.0" newVersion=3D"2.0.0.0= " /> </dependentAssembly> <dependentAssembly> =09<assemblyIdentity name=3D"System.Web.WebPages" publicKeyToken=3D"31bf= 3856ad364e35" /> =09<bindingRedirect oldVersion=3D"0.0.0.0-3.0.0.0" newVersion=3D"3.0.0.0= " /> </dependentAssembly> =09<assemblyIdentity name=3D"System.Web.Mvc" publicKeyToken=3D"31bf3856a= d364e35" /> =09<bindingRedirect oldVersion=3D"0.0.0.0-5.1.0.0" newVersion=3D"5.1.0.0= " /> </dependentAssembly> </assemblyBinding> </runtime>