Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Application error 0xc000007b
#1
Hi, guys -

We're interested in using your command line utility to detect custom USB keys and automatically reboot to them from our application. It's written in C# against .NET version 4.5.2.

I've installed a "trial" of your Enterprise software.

When I run either EasyUEFI.exe *or* EasyUEFIC.exe from the command line, or using the application shortcut, everything is fine.

When I copy your EasyUEFIC.exe and supporting DLLs to our application's folder and set up a new Process to spawn for it, I get a popup saying "EasyUEFIC.exe - Application Error" and "The application was unable to start correctly (oxc000007b). Click OK to close the application." And sure enough, it quits, even before producing any sort of log.

In general, I'm doing this:
Code:
System.Diagnostics.Process shellpro = new System.Diagnostics.Process();
            System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
            startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
            startInfo.WorkingDirectory = System.Environment.CurrentDirectory;
            startInfo.FileName = "EasyUEFIC.exe");
            startInfo.Arguments = "--list-efi";
            startInfo.UseShellExecute = false;
            startInfo.Verb = "runas";
            startInfo.LoadUserProfile = true;
            startInfo.RedirectStandardOutput = true;
            startInfo.RedirectStandardError = true;
            startInfo.CreateNoWindow = true;

            shellpro.ErrorDataReceived += Shellpro_ErrorDataReceived;
            shellpro.StartInfo = startInfo;

// this is where the error crops up.
            shellpro.Start();
            ...

The idea is we will capture the UEFI boot devices and parse it out for our particular USB key.

I've tried it with and without "runas" and LoadUserProfile.

I've tried it changing the command to "cmd.exe" with parameters "/c EasyUEFIC.exe", and even inside a batch file.

This code was working when a coworker handed it to me, running against EasyUEFI version 1.7.0.1, but his trial license had expired and I downloaded 3.0 instead.

Running Windows Version 10.0.15063 Build 15063

Any suggestions?
Reply
#2
(10-07-2017, 03:26 AM)rrussell Wrote: Hi, guys -

We're interested in using your command line utility to detect custom USB keys and automatically reboot to them from our application.  It's written in C# against .NET version 4.5.2.

I've installed a "trial" of your Enterprise software.

When I run either EasyUEFI.exe *or* EasyUEFIC.exe from the command line, or using the application shortcut, everything is fine.

When I copy your EasyUEFIC.exe and supporting DLLs to our application's folder and set up a new Process to spawn for it, I get a popup saying "EasyUEFIC.exe - Application Error" and "The application was unable to start correctly (oxc000007b). Click OK to close the application."  And sure enough, it quits, even before producing any sort of log.

In general, I'm doing this:

Code:
System.Diagnostics.Process shellpro = new System.Diagnostics.Process();
           System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
           startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal;
           startInfo.WorkingDirectory = System.Environment.CurrentDirectory;
           startInfo.FileName = "EasyUEFIC.exe");
           startInfo.Arguments = "--list-efi";
           startInfo.UseShellExecute = false;
           startInfo.Verb = "runas";
           startInfo.LoadUserProfile = true;
           startInfo.RedirectStandardOutput = true;
           startInfo.RedirectStandardError = true;
           startInfo.CreateNoWindow = true;

           shellpro.ErrorDataReceived += Shellpro_ErrorDataReceived;
           shellpro.StartInfo = startInfo;

// this is where the error crops up.
           shellpro.Start();
           ...

The idea is we will capture the UEFI boot devices and parse it out for our particular USB key.

I've tried it with and without "runas" and LoadUserProfile.

I've tried it changing the command to "cmd.exe" with parameters "/c EasyUEFIC.exe", and even inside a batch file.

This code was working when a coworker handed it to me, running against EasyUEFI version 1.7.0.1, but his trial license had expired and I downloaded 3.0 instead.

Running Windows Version 10.0.15063 Build 15063

Any suggestions?

Sorry for my late response and thank you for your interest in our product(s).

Please install EasyUEFI on the computer that you use to test your application, then copy the required files from the installation directory to your application's folder and try again.

By the way, if the trial license has expired, it will still expire even if you replace it with the latest version.
Reply
#3
Quote:Please install EasyUEFI on the computer that you use to test your application, then copy the required files from the installation directory to your application's folder and try again.


Hi there!

This is my development machine - so it is currently the same machine that has the EasyUEFI trial version installed. I have not deployed it to any test machines because I can't get it working locally first Undecided

I've copied the files:
* EasyUEFI.ini
* EasyUEFIC.exe
* intl.dll
* libcurl.dll
* Log.dll

Are there others that are necessary?
Reply
#4
(10-09-2017, 10:11 PM)rrussell Wrote:
Quote:Please install EasyUEFI on the computer that you use to test your application, then copy the required files from the installation directory to your application's folder and try again.


Hi there!

This is my development machine - so it is currently the same machine that has the EasyUEFI trial version installed. I have not deployed it to any test machines because I can't get it working locally first Undecided

I've copied the files:
* EasyUEFI.ini
* EasyUEFIC.exe
* intl.dll
* libcurl.dll
* Log.dll

Are there others that are necessary?

Please copy all DLL files to your application's folder.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)