NETRUN?

NETRUN?

Old forum URL: forums.lhotka.net/forums/t/98.aspx


Skeeboe posted on Sunday, May 14, 2006

I see NETRUN didn't make it over to CSLA 2.0. Has it been replaced with a better alternative or are people still using it? I like Click-Once, but if you use it, you have no control over the install folder on the client's machine.

Misled replied on Sunday, May 14, 2006

Are you sure about the control? I studied the deployment object enough to figure out how to update the app every time it starts without requiring user intervention. As I recall, there are lots of things you can do with the deployment object. BUt I could be wrong....

JoeWork replied on Monday, May 15, 2006

I have used Click-Once and it appears so far to work very well. I have been frustated though by the lack of control of the installation folder but I'm not sure if thats just down to me not reading enough so far :)

 

 

Misled replied on Monday, May 15, 2006

That's why we have this forum....I think.....There's not a chance in hades we'll ever know everything. It's too vast to read in one lifetime. :)

Skeeboe replied on Monday, May 15, 2006

Per the Click-Once FAQ Site:
http://www.windowsforms.net/FAQs/default.aspx?PageID=1&CategoryID=24&tabindex=2

Q. I want my application to be installed to a specific hard drive location, how can I achieve this?
A. The install location of “ClickOnce” application cannot be managed by the application. This is an important part of making “ClickOnce” applications safe, reversible, and easy to administer. Note, the administrator can specify where the “ClickOnce” store should reside.

I have 10+ HUGE programs that are all interconnected. They all can launch each other and need to know each other's locations. There are more issues than that but that's a big one. It's much easier to work with interconnected programs if they all reside in the same folder.

I'm not even sure if NETRUN can handle our needs, I was going to start testing with it and noticed it wasn't carried over (or even mentioned it looks like) in CSLA 2.0.

ajj3085 replied on Monday, May 15, 2006

MSI might be the best approach if your deployment needs are more complex than ClickOnce can handle.

RockfordLhotka replied on Monday, May 15, 2006

I didn't carry netrun forward because I think ClickOnce is a generally better solution. NetRun should still work under .NET 2.0 though - it isn't a very complex bit of code, and the href exe deployment concept continues to work in .NET 2.0 just like it did in .NET 1.0.

Odds are that you can simply recompile NetRun under VS 2005 and it will work (though I haven't tried that myself).

mcerisano replied on Wednesday, August 30, 2006

We are using NetRun and the CSLA.  Since the conversion of our code to C# 2005 and .NET 2.0 we have noticed that NetRun does not work as expected.  We have been using NetRun for deployment for the last year or more, with no problems.

Now when we deploy a new version of the code to the web server, we have noticed that NetRun does not get the latest version of the deployed code.  The previous version of our exectubable is being used and the loading of the application fails because all the dependent assemblies cannot be resolved.

I have found some documentation around the fact that Assembly.LoadFrom no longer works as expected in .NET 2.0...here is the link:

http://msdn.microsoft.com/netframework/programming/breakingchanges/runtime/fusion.aspx

Has anyone else had this problem? and if so is there a reasonable work-around?  If not, it looks like we will be using the Updater Block since Click-Once is too inflexible.

Marty

RockfordLhotka replied on Wednesday, August 30, 2006

From reading that link though, it sounds like the change only affects you if you are using the GAC. It doesn't indicate that there'd be any effect on purely dynamic loaded assemblies that aren't in the GAC.
 
I can say though, that I have never tested NetRun under 2.0, so it is possible that Microsoft did break href exe. I find that unlikely however, because that would have a higher severity than the relatively obscure issue described by that link. A lot of people use href exe - at least in 1.x - and I've seen other references to the effect that href exe continues to work in 2.0.
 
Rocky
 


From: mcerisano [mailto:cslanet@lhotka.net]
Sent: Wednesday, August 30, 2006 12:18 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] NETRUN?

We are using NetRun and the CSLA.  Since the conversion of our code to C# 2005 and .NET 2.0 we have noticed that NetRun does not work as expected.  We have been using NetRun for deployment for the last year or more, with no problems.

Now when we deploy a new version of the code to the web server, we have noticed that NetRun does not get the latest version of the deployed code.  The previous version of our exectubable is being used and the loading of the application fails because all the dependent assemblies cannot be resolved.

I have found some documentation around the fact that Assembly.LoadFrom no longer works as expected in .NET 2.0...here is the link:

http://msdn.microsoft.com/netframework/programming/breakingchanges/runtime/fusion.aspx

Has anyone else had this problem? and if so is there a reasonable work-around?  If not, it looks like we will be using the Updater Block since Click-Once is too inflexible.

Marty




mcerisano replied on Wednesday, August 30, 2006

Thanks for the feedback.

We have been using NetRun and the Assembly.LoadFrom for many months with no issues.  So I can vouch for the fact that this mechanism has worked pre-2.0.  Post-2.0 is another story.

Its troublesome that the Assembly.LoadFrom call now does not retrieve the latest version from the server.  The only way to get the lastest version is to clear the temporary internet files.  This is not a valid deployment requirement for our users.

It would be great to know if anyone using .NET 2.0 has verified that NetRun (Assembly.LoadFrom) actually works...

 

 

figuerres replied on Wednesday, August 30, 2006

Skeeboe:
Per the Click-Once FAQ Site:
http://www.windowsforms.net/FAQs/default.aspx?PageID=1&CategoryID=24&tabindex=2

