Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# ErgoSum 8/2/2010 5:30 PM
Hi,

Given that the recently released CUY v2.0 ALPHA is "medium trust" capable, how difficult would it be to retrofit the particular changes that make "medium trust" support possible to CUY v1.6?

[I already understand that due to Castle libs this would be a .NET 3.5 only deal]

Would this estimate still apply to someone familiar with CUY but relatively new to the codebase?

What particular areas to look at to make this possible?. I'm willing to do this if I can get enough decent pointers on where to start making changes.

# Constructor 8/2/2010 6:02 PM
Would you be willing to test on this version?

Findings to be posted on this thread?
# ErgoSum 8/2/2010 6:24 PM
ConstructorWould you be willing to test on this version?

Findings to be posted on this thread?

In a word, yes. I have 2.0 Alpha downloaded already but haven't been able to do much with it due to current workload. I will be testing it out though. Been following the threads you mentioned btw.

I need to get stuff soon-ish out to ease my workload and that forces a focus on v1 (and perhaps getting v1.6 medium trust capable) in the short term. I hope to contribute to 2.0 in some way in due course.

Incidentally you mentioned a v1.6/v2.0 hybrid that is presumably medium trust capable. Is this available?. Production ready?. That would solve my short term CUY issues...


# webolize 8/2/2010 6:29 PM
Interesting question, and I don't have an answer to it, because there are a lot of 2.0 changes. I think there was a thread where Martijn mentioned the nHibernate or castle library changes and changes that he made for that to work. Also, I think he had to upgrade all dependent libraries.

Also something to consider is that Constructors fork should run under MT, and it seems to be nearly there. I'm actually going to start to move my apps on devl over to it (because of the comprehensive multi-site support).

Somehow I would think there would be less changes to get Constructors fork to beta or release vs getting 1.6 to work under medium-trust.
# ErgoSum 8/2/2010 7:05 PM
webolizeInteresting question, and I don't have an answer to it, because there are a lot of 2.0 changes. I think there was a thread where Martijn mentioned the nHibernate or castle library changes and changes that he made for that to work. Also, I think he had to upgrade all dependent libraries.

Thanks, I'll search for that thread. If it's mostly upgrading dependent libraries...

(h)
webolizeAlso something to consider is that Constructors fork should run under MT, and it seems to be nearly there. I'm actually going to start to move my apps on devl over to it (because of the comprehensive multi-site support).

Somehow I would think there would be less changes to get Constructors fork to beta or release vs getting 1.6 to work under medium-trust.

Is Constructor's fork tha same as CUY 2.0 ALPHA?. I was convinced that it wasn't initially but, after having nosed around the forum a bit just now, I'm not sure any more.

If Constructor's fork is easier and/or quicker to get to medium trust capable and production ready than v1.6 then, that's where I need to be.

How difficult is it to upgrade v1 sites to CUY 2 (esp. Constructors fork)?. An answer that assumes just the standard modules supplied with v1 is sufficient. Custom modules I can deal with my self.
# ErgoSum 8/2/2010 7:21 PM
webolizeI think there was a thread where Martijn mentioned the nHibernate or castle library changes and changes that he made for that to work. Also, I think he had to upgrade all dependent libraries.

Martijn's blog post below seems to suggest that getting v1.6 to work may be as simple as making the changes he mentioned in the post and updating the dependent libraries.

http://blogs.taiga.nl/martijn/2009/06/24/new-adventures-under-medium-trust/

The resulting application (CUY v1.7?) will require .NET 3.5 rather than v1.6's usual .NET 2.x because the Castle libraries require that.

Is there more to this?


NB: Still committed to working on CUY 2.x in due course btw.
# Constructor 8/2/2010 8:31 PM
The latest build does run in medium trust although I will not say it is tested in any way. I have installed, logged in and that's about all. There are bugs.
# Constructor 8/2/2010 8:35 PM
ErgoSumHow difficult is it to upgrade v1 sites to CUY 2 (esp. Constructors fork)?. An answer that assumes just the standard modules supplied with v1 is sufficient. Custom modules I can deal with my self.

This is something that Martijn will be looking at. He has taken that responsibility (generating the upgrade scripts etc). There is no upgrade as of this post but it is in the pipeline.
# webolize 8/3/2010 4:25 AM
ErgoSumThe resulting application (CUY v1.7?) will require .NET 3.5 rather than v1.6's usual .NET 2.x because the Castle libraries require that.

Is there more to this?
.

Regarding the 3.5 requirement: for the test that I'm doing using Constructors fork (which is basically the 2.0 alpha with the MVC manager taken out and the old /admin added and upgraded), it works on my host using ASP.NET 2.0. It even only works in classic mode and NOT integrated pipeline. It would be nice to hear from somebody else who could NOT previously run cuyahoga 1.6 on their host if the new constructor's fork works on MT.

Also, I've heard many times that .net 3.5 is basically the .net 2.0 with wwf and wcf libraries.
# ErgoSum 8/4/2010 7:05 AM
ConstructorThe latest build does run in medium trust although I will not say it is tested in any way. I have installed, logged in and that's about all. There are bugs.

Is this your fork of CUY v2 ALPHA that you are referring to here?. CUY 2 is medium trust friendly at least according to Martjin's article.

