Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# juanwoang 6/25/2009 10:46 AM
Hello,
Today I get source code from Trunk (rv 815) and using VS 2008 and build with no error. But in install process, at create site step I meet error. And the message is:

An error occured while creating the site:
Castle.Services.Transaction.TransactionException: Invalid transaction state to perform the requested action at Castle.Services.Transaction.AbstractTransaction.AssertState(TransactionStatus state) at Castle.Services.Transaction.AbstractTransaction.Rollback() at Castle.Services.Transaction.StandardTransaction.Rollback() at Castle.Facilities.AutomaticTransactionManagement.TransactionInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at ISiteServiceProxy7f1fd149d54a4e6e86d44d00b5d546aa.CreateSite(Site site, String siteDataRoot, IList`1 templatesToCopy, String systemTemplatesDirectory) at Cuyahoga.Web.Install.Install.CreateSite() at Cuyahoga.Web.Install.Install.btnCreateSite_Click(Object sender, EventArgs e)

I does not understand and post it here. If you know much of CUY' core, please review and do something to improve it.

Thanks
# martijnb 6/25/2009 2:46 PM
I've seen that one too, and it probably hides something that happened inside the transaction. What happens if you step through it with the debugger?
# Constructor 6/25/2009 9:45 PM (edited 6/25/2009 9:54 PM)
I am working with the trunk version. Does this error happen when creating a default site? If it is then I had the same error a while back. I think it was that in the file 'install.aspx.cs' the various nodes and sections etc need a siteid, so I added it like this.
loginSection.Node = rootNode;
loginSection.Site = site;

This enabled the default site to install correctly. There were a few areas in the install script that needed this.

There were quite a few things that I had to fix to get it working but it seems great now.

See: http://www.cuyahoga-project.org/home/forum.aspx?g=posts&t=1288

If it is helpful I could clean up provide the version I have here, it may save a lot of time ?

I will attempt to merge the new changes into the working version that I have. I hope all goes well :)
# juanwoang 6/26/2009 6:35 AM
Yes, you are correct. I can use any other functions without any error, it only happen with create default site. Your test topic is good