I working on a pdf generator with NRec PdfGenerator and it works fine at the start when I working with local, once I package up and deploy to server it fail and show the error message
Cannot generate PDF: (exit code: -1073741521) ---> NReco.PdfGenerator.WkHtmlToPdfException: (exit code: -1073741521)
I not sure whats causing it and I believe is not related to the code itself, and I could find any related post or article that about the exit code shown.
Is there anyway to fix this error?
Any advice to this will be appreciated. Thanks.
As Vitaliy Fedorchenko commented, the problem, in the compatible operating systems, can be solved by installing the missing required Universal C runtime libs ( https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows ).
Related
I download the source only tutorial here. When I run it with connect my Canon 70D, I got the error below.
What is the point I missed?
The Error:
The error occurs on this line:
And here is how the folder which includes EXE file looks like:
I fixed this problem by letting the camera know there's enough disk space on the host.
Adding the line
CameraHandler.SetCapacity();
before
CameraHandler.TakePhoto();
should do the trick.
Error 0x8D07 stands for EDS_ERR_TAKE_PICTURE_CARD_NG
I'm not a 100% sure what it means but it's some sort of write error. To resolve this, format the card, switch off the camera and put out the battery for a few seconds.
This should fix the problem.
First question on here and I am feeling pretty stumped, I've searched around but couldn't find something that I could apply to my situations, any help or direction to a prior question would be appreciated.
I'm receiving an error when trying to create some new files from my form. I'm following a guide at XNA Game Programming Academy (xnagpa_net/xna4rpg_php), I'm up to step 14 but I believe this started happening earlier and I hadn't noticed it yet.
Screenshot of Error
Please have a look at the above error and give me any tips.
My code for RpgEditor.FormMain.cs is here, it says something about line 128 which relates to;
if (Directory.Exists(gamePath))
throw new Exception("Selected directory already exists.");
I'm not sure why though, because I'm creating a brand new folder/directory when I am attempting to save the data.
If it helps, the subdirectories are being created by the process but I recieve that error and no files inside.
edit: I've downloaded the example project on his site and it's working fine with that, so I don't believe it's an issue with my system configuration.. must be a project setting or line of code somewhere..
To fix this I had to change the configuration settings.
It was set to AnyCPU but I had to change to x86.
The setting wasn't there originally, I had to create new and copy settings from AnyCPU.
Why this works I don't know, but it does :)
i downloaded this source code , i tried to run it but when i click start recording it crash ! , i wonder what make it crash and what to do to avoid any further error in this code?
DesktopEncoder.PrepareToEncode(true);
Instead of blindly running other peoples code, please read their whole article:
Prerequisites:
In order to use this application, we require Media Player Encoder 9.
He even gives a download link.
Edit:
The error code says:
0xC00D0072
NS_E_NO_SPECIFIED_DEVICE
"No specified device driver is present."
It seems you are missing something important.
I follow an example from SO answer how to run QTP script from C#. However during Application object creation I get UnauthorizedAccessException. Any clues what might be wrong? Here is a screenshot of the exception and the source code.
If you're on Windows 7 or Vista, have a go at starting your development area as Administrator, chances are you're getting an Access Violation.
Quoting the OP of the original post you refer to:
This code did work. However, for QTP version 10.0, I had to change
using QTObjectModelLib; to using QuickTest;.
Might help if you are also using version 10.0.
I am coding a c# command line application (WIN7, 64bit) that should write many lines to the command line.
I cooked the problem down to the following code:
int lineno;
for (lineno = 0; lineno < 100000; lineno++) {
Console.WriteLine(">" + lineno);
}
I can't understand why the apllication dies after 39404 lines:
...
>39401
>39402
>39403
>39404
"Console Application has stopped working."
Please let me know if you have any ideas what went wrong here.
Thank you & best regards, Dirk.
I doubt your question. Because my program works fine and shows till 99999 under MS Visual Studio 2008.
EDIT : After Dirk commented on Davido's answer, with Console.WriteLine(">>>" + lineno); the output prints many 36251 times. But that's incorrect. With ">>>" also, program accurately works.
Here's image for same.
I couldn't reproduce the problem--it seems the problem is environment.
Does it always fail at 39404? Does it fail after a certain period of time? How do you launch it? Have you tried launching it from command line? Are you sure this is all code that you have? Have you tried building it with different configurations?
Answering these questions, you might find what causes the problem.
Edit: the oddest thing I see about it is this message:
"Console Application has stopped working."
It's obviously not system or framework message.
Please post complete code because it looks like you're doing something wrong.
Works fine on my system. (Windows 7, VS 2010).
What Operating System and Framework version are you using?
Try changing your application target to compile for x86. Sometimes this solves strange issues I have with different projects.
Edit:
Dirk, try making a NEW project and putting your code in a blank console project. See if that changes how it outputs. I suspect that doing this will change the number of lines you are able to write. If so, then there is a problem with some of your other code that you haven't posted. Just something you might want to consider.