My dev system has .NET 1,1, 2.0 SP2, 3.0 SP2 and 3.5 SP1. I need to understand how the version of .NET that the app is usiing relates to the version of ClickOnce that will be used (assuming there is a relation). For example:
IfI publish a VS2005 app that's targeted to .NET 3.0, what version of ClickOnce will be used?
Or if Ipublish a VS2008 app that's targeted to .NET 3.5, what version of ClickOnce will be used?
(in all my test cases, my dev system is both the publisher and the target of the deployment)
I was having the infamous "Value does not fall within the expected rangeā?error with the first scenario, in which the app was targeted to .NET 3.0. I then migrated the app from 3.0 to 3.5 and published itagain, and then ClickOnceseemed to work fine, and interestingly, I noticed the folder structure under ~\Local Settings\Apps had changed, so I think thatClickOnce itselfis now using different code.
So.... does ClickOnce use different versions depending on the "level" of the app being deployed?
DT
| | dthouston Tuesday, September 08, 2009 8:02 PM | Some features were added in VS2008 SP-1 that are available if you are targeting .Net 3.5 SP-1. They appear under the Options dialog in the Publish tab of Visual Studio.
The version on your development system is irrelevant. What is relevant is what framework you set as the target in the Application properties to the application itself. Of course, I don't think you can target a version you don't have installed.
The foldering under the publish location changed between VS2005 and VS2008, and has nothing to do with the version of the .NET Framework being targeted.
Value does not fall within the expected range -- I'd have to see the rest of the error message to give any further information about that.
RobinDotNet Click here to visit my ClickOnce blog!- Proposed As Answer byRobinDotNetMVP, ModeratorWednesday, September 16, 2009 10:44 PM
- Marked As Answer byRobinDotNetMVP, ModeratorSunday, September 20, 2009 6:17 PM
-
| | RobinDotNet Wednesday, September 09, 2009 6:16 AM | Hello DT, Thanks for your post on MSDN forum. >IfI publish a VS2005 app that's targeted to .NET 3.0, what version of ClickOnce will be used? Or if Ipublish a VS2008 app that's targeted to .NET 3.5, what version of ClickOnce will be used? Based on my understanding, it depends on how your application use the assemblies and the common language runtime the application work with. Generally, if the application target v3.0, it uses v3.0 .NET Framework, if the application target v3.5, it uses v3.5 .NET Framework. As for the error, "Value does not fall within the expected rangeā? does this happen to all client machines or just happen on special machines? You might try with the mage.exe to clear the downloaded application cache of all online-only applications Or manually delete the application cache. Mage -cc More information http://msdn.microsoft.com/en-us/library/acz3y3te.aspx http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/09336e90-68e1-4575-a79c-1cee67cf12ac Thanks, Rong-Chun Zhang MSDN Subscriber Support in Forum If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. | | Rong-Chun Zhang Wednesday, September 09, 2009 6:13 AM | Some features were added in VS2008 SP-1 that are available if you are targeting .Net 3.5 SP-1. They appear under the Options dialog in the Publish tab of Visual Studio.
The version on your development system is irrelevant. What is relevant is what framework you set as the target in the Application properties to the application itself. Of course, I don't think you can target a version you don't have installed.
The foldering under the publish location changed between VS2005 and VS2008, and has nothing to do with the version of the .NET Framework being targeted.
Value does not fall within the expected range -- I'd have to see the rest of the error message to give any further information about that.
RobinDotNet Click here to visit my ClickOnce blog!- Proposed As Answer byRobinDotNetMVP, ModeratorWednesday, September 16, 2009 10:44 PM
- Marked As Answer byRobinDotNetMVP, ModeratorSunday, September 20, 2009 6:17 PM
-
| | RobinDotNet Wednesday, September 09, 2009 6:16 AM | Hello DT,
I am writing to check the status of the issue on your side. Would you mind letting me know the result of the suggestions? If you have any additional question, welcome to post here.
Have a great day!
Thanks, Rong-Chun Zhang MSDN Subscriber Support in Forum If you have any feedback on our support, please contact msdnmg@microsoft.com
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. | | Rong-Chun Zhang Wednesday, September 16, 2009 11:35 AM | RobinDotNet answered my question:
>The version on your development system is irrelevant. What is relevant is what framework you set as the target in the Application properties to the application itself. Of course, I don't think you can target a version you don't have installed.
As I said in my original post, I'm no longer having the "Value does not fall within the expected rangeā?error...
> I was having the infamous "Value does not fall within the expected rangeā?error
... so that wasn't what I was asking about.I only included that as some additional background information.
But thanks for bothresponses.
DT | | dthouston Friday, September 18, 2009 2:00 PM |
|