Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB 2005 to VB 2010 Project Unable To Find Version On Install

Status
Not open for further replies.

Skittle

ISP
Sep 10, 2002
1,528
US
I have a service program written in VB.Net 2005.
I have converted it to Visual Studio 2010 successfully.
It compiles without any problems in VS 2010.

I have installed it successfully on my development laptop that has VS 2005 and VS 2010 on it with an Install.bat file that has the following commands:-
Code:
InstallUtil.exe /u ServiceFileMonitor.exe
InstallUtil.exe ServiceFileMonitor.exe
[/code]


If I try the same .bat file on the 'live' server, I get an error stating:-
'Unable to find a version of the runtime to run this application'
The server has version 4 of the .Net framework on it so I don't understand why there is a problem.

I am guessing I need version 2 of the .net frmework installing on the server as I have that on my laptop with vs 2005
but that seems a little odd to me. Surely version 4 would work?

Is there a compile option I need to set when building a VS 2005 project to get it compile as VS 2010 and use
the .Net 4 version?



Dazed and confused.

Remember.. 'Depression is just anger without enthusiasum'.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top