Q. I want my application to be installed to a specific hard drive location, how can I achieve this?
A. The install location of “ClickOnce” application cannot be managed by the application. This is an important part of making “ClickOnce” applications safe, reversible, and easy to administer. Note, the administrator can specify where the “ClickOnce” store should reside.

I have 10+ HUGE programs that are all interconnected. They all can launch each other and need to know each other's locations. There are more issues than that but that's a big one. It's much easier to work with interconnected programs if they all reside in the same folder.

I'm not even sure if NETRUN can handle our needs, I was going to start testing with it and noticed it wasn't carried over (or even mentioned it looks like) in CSLA 2.0.

 

an idea for you ....

click-once was designed to isolate app dependancy so that for example 2 or more versions could be installed w/o stomping out each other.

while the path is "hidden" it is still there, I think with a bit of care you can build code to "find" the apps. what about having links to the app's in a known location ?

each app puts a link in say program files\complex app\links\

and each app can build a list of links to other apps to run on the fly...

each time a click-once app is updated it re-writes it's link so all the other apps can find it via the link.

mcerisano replied on Thursday, September 07, 2006

I thought you might be interested in this article.
 
It seems that they purposely broke NTB so that we would be forced in the direction of ClickOnce.  Seems heavy handed.
 
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=93820
 
Marty
-----Original Message-----
From: Rockford Lhotka [mailto:cslanet@lhotka.net]
Sent: Wednesday, August 30, 2006 1:50 PM
To: Cerisano, Marty (JUS)
Subject: RE: [CSLA .NET] NETRUN?

From reading that link though, it sounds like the change only affects you if you are using the GAC. It doesn't indicate that there'd be any effect on purely dynamic loaded assemblies that aren't in the GAC.
 
I can say though, that I have never tested NetRun under 2.0, so it is possible that Microsoft did break href exe. I find that unlikely however, because that would have a higher severity than the relatively obscure issue described by that link. A lot of people use href exe - at least in 1.x - and I've seen other references to the effect that href exe continues to work in 2.0.
 
Rocky
 


From: mcerisano [mailto:cslanet@lhotka.net]
Sent: Wednesday, August 30, 2006 12:18 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] NETRUN?

We are using NetRun and the CSLA.  Since the conversion of our code to C# 2005 and .NET 2.0 we have noticed that NetRun does not work as expected.  We have been using NetRun for deployment for the last year or more, with no problems.

Now when we deploy a new version of the code to the web server, we have noticed that NetRun does not get the latest version of the deployed code.  The previous version of our exectubable is being used and the loading of the application fails because all the dependent assemblies cannot be resolved.

I have found some documentation around the fact that Assembly.LoadFrom no longer works as expected in .NET 2.0...here is the link:

http://msdn.microsoft.com/netframework/programming/breakingchanges/runtime/fusion.aspx

Has anyone else had this problem? and if so is there a reasonable work-around?  If not, it looks like we will be using the Updater Block since Click-Once is too inflexible.

Marty







RockfordLhotka replied on Thursday, September 07, 2006

Interesting.
 
Though that may or may not affect NetRun. It isn't clear whether the change only affects IE as host, or all hosts. I suspect the former, because I have at least one client who's using href exe (not netrun though) under .NET 2.0 - over the internet. Though perhaps they specifically put the deployment server into the Trusted zone or something - that I don't know.
 
Rocky


From: Cerisano, Marty (JUS) [mailto:cslanet@lhotka.net]
Sent: Thursday, September 07, 2006 12:19 PM
To: rocky@lhotka.net
Subject: RE: [CSLA .NET] NETRUN?

I thought you might be interested in this article.
 
It seems that they purposely broke NTB so that we would be forced in the direction of ClickOnce.  Seems heavy handed.
 
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=93820
 
Marty
-----Original Message-----
From: Rockford Lhotka [mailto:cslanet@lhotka.net]
Sent: Wednesday, August 30, 2006 1:50 PM
To: Cerisano, Marty (JUS)
Subject: RE: [CSLA .NET] NETRUN?

From reading that link though, it sounds like the change only affects you if you are using the GAC. It doesn't indicate that there'd be any effect on purely dynamic loaded assemblies that aren't in the GAC.
 
I can say though, that I have never tested NetRun under 2.0, so it is possible that Microsoft did break href exe. I find that unlikely however, because that would have a higher severity than the relatively obscure issue described by that link. A lot of people use href exe - at least in 1.x - and I've seen other references to the effect that href exe continues to work in 2.0.
 
Rocky
 


From: mcerisano [mailto:cslanet@lhotka.net]
Sent: Wednesday, August 30, 2006 12:18 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] NETRUN?

We are using NetRun and the CSLA.  Since the conversion of our code to C# 2005 and .NET 2.0 we have noticed that NetRun does not work as expected.  We have been using NetRun for deployment for the last year or more, with no problems.

Now when we deploy a new version of the code to the web server, we have noticed that NetRun does not get the latest version of the deployed code.  The previous version of our exectubable is being used and the loading of the application fails because all the dependent assemblies cannot be resolved.

I have found some documentation around the fact that Assembly.LoadFrom no longer works as expected in .NET 2.0...here is the link:

http://msdn.microsoft.com/netframework/programming/breakingchanges/runtime/fusion.aspx

Has anyone else had this problem? and if so is there a reasonable work-around?  If not, it looks like we will be using the Updater Block since Click-Once is too inflexible.

Marty










Copyright (c) Marimer LLC