Running fine in Visual Studio but not standalone
-
שבת 14 אפריל 2012 15:08
Hi,
We have a .net 3.0 solution which is using a citrix ocx file(added as a reference from the installed folder path of citrix client in program files).This solution runs fine when it is run inside visual studio(both in Debug and Release mode).However we run the compiled exe from the bin folder in a standalone manner, it doesn't runs.
Can somebody please share from their experience as where can be the problem.Do visual studio provides some additional environment which is not present otherwise for a standalone .net exe.
Note: Both the Visual Studio and Exe are running under same user credentials.
Cheers
Bhaskar
- נערך על-ידי Bhaskar Sharma שבת 14 אפריל 2012 15:20 spell
כל התגובות
-
שבת 14 אפריל 2012 15:40
Hi Bhaskar,
if you used OCX File in your Application, you have to register this file in client PC.
In Development Environment Worked Fine because OCX File is Registered in your PC.
using REGSVR32 Command to Register File or you can use other way to register this file.
eg. regsvr32 citrix.ocx
Regards,
Gautam
-
שבת 14 אפריל 2012 16:25מנחה דיון
What does "doesn't run" mean? What happens when you try to execute the EXE?
Rudy =8^D
Mark the best replies as answers. "Fooling computers since 1971."
-
יום ראשון 15 אפריל 2012 13:26
Hi All,
Thanks for responding. Let me clarify my problem in bit more detail. I am developing and running the application on the same machine.It is a Win7 machine which is 32 bit. When i run it inside visual studio either in debug or release mode it runs fine. However when i run its exe from the bin folder inside release folder, the exe gets stuck at the point where we have to use OCX file funtionality to connect to citrix server.
In optimal condition, this exe connects to citrix server using ocx file funtionality and opens up another exe.
This OCX file is referenced from program files folder\citrixclient folder where citrix client is installed.I believe that during installation of citrix client, this ocx files is already installed in registry. I tried adding ocx file reference both with "Isolated= true" and "Isolated=false" flag. In both cases it runs inside visual studio but not from Bin folder as standalone.
Hope i am able to clarify my problem.
Cheers
Bhaskar