VSTO deployment file will not run - c#

I have been working on an outlook Addon using a visual studio VSTO project. When I run it as Debug or launch from within Visual studio Outlook (2016) launches and the addon works without an issue.
However, if I try to install it by navigating to the VSTO Deployment file and double click it I am presented with an error saying that ".net version 4 is not installed". I have attempted to run this as admin using the command line and am just presented with an error (this is because run as admin is missing if I right click on it).
The catch with this is that I've attempted to install the requested version of .net and am just told that it can't because I have a newer version installed.
Any help with this would be greatly appreciated.
Update: I have logged into a machine using admin credentials and it installed without an issue. So I think it might be a system or group policy issue.

We were able to deploy the application by invoking the application that is used to install VSTO files via the command line. This also allowed us to use a certificate when doing so.
The command used to install the certificate allowing it to run is winhttpcertcfg and then the exe VSTOInstaller.exe is ran with a path to the VSTO file as an argument using /i and then is done silently using /s.

Related

unable to install or run the application

System Update Required:
Cannot open database connection :
Wrong username and password :
Greetings everyone
I have the following issue with restaurant management system that is programmed in C# connected with Microsoft Access database (2019), the program is work correctly in main developer laptop while we transfer the files to target or other PC or Laptop the program show the above images as windows messages error hopefully anyone have solved the issue before or have suggestion to solve it. let know about it with appreciation and advanced in thanks.
note* even I look for the problem I try to install new framework or Microsoft Access Database Engine 2016 it doesn't work.
Download the required version of log4net dll to the system. And then open Visual studio command prompt. Then run the below command in it.
gacutil -i log4net.dll
You need to install the dll in the GAC.
If by any change there is no gacutil or Visual Studio installed then you can use powershell to install the dll into GAC. You can refer this link for that https://weblogs.asp.net/adweigert/powershell-install-gac-gacutil-for-powershell

SCCM2012 .MSI Installation

i have a problem with during application installation to client. My application is Microsoft office add-in. And then i try to deploy this application to the client i don't see this files on client side but software centre says that application was successfully installed.
Why it happen? I try to install another applications for example 7Zip.MSI, my own application .msi and anothers, all ok, but if i try to install Microsoft office add-in the files are somewhere disappeared. for script execute i used this command:
msiexec /i "WToysSetup.msi" /qb
i have already installed microsoft word on clients machine.
There are a number of possible issues here. I'm assuming you're using a Visual Studio setup project in the absence of a specific tool being mentioned.
The install requires elevation, but in a silent install Windows won't show the UAC elevation dialog, and it will run without elevation. Most installs like this would fail, but you might find that a Visual Studio generated MSI reverted to a Just me install, and installed the files to an unexpected location (often C:\ and not Program Files).
MSIs can be published or assigned with SCCM-type deployments, one is to the system the other to the user, and that's Everyone or Just me again, so it may have done a per user install because of that.
Regardless of whether it seems to have worked, if it requires elevation and fails then it may just fail silently, which would be one reason you can't find the files. You should be able to see in Programs&Features/Apps whether it is actually installed, but it was installed as a per user/Just me install you'd need to log on as that user to see it in the list of installed apps.

Access Denied. installutil.exe installation after rebuilding in VS Express 2013

This is my first time in C#, and I was following this tutorial in order to test out a Directory Monitoring Service. The relevant installation steps is in Step 6:
http://www.rhyous.com/2012/11/27/c-creating-a-service-to-monitor-a-directory/
Step 6 – Install the Service
Open the Developer Command Prompt by right-clicking and choosing Run as
Administrator.
In the command prompt, change to the bin\debug folder in your project
directory.
Run this command to install the service:
installutil.exe DirectoryMonitoring.exe
Start the service with this command.
net start DirectoryMonitoringService
After following the tutorial, my service was able to install and run after building using the Visual Studio Development Console. I then updated my code a little and built it again.
I tried using the same steps to install or run the service via the VSD console again, but I get an Accessed Denied error when I try to do either commands.
I get the following error for the installation:
System.InvalidOperationException: Cannot open Service Control Manager on
computer '.'. This operation might require other priviledges.
The inner exception System.ComponentModel.Win32Exception was thrown with the
following error message: Access is denied.
I also get the following error for net start:
The service name is invalid.
What is going on? I was able to do everything perfectly the first time. Why is it not working now?
If you have the services window open, close it and then try doing the reinstall again.
Also, don't forget to uninstall the service before reinstalling it. However, in my experience, I'm pretty sure that once the service is installed just replacing the EXE with the updated service and restarting it is sufficient and I have gotten away without having to reinstall the service. YMMV.

signtool.exe not found c# and cannot publish because project failed to build

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.

Error while installing a .net setup executable locally

I have created a setup for my windows application in .NET 2008
After building the same i have the .msi and setup.exe files in my release folder.
The problem i am facing is :
I can install the application using the msi installer files from the shared network folder. But when i copy the installer locally and tried to install it,
i get the following error: Error reading file.Please Try again.
Anybody having any ideas if there are any properties to set in the installer project.
Regards
Constant Learner
Just a thought, you can use Orca to go through the .msi and see if you're having any static references to your development machine within your msi.
The application is a simple windows application without any database associated with it.
Its just a hello world windows application. So i presume its something related to the configuration part of the installation...
Constant Learner

Categories

Resources