Application doesn't run on Vista ??

O

Ole

Hi,

Have created an application and a corresponding Setup using C#, .NET 2.0
and VS2005 and everything works well on different Windows versions
except on some Vista PC's. The installation was succesfull but when I
try to run the installed application by double clicking the exe file
absolutely nothing happens?!? Any idea what could be wrong? (Have also
tried the "run as administrator option" without succes).

Thanks
Ole
 
D

Deobrat Singh

Is it a console application? If yes, try executing it from the command
prompt. See if you get any exception there.

Otherwise, check to see if there is anything getting logged in the Windows
Event Log.

-Deobrat
 
N

not_a_commie

Not all the .Net 2.0 libraries ship with Vista. Did you install
the .Net 2.0 stuff separately? Or you can try doing an .Net 3.0 or 3.5
build to see if that runs on Vista.
 
A

Andrew Faust

Ole said:
Hi,

Have created an application and a corresponding Setup using C#, .NET 2.0
and VS2005 and everything works well on different Windows versions except
on some Vista PC's. The installation was succesfull but when I try to run
the installed application by double clicking the exe file absolutely
nothing happens?!? Any idea what could be wrong? (Have also tried the "run
as administrator option" without succes).


You said it doesn't run on "some Vista PC's" does that mean it does run on
some? I recommend grabbing Microsoft Virtual PC 2007 (free download) and
installing fresh copies of all the OSs you need to support. Do your
installation testing in these as it will allow you to have an isolated
environment. This way you can ensure it's not some other program on the
system causing a conflict.

Andrew Faust
 
A

Arto Viitanen

Ole said:
Hi,

Have created an application and a corresponding Setup using C#, .NET 2.0
and VS2005 and everything works well on different Windows versions
except on some Vista PC's. The installation was succesfull but when I
try to run the installed application by double clicking the exe file
absolutely nothing happens?!? Any idea what could be wrong? (Have also
tried the "run as administrator option" without succes).

Have you tried to install it onto user's directory? We had the same
problem on a .net 2.0 program. It started ok, but it stopped on when it
tried to load Jscript code (the program was earlier wrote with C and
JScript and then ported to C# but JScript code remained).

But, when either run as administrator or installed to user's home
directory, the program run. I guess the problem was, that scripts cannot
be run from \Program Files directory.

(Luckily, the customer uses XP, so Vista installation was only a check).
 
O

Ole

Thanks for all your replies!

It turned out that a code protection tool (Remotesoft) caused the
problem, so after compiling and creating a new installation package
without using the tool everything worked well..... except that it wont
load a c++ dll that I created, but that is another story which I will
open in another thread.

BR
Ole

Arto Viitanen skrev:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top