I'm trying to run my CefSharp application on a separate computer other than my development machine, but I'm unable to. I built it in Release for the x64 platform, and moved the entire contents of the build folder over to my other computer. I tried running all the executables in the build folder, but none of them would work; when executed, they would not appear on screen, and after some time a window would open up with the generic "this program has stopped working" windows crash dialogue. I tried installing the Visual C++ redistributable and the .NET 4.5 Framework, but it still wouldn't run afterwards. What am I missing?
Related
I've developed app in VS2015 which needs to run on target computers that have Windows XP, NET 3.5. The release and debug versions of the application work without any problems on those computers.
I then made a Setup Project to be able to install the application on target computers and I did so that it requests no additional requirements. I ran the installer on my lap top which is Windows 7 and it works fine but on those target computers I get a message when i try to install the app:
"The installer was interrupted before 'App Name' could be installed.You need to restart the installer to try again."
I tried to find out what is the problem but without a success. I read that it could be problem that I am trying to install an application that was developed in VS2015 and that I need older version, but I couldn't understand why or what to do to make it work. Any help would be appreciated. Thanks!
EDIT1: I've checked and XP computers do have 3.5 NET installed. I also checked the event viewer and error I receive is: "Installation success or error status: 1603"
I've tried the resolutions that Microsoft suggests for this error, but didn't succeed.
EDIT2: I've checked permissions for the installation everything is as should, but still getting the error.
Since I start application from Debug and Release folder directly and it works perfectly, I am sure the problem is in the installer. Any help?
So, I started with a compiled .exe file of my program, created in Windows MS Visual Studio, and was able to launch it via Mono by typing mono InkMonitorClient.exe in the terminal. Then I decided to pack it in a .dmg install file. First, I created an .app bundle via macpack. Then I used this github script to create a .dmg image.
The installer works as intended, the window appears in which I can drag my app to the Applications folder, and then it appears there.
But then I'm unable to launch it from the Applications menu in the Dock, although launching it by open -a InkTest or /Applications/InkTest.app/Contents/MacOS/InkTest works absolutely fine.
P.S. The .app file, however, fails to launch by double-clicking and does nothing, but opening it it Terminal (as stated above) works. So, basically, the question is: how to correctly convert .NET (created in MS Visual Studio on Windows) exe file to app bundle.
The macpac tool is for Cocoa# applications, i.e. those built using the Mac Cacoa framework. Unfortunately simply putting an exe built with Win Forms or GTK# does not work, displaying all the characteristics you describe, I have burned hours of my life on that one. See bottom of http://www.mono-project.com/archived/guiderunning_mono_applications/.
If your application comprises multiple .dlls and an .exe you could use ILRepack to package up everything into a single .exe for tidiness. Additionally, it's not ideal, but you could also supply a launcher file (.command file on mac) with your app to save a manual launch from terminal.
I have created a win form application in c# with sqlce. I followed the steps here http://erikej.blogspot.dk/2013/10/sql-server-compact-4-desktop-app-with.html making some tweaks along the way since I was using sqlce 3.5 .net and that blog was talking about 4.0 .net.
When I finished the application, I created a set up project and build it which gave me an msi and setup file.
Now when I run this set up on my own machine where I developed the applicaton, it works a charm.
I tried it on a friend's machine as well, it worked well, he had visual studio 2010 as well on his machine.
Now when I tried it on 2 other machines with VS, after installation, on launching the exe, it launches and immediately closes, I do not see anything although.
I know it launches as i look at processes from my task manager it shows it in there for like 3-4 seconds and its gone.
I tried using this Not able to run the .exe file created from c# where i wrapped the try and catch around all the code inside the root win form but no text file was created with any errors.
On doing some research, it says it could be because I am missing some dll's, how do i make sure all the dlls from the references would be copied into the project ? I set all dll's to true for copy local.
Is this something else and not related to dlls?
I really just want to be able to install the application on any machine without any problems.
Thank you for your time.
EDIT
I need to add that this was a project that involved using an XBox controller sending data to a wireless receiver that was hooked to a PC. I used the XNA framework to intercept these and display some form of output on the Win Forms.
When packing and installing/deploying an application that makes use of the XNA DLLs on another non developer machine, the XNA framework needs to be installed.
My solution was packing my application along with the xna installer and so the xna framework installs as a prerequisite and then my application installs and then it no longer crashes.
Thanks to mrlucmoring and Mark for their support and troubleshooting.
I have developed an win-form application using Z3 api for C#. The application can run successfully on the computer which I used to develop. But after I build a setup project with the "SETUP AND DEPLOYMENT" function in VISUAL STUDIO 2010. The packaged application cannot run successfully on computers other than the development computer. Error message: failed to load z3.dll when running. What should I do to solve the problem?
z3.dll is unmanaged dll which is used by Microsoft.Z3.dll. Sadly, you cannot reference it by Reference dialog in Visual Studio.
I guess z3.dll is missing in the installation folder where Microsoft.Z3.dll is present.
I suggest that you run the application (including z3.dll and Microsoft.Z3.dll in the same folder) on a new machine, and try to pack all necessary bits to an installation package when they run fine.
Guys I created a console application in Visual Studio 2010. It targets the .NET framework 2.0. When I run the application is Visual Studio, it works perfect. I then exited Visual Studio and copied the executable to my C:\Windows\System32 directory. When I open a command prompt window and try to execute my program, it comes up with a standard Windows message box with an error that says "Unable to find a version of the runtime to run this application". I know I got the .NET framework installed.
I then copied the executable to my C:\Users\Public directory and tried to execute it from there and it worked fine. So I am assuming this is some kind of security issue or something? What do I need to do make the application work from C:\windows\system32 directory?
I am using Windows 7 64-bit, by the way. The application was compiled to target .NET 2.0 framework and 32-bit machines.
I think on a 64-bit machine you'll have to put it into c:\Windows\SysWOW64, which contains all the 32-bit stuff retained for compatability (everything in system32 should be x64).