Thanks for the clarification on CUY 2's status.

# ErgoSum 8/4/2010 7:22 AM
webolizeRegarding the 3.5 requirement: for the test that I'm doing using Constructors fork (which is basically the 2.0 alpha with the MVC manager taken out and the old /admin added and upgraded), it works on my host using ASP.NET 2.0. It even only works in classic mode and NOT integrated pipeline. It would be nice to hear from somebody else who could NOT previously run cuyahoga 1.6 on their host if the new constructor's fork works on MT.

Also, I've heard many times that .net 3.5 is basically the .net 2.0 with wwf and wcf libraries.

.NET v3.5 is the .NET 2.0 CLR + libraries with a few additional/updated libraries (so was .NET 3.0).

Since CUY 2 is said to require .NET 3.5, perhaps your host does have .NET 3.5 installed already. Try the following (I wrote it to test the ASP/CLR version - up to v3.5 sp1 - that your hoster has installed or configured for you):

http://pastebin.com/F5V6LCFg

[I couldn't attach a file and the code block would not accept it so I put it on pastebin]
# Constructor 8/4/2010 11:28 AM
ErgoSum
ConstructorThe latest build does run in medium trust although I will not say it is tested in any way. I have installed, logged in and that's about all. There are bugs.

Is this your fork of CUY v2 ALPHA that you are referring to here?. CUY 2 is medium trust friendly at least according to Martjin's article.

Thanks for the clarification on CUY 2's status.

Yes. The version I am working on has moved to become the basis of the next release.
# webolize 8/4/2010 11:34 AM (edited 8/4/2010 11:41 AM)
ErgoSum
webolizeRegarding the 3.5 requirement: for the test that I'm doing using Constructors fork (which is basically the 2.0 alpha with the MVC manager taken out and the old /admin added and upgraded), it works on my host using ASP.NET 2.0. It even only works in classic mode and NOT integrated pipeline. It would be nice to hear from somebody else who could NOT previously run cuyahoga 1.6 on their host if the new constructor's fork works on MT.

Also, I've heard many times that .net 3.5 is basically the .net 2.0 with wwf and wcf libraries.

.NET v3.5 is the .NET 2.0 CLR + libraries with a few additional/updated libraries (so was .NET 3.0).

Since CUY 2 is said to require .NET 3.5, perhaps your host does have .NET 3.5 installed already. Try the following (I wrote it to test the ASP/CLR version - up to v3.5 sp1 - that your hoster has installed or configured for you):

http://pastebin.com/F5V6LCFg

[I couldn't attach a file and the code block would not accept it so I put it on pastebin]

Yep, you're right. It does have asp.net 3.5
.NET Framework CLR version : 2.0
.NET Framework ASP.NET version: 3.5 SP1
# ErgoSum 8/4/2010 9:03 PM
Constructor
ErgoSum
ConstructorThe latest build does run in medium trust although I will not say it is tested in any way. I have installed, logged in and that's about all. There are bugs.

Is this your fork of CUY v2 ALPHA that you are referring to here?. CUY 2 is medium trust friendly at least according to Martjin's article.

Thanks for the clarification on CUY 2's status.

Yes. The version I am working on has moved to become the basis of the next release.

Just so I'm clear pls Constructor, is the file named Cuyahoga-2.0.0-ALPHA-src.zip (and it's binary counterpart) that is currently offered for download via Cuyahoga's SourceForge presence the version that has been referred to as your fork in this thread?
# Constructor 8/4/2010 10:32 PM
ErgoSumJust so I'm clear pls Constructor, is the file named Cuyahoga-2.0.0-ALPHA-src.zip (and it's binary counterpart) that is currently offered for download via Cuyahoga's SourceForge presence the version that has been referred to as your fork in this thread?

No, it is not that version. I have sent you an email explaining.
# ErgoSum 8/7/2010 1:17 AM
ErgoSum
webolizeI think there was a thread where Martijn mentioned the nHibernate or castle library changes and changes that he made for that to work. Also, I think he had to upgrade all dependent libraries.

Martijn's blog post below seems to suggest that getting v1.6 to work may be as simple as making the changes he mentioned in the post and updating the dependent libraries.

http://blogs.taiga.nl/martijn/2009/06/24/new-adventures-under-medium-trust/

The resulting application (CUY v1.7?) will require .NET 3.5 rather than v1.6's usual .NET 2.x because the Castle libraries require that.

Is there more to this?

Yes and No ;-) ... Answering myself a little here...

Yes, it is possible to get v1.6 running in medium trust - In a few hours I've managed to get a custom version that can complete the CUY installation phase (i.e. create the database and a sample site etc). I can almost log in as admin too... :-@
[Fails with authentication errors in AuthenticationModule.Context_Authenticate() because app.Context.User.Identity.Name is null. Expected given my particular changes but needs work...]

No, because it is only possible to do so with modest resources of time and effort if the developer is already intimately familiar with the internals of CUY v1.6 and perhaps CUY v2.0 (I jump-started my efforts by using the medium trust compatible libraries from the CUY 2 distribution).

It works to a point but, imo will now need a major work to repair/rebuild the authentication subsystem. Perhaps other subsystems will need some work too. I just don't know the code well enough to predict/estimate the effort, this will likely take a newbie like myself more resources than I can spare atm.