I have published my .net 5.0 WPF application to a UNC network directory. From there I ran "setup.exe" to install the appliation on my computer. Then when I ran the application it showed the "verifying application requirements" dialog which then disappeared without launching the application.
Running the application directly from the exe from the UNC path works fine. I have investigated this and it looks like it might be a case of this issue here:
ClickOnce Application Won't Open
Which points to a solution of selecting thee "after the application starts" option in the "Application Updates" window. The problem is I can't select this. Clicking the radio button "After the application starts" shown in the image below does nothing:
Why can't I select this?
It turns out that the "After the application starts" option is no longer supported in after .NET Core 3.0:
https://learn.microsoft.com/en-us/visualstudio/deployment/choosing-a-clickonce-update-strategy?view=vs-2019
For .NET 3.1 and newer applications, checking updates before the application starts is the only update option supported.
This doesn't help me resolve the issue of why my clickonce application won't start but at least I know why this option is unavailable.
Related
I am entangled in how to work so that after I finish building the wpf app, I can give it to another computer by downloading the app (for example, downloading the .exe file). I also tried it, but when I ran the .exe file, it only showed a popup cmd and then disappeared. Then I have pulish with self-contanied deployment mode. Here is an image of the following files when I published at bin\release:
Path: C:\Users\ASUS\Source\Repos\UserService\WpfApp1\bin\Release\netcoreapp3.0\publish
If I run the .exe file in a folder then run normally. But when I copy it to a deskop and run it is still the same (can't run).
I want to ask how can I help my app to be used by other computers. Thank you mn! Forget more, my app is using .net core 3.0 already.
Im developing a simple winform application which i would like to deploy to a mix of pcs - some x64 and some x86.
The application searches the harddrive for files containing text the user enters, and uses a backgroundworker to to the actual search so as not to lock the UI.
While still in visual studio, when i change the architecture of the winform project to 'Any CPU' or 'x64' and use F5 to load the application and enter a search term, i get the following error:
I'm targeting .NET framework 3.5
The application is fine and runs with no error when i Change it back to x86. I would like all users to be able to use the application and would appreciate some help in solving this.
thanks
EDIT 3
Another problem i have discovered is the application opens but returns no data when published or even from the debug folder after building ! Its just a winform with a datagridview and textbox on it. Any ideas?
Issue is probably with some DLL that you've added to your project. Some libraries fail on x64 or AnyCPU. I've had such issue last year.
Regarding:
I would like all users to be able to use the application and would appreciate some help in solving this.
If you compile it to x86, users should be able to use it on 64-bit machines without issue.
I have a WPF application developed and been testing already for a few months.
When it's installed on the client's computer the application starts and no window is visible. The task manager shows the application is running.
The application is writing all activities in few log files and it looks like it is doing something but no visible screen.
What can be a possible cause of the problem ?
Why it is invisible on that specific machine ? The machine is Windows 7 64x bit
The installed frameworks are v1.0 1.1 v2.0 v3.0 v3.5 v4.030319
The strange thing is the application was working before.
You should check Windows Event log (Type eventvwr in run dialog or go to viewer by Computer Management dialog of Windows) to get info about the problem. The reason is most likely your application has an exception before your main window is opened. So you see that process is running in task manager but windows did not show up.
The reason in event log could be anything. May be your app requires a file in a specified path but not found. I meany anything that causes an except,on could be your problem.
I have created a windows application using c# VS express 2012. The app works great in the VS environment. I have published the application using VS(ClickOnce) to the Desktop as an offline application, which does not check for updates. The app is not signed and security is disabled. The application seems to install fine when I run the setup.exe file. However, when I try to run the program from the start menu nothing happens. In the task manager, a process for the application appears for a few seconds then just goes away. The app window doesn't show and there aren't any indications of an error. If I navigate directly to the .exe of the app (%userprofile%\appdata\local\apps\2.0\%random id%......) and run it that way, it starts up and appears to function as designed. I've done some research and found that certain drivers and software (if installed) will cause this behavior (i.e. Kensington Mouse driver and Provencia software(?)). I've checked and I do not have either of these installed. Any help with this will be much appreciated.
Thanks in advance.
I have programed one c# windows application and i am trying to run that on my clients(customer's) machine.
First>>>I tried to publish that application.
Whie publshing it is giving me two errors
1.cannot publish because project failed to build
2.signingtool.exe not found.
Event though searching on web , i did not get appropriate solution for this problem.
Then i tried to make exe of the application by releasing the application in x86 mode.
When i double clicks on application file(exe)...it gets opened and gives me error
1.microsoft.ace.oledb.12.0' provider is not registered on the local machine
After this error i installed the setup for AccessDatabaseEngine.
Although installing this...it gives me error...
what should i do for these errors???
Help me out for both the problems of same case...
i have refered this post
ClickOnce - Cannot publish because a project failed to build
and tried to build and publish the project via menus on the top....but still the problem is same...
Don't worry, I had this problem.
It's quite an easy process:
Open Programs and Features
Select Microsoft Visual Studio
Click Change
Select Modify if prompted (depends on your VS version)
Choose ClickOnce publishing tools and install them
Also, I found a bunch of cool stuff that you can install from there.