Hi, I had another crack at this today and got things going ... here's the story for anyone else who wants to do down this route (I did have the deuplicate reference, but also had to make a few changes here and there):
We have created a project from your ASP.NET MVC example and have things working reasonably well. I wanted to make some changes to the EDIT pages in the CMS and noticed that the source code was not included, so swapped the EDIT folder out for the one
in the full source project.
I had to do the following:
Copied EDIT folder from full source (wwwroot) into project.
Removed reference to N2.Edit.
Add references for Castle and NHibernate (compilation errors without these).
'N2.Edit.Web.EditSiteMapProvider.GetFilters()': no suitable method found to override C:\...\Edit\Web\EditSiteMapProvider.cs – having check this file I found that it is excluded from the source EDIT project (along with EditSiteMapNode).
Excluded Properties folder from EDIT to avoid Duplicate Assembly* attributes being defined.
'N2.Edit.Install.InstallationManager' does not contain a definition for 'InsertExportFile' and no extension method 'InsertExportFile' accepting a first argument of type 'N2.Edit.Install.InstallationManager' could be found (are you missing a using directive
or an assembly reference?) C:\...\Edit\Install\Default.aspx.cs – as above, I found this class (InstallationManager') to be excluded from the source EDIT project, so excluded it from mine.
The project would now build.
When run the project would open in the browser but we got errors for edit/navigation/Tree.aspx - Could not load file or assembly 'N2.Edit' or one of its dependencies (due to <%@ Register TagPrefix="edit" Namespace="N2.Edit.Web.UI.Controls"
Assembly="N2.Edit" %>) – to resolve this issue we ran a search and replace to change the Assembly=”N2.Edit” to the name of the Assembly for my project.
All seems to be working now.
I'll be in touch with any further issues marrying the CMS with ASP.NET MVC ...