unable to install or run the application - c#

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

Related

VSTO deployment file will not run

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.

What is the best best way to download and install msi\exe

I need to install drivers to my clients silently.
Now, I have some issues:
I don't want to install them directly from the internet using Process.Start("www.......msi") beacuse it goes really slow. I want first to download them to the computer and then run a winform application to let the client choose which driver to install.
I tried the VS Installation but I couldn't figure out how to download all the "c:\Program Files" and NOT to the "Program files (x86)" in case of a windows with 64 bits.
And I couldn't figure how to launch the winform app after the download complete, using the "custum action" didn't work.
I have different drivers for x86 and for x64, and I need to download to client's computer the drivers that he needs, how can I do that?
I have both msi and exe drivers, how can I install the exe driver silently?
If you know some third-party application I would be greatfull, this could be the best option for me!
Found the answer in Visual Studio 2012 with the InstallShield and some programming work in my code.
Thank you all :)

How to run another .EXE from my application setup ( VS 2010 )

I have a wpf application and I made a setup, and during installation i need to create database, and edit Connectionstring (app.config). So I made CustomAction add Installer.cs and override Install method and it done.
Now i need to install SqlServer Express from my setup, ie before creating database I should check whether the machine have installed sqlserver if not it should install form my application setup.
As far i know using process.start() i can run exe, but problem i am facing where i should keep sql.exe and how to get path
provide any usefull link much appreciated
ScreenShot:
You can use dotNetInstaller or similar bootstrapper. This solution create only one installer that install other pre-requisites and then execute your Visual Studio setup.

Launching windows C# application after installing it

I have C# windows cs project. The application enables opening word documents and pictures as well and storing them in MS Access database. I made a setup and it installs well on computers where Visual Studio 2008 is installed, but when I install it on a computer with no VS installed, it installs and after that it doesn't starts to run.
I can not run it.
Some other C# projects I made can be installed and run without problems on the same computers on which this application doesn't start.
Can anybody help me please what could be my problem?
Thank you in advance
Possible lacks some of the .net framework components on computer with no Vs installed,because when you installing VS,all the necessary components are also installed
Most likely it seems that the computer with no VS installed does not have .NET framework installed.
And where you are testing on computers with VS installed it obviously works as .NET frameworkis already installed.
I think there is an option in setup where you can specify Prerequisites before installing your application, google out more info on this.
This link might help.
If other Applications do run then it's possible that you may miss some dependencies.
Check if all dll's are installed properly. Which framework do you use ? Are the other C# projects also programmed in that framework ?

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