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]
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'.
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
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'.