1. Home
  2. Docs
  3. Troubleshooting and Suppo...
  4. Self-troubleshooting
  5. Service or Application Fails to Start

Service or Application Fails to Start

SQLBackupAndFTP consists of two parts: a configuration application and a Windows Service. More details can be found in the application architecture.

The SQLBackupAndFTP (Database Backup) Windows service fails to start

If the SQLBackupAndFTP (Database Backup) Windows service doesn’t run, the following error message will be shown:

If you encounter this issue, please follow the steps below to find additional information. While there are no specific steps to resolve the issue, the following are only a few general tips that sometimes resolve the problem of starting the SQLBackupAndFTP service.

  1. Install the latest version of .NET Framework.
  2. Run the .NET Framework Repair Tool utility.
  3. Install the latest updates for your operating system.
  4. Add the application to the exceptions list of your antivirus or firewall.
  5. Delete the directory c:\ProgramData\Pranas.NET\SQLBackupAndFTP\and then reinstall the SQLBackupAndFTP application.

If none of the above helps, try to identify the error preventing the service from starting and search for it online. Below are some ways to search for this error:

Startup error analysis

If your service fails to start, the first thing to do is to click the ‘Restart Service’ button. A Windows terminal will appear with startup information. Pay attention to it, as errors may be displayed.

In the image above is a normal startup. If the message you receive differs from this, pay attention to it, as there may be additional information to solve the problem.

Windows Event Log Analysis

Errors related to the launch or operation of the application are logged in the Windows Event Log.

To open the Windows Event Log, press Win + R and enter eventvwr

Check the Application and System sections for errors related to SQLBackupAndFTP.

Analysis of Advanced application logs

Even if the application fails to start, you can enable additional logging within the application to help diagnose the issue. In the log, pay attention to error locations, which can be easily identified visually by searching for lines that start with an indentation and the word at . Typically, the error is found in the very first line of this entry with the corresponding date.

Running the service executable file as a regular process.

  1. Open the console and execute the command
    "C:\Program Files (x86)\SQLBackupAndFTP\"sqlbak.service.exe -console

    If everything is working correctly, you will see the following content in the console.

  2. Without closing this console window, open a new one and enter the command there:
    "C:\Program Files (x86)\SQLBackupAndFTP\"sbf.application.exe -ignoreStatusService

    This command will start the configuration application.

If the service starts correctly as a console application, then most likely the issue is related to the presence of security software or certain settings in Windows security policies.

In principle, if everything works for you like this, instead of further searching for a solution to the problem, you can add the command to sqlbak.service.exe -console to the system startup and create a shortcut to launch the application with the parameter sbf.application.exe -ignoreStatusService

The application for setting up jobs does not start

The application, where the user configures backup operations, does not contain complex logic and does not invoke third-party components; it does not even interact with the disk. If the application fails to start for you, the problem is most likely either due to disk errors during installation or in .NET issues. Try following the same general advice from the beginning of the article.