A1VBCode Forums

problem in framework version (very important)


http://www.a1vbcode.com/vbforums/Topic29919.aspx

By john_zakaria - 1/15/2011

hi guys, i want to ask a small question.

i made a windows service that work using framework version 3.5, after that i made the installer of this windows service to let the user uses this windows service on their computer's.



Now i want to setup this windows service on different operating services like windows 7, windows vista, windows xp......



but when i tried to setup it in windows 7 i found that there is a conflict in the framework version. coz i am using in my project windows framework version 3.5 and the file InstallUtil.exe is in the framework v2.0.50727



it's path is: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe



so how i can allow the user to setup the windows service into different framework(s)??



or how i can make a windows service regardless it's framework version???
By dynamic sysop - 1/16/2011

If you create any app or service using .NET, the pc you install the app too or run the service on must have a Framework version which is EITHER the SAME or HIGHER than the version you used to build the app.

eg: If you build the app using Framework V2.0, then the pc you install to must have V2.0 or higher (in other words V3.5 would run the app)

but, if you build the app using Framework V3.5 & the pc has a version lower than 3.5 (ie: V2.0) then the pc you wish to install to must have the Framework updated to atleast V3.5 to work with your app.