May 22, 2012 at 11:46 AM
Edited May 22, 2012 at 11:47 AM
|
I have tried this several times and get the same issue, it seems to be that ( even if i say no to auto update ) my system is downloading the new version of hibernate and then getting a problem.
=== Pre-bind state information ===
LOG: User = Jason-TOSH\Jason
LOG: DisplayName = NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4
(Fully-specified)
LOG: Appbase = file:///C:/Users/Jason/Documents/Visual Studio 2010/WebSites/test3/
LOG: Initial PrivatePath = C:\Users\Jason\Documents\Visual Studio 2010\WebSites\test3\bin
Calling assembly : N2, Version=2.2.1.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Jason\Documents\Visual Studio 2010\WebSites\test3\web.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: NHibernate, Version=3.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4
LOG: Attempting download of new URL file:///C:/Users/Jason/AppData/Local/Temp/Temporary ASP.NET Files/test3/4149816b/8eec3496/NHibernate.DLL.
LOG: Attempting download of new URL file:///C:/Users/Jason/AppData/Local/Temp/Temporary ASP.NET Files/test3/4149816b/8eec3496/NHibernate/NHibernate.DLL.
LOG: Attempting download of new URL file:///C:/Users/Jason/Documents/Visual Studio 2010/WebSites/test3/bin/NHibernate.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
I note that i have this in webconfig
<bindingRedirect oldVersion="0.0.0.0-3.2.0.3001" newVersion="3.2.0.3001"/>
It looks like my system auto updates, then hits a redirect and has a problem ?
Please help !
|
|
|
|
Think I have fixed it, I suspect the problem is an old version in the nuget package.
I turned off local, zipd em up, installed via pm and so got version 4 and then installed the lightweight library, then the full one, then ran the sql lite install and have something that looks a bit like the manual now.
someone check the nuget, i bet it installs old nhibernate and then can not install new one as n2 in use.... not easy for newbies like meee
|
|
|
|
still problems here... seems to be that installing local n2 cms - N2 CMS is a lightweight CMS library then installing Nhibernate from nuget gets past version issues but then I get problems with the sql database setup, running from latest seems to be ok but
unable to set root to homepage
someone needs to look at the files and documentation in this area
|
|
|
|
ok.... i start it as a project, not a website ( would be nice to know that in the docs ! )
i select the local n2
i then use nuget as source for nhibernate
... seems to work, i have put some using in the hompage.cs to ensure it recognises it, unsure if this required, but put it in and seems to be working
using N2;
using N2.Web;
using N2.Details;
namespace ExistingApplication.Models
{
[N2.PageDefinition(TemplateUrl = "~/UI/Home.aspx")]
public class HomePage : N2.ContentItem
{
[EditableFreeTextArea] public virtual string Text { get; set; }
}
}
so... conclusion, n2 needs clearer documentation for newbies or they will 'give up' and move to another cms?
|
|
Coordinator
May 22, 2012 at 8:46 PM
|
Did you manage to get something working? Please help me understand so i can try to improve documentation for the next guy.
- You were already using an older NH version which causes some conflicts when installing through nuget?
- After sime fiddling the next problem is saving the root node to the database (exception?)
- You were using website project model which didn't work out of the box?
- You mention 76 in the manual. Did you mean page 63, integrating with existing webforms?
- Would you expect some other kind of support creating the first content model?
- Could you mention a couple of specific places documentation could be clearer and how?
|
|
|
|
I keep getting errors now, it says missing source files etc., yes, i mean page 3 integrating with existing webforms ( page 76 is shown in the pdf page counter but 63 is correct ).
My problem is that it is just not working, i keep getting errors etc., instead of a smooth install.
I wanted to convert some simple html websites into having some editable areas.
NH was causing lots of issues, I think the version in the nuget is older than if i download 'latest version' of nh at the right moment it works ( lost my crib notes now ).
The instructions do not say you should create a project, instead of website, as well, that was confusing and am sure caused some of my issues.
I am going to give up for now and try umbraco
|
|
|
|
actually..orchard looks cool too...
|
|
Coordinator
May 28, 2012 at 7:41 PM
|
Okay, thanks for the feedback. I'll update the manual to reference using the official nuget feed rather than the local downloads.
|
|
|
|
and its a project, not a website ?
|
|