Application is not getting opened after installing it with the installer created by Visual studio installer
I resolved issue by looking the error log in Event viewer log file with the extension .Net Runtime. issue was some of the dev express supporitng file were missing. Need to deploy all Dls using devexpress deploy tool.
Exe application won't execute on VM
Runtime Missing: This indicates relatively strongly that you have a missing runtime of some sort. Ensure your runtime is installed, and in the required version too:
- Common:
VCRedist
,.NET
,.NET Core
,Java
,Direct X
, etc... - Specific:
Python
,DBMS systems
(PostgreSQL
,MSSQL
, etc...) - Windows Components:
IIS
,MSMQ - Message Queue
,Powershell
, etc...
Missing Files: There could also be missing files of other kinds - settings and various special cases. Here are some long debugging ideas lists:
- Launch crashes
- Launch fails
- Scan for dependencies
C# with Visual Studio: Published App Cannot Run After Installation
you can check if the file exist it will return the file contents and if not it will return an empty array like this :
public IEnumerable<string> GetData()
{
// if file not exist return empty list
return !File.Exists(FILE_NAME) ? Enumerable.Empty<string>() : File.ReadAllLines(FILE_NAME);
}
and now you can call your method like this
dataStreamer.GetData().ToArray();
.NET WPF runtime error after installing with Visual Studio Installer
The problem was indeed a missing dll - app resources.dll. Apparently WPF app is always shipped with culture folder (en-US by default). It's copied to output directory on build (.\bin\Debug\en-US) but Visual Studio Installer doesn't pick it up and it has to be added manually.
It's done in VS Installer project's File System -> new Project Output...
Related Topics
How to Clone a Range of Array Elements to a New Array
Which .Net Dependency Injection Frameworks Are Worth Looking Into
Using Async/Await For Multiple Tasks
How to Execute an .SQL Script File Using C#
What Is App.Config in C#.Net - How to Use It
Question About Terminating a Thread Cleanly in .Net
Determine a String'S Encoding in C#
Check Whether an Array Is a Subset of Another
Update All Objects in a Collection Using Linq
Linq to Entities Case Sensitive Comparison
Asp.Net Identity'S Default Password Hasher - How Does It Work and Is It Secure
How to Find the Number of Cpu Cores Via .Net/C#