Skip to main content

Why application fails to start at startup?

Problem: In some customer node the application does not start after installation. It crashes at the startup. What are the possible common reasons to investigate in such cases?

Analysis: As per my experience, most probable causes are as follows:

  • Pre-requisites software of the application are missing.- It is not always possible to package all the pre-requisites of an application in installation package. Hence it is documented in the installation and configuration manual.Check in the add and remove programs if all the software are installed. One of the pre-requisite software may be missing on the node. Use the dependency viewer or dependency tool to find the missing dependent binaries on the node. Or use Windbg tool and start the application, it may give some idea on the pre-requisite software. Compare the loaded binaries of the application process with the list that it is supposed to load. For example, compare it with the list of binaries loaded by the application on a working node.Some of the companies have their own tool to check all the software installed on  a node.
  • Check in the event list of the application, it may have important pointers to solve the issue.
  • Some times the certificate may not be valid, check for the certificate related information from the call stack.
  • Some times the correct .NET framework may not be installed. In newer Windows operating systems some of the older .NET feature has to be enabled from the programs and features option.
  • Check for access rights or domain policy, firewall, anti virus software, ports etc that might be preventing the application from launching.
  • Some times, the 64 bit version of the pre-requisite may be installed while the application may need 32 version of the software or vice versa. For example Visual Studio run time.
  • Application may need VB run time support
  • Issue with the license of the product. The Windows OS is not licensed, using unlicensed windows version may lead to unexpected behavior in applications. Even unlicensed version of software's can cause unreliable behaviors, like excel may instigate issues with add-ins.
  • Issue with device drivers, some times I have seen issue with the graphics driver preventing the graphics from displaying. check which device drivers are supported by the application.
  • Not enough OS resource like memory, CPU etc
  • In case of COM, sometimes the problem of GUID being reused by more than one COM module (DLL hell issue). DLL may not be registered or present in GAC.
  • Signing related issues with the binaries. For example, binaries signed with SHA2 will no longer work until .Net 4.5 or above is installed on the node.

Comments

Popular posts from this blog

Real time data to web application using Microsoft Signal R and Razor Pages

Today we are going to learn how to create razor pages and how to send run time value to the razor page using Signal R Create a new .NET core web application Add Signal R library by,  Add Client-Side Library dialog in the project, for Provider select "unpkg" and select the latest version from the drop down For Library, enter @aspnet/signalr@1, Add a new folder to the project named as Hubs The chat hub class inherits from HUb class that manages connections and messaging The send message is called to send the message to all the clients. MyHub.cs file contains the following code using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.SignalR; //using System.Threading.Tasks; namespace SignalRSample.Hubs {     public class MyHub : Hub     {         public async Task SendMessage(string user, string message)         {       ...

CRUD operation with WCF service and WPF client

 The database restored on local server WCF Service is talking to the database. Used Visual Studio 2019, entity framework 6 for data base operations from the service. The service exposes the following API’s.  The WCF contracts has both synchronous and asynchronous API's The client is in WPF. It has three windows, main window, customer window and order window as follows. The client uses the WCF service for database operations. When customer button is clicked, the customer window is displayed as below. We can perform CRUD operation from it. The customer can be searched based on ID. New customer window The order button launched order window. It has combo box to choose the customer ID. On selecting the ID, the order details are displayed in the data grid as follows. The source code is available in the GIT hub, URL below: https://github.com/SwagatikaGoswami/WPF_WCF_CRUD.git

Online Exam App with .NET Core Web API and Blazor Client

 We will develop an app that can host online exam. It will have the feature to register user, allow the user to log in. Dashboard for creating sample tests.  The code is shared in GIT hub repository https://github.com/ SwagatikaGoswami/ OnlineExamApp.git The database is MySQL database. The server is a WEB API .NET Core service that uses entity framework for DB operations. The client is a web assembly blazor application. The password stored in the database is encrypted. Register window is as follows. It checks for the mandatory fields. The log in page is as follows: The admin dashboard after logging in  The admin dashboard when new test button is clicked. It uses a Blazor component for adding new test samples.