PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

PDFSharp not running on Windows Server 2008R2
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3651
Page 1 of 1

Author:  joelbrabant [ Tue Aug 29, 2017 7:59 pm ]
Post subject:  PDFSharp not running on Windows Server 2008R2

I run PDFSharp just fine on my dev Windows 10 computer but when I run the app on a Windows Server 2008 R2 x6, it fails at

document = new PdfDocument();

but I do not get any error or exception at all (I know because I have put a log before and after that line).
Server has framework 2.0 installed. My app is running under .net 4.6.2
Files copied are pdfsharp.dll and pdfsharp.charting.dll

Can someone help please?

Author:  TH-Soft [ Wed Aug 30, 2017 5:59 am ]
Post subject:  Re: PDFSharp not running on Windows Server 2008R2

joelbrabant wrote:
Can someone help please?
A link to get started:
viewtopic.php?f=2&t=832

Using the WPF build?

Author:  joelbrabant [ Wed Aug 30, 2017 11:41 am ]
Post subject:  Re: PDFSharp not running on Windows Server 2008R2

I use the PdfSharp GDI only. NuGet v1.32.3057. VS2017

Author:  Thomas Hoevel [ Wed Aug 30, 2017 1:36 pm ]
Post subject:  Re: PDFSharp not running on Windows Server 2008R2

With version 1.50 there were some improvements with respect to running under Medium Trust. This could make a difference.
Using a different user account could also make a difference.

When using the GDI build, make sure GDI+ is available on the server. This could be the problem here.

I'd try the WPF build 1.50 beta 4.

If you only want to make one change at a time, either try the GDI build 1.50 beta 4 or try the WPF build 1.32.

Author:  joelbrabant [ Wed Aug 30, 2017 6:51 pm ]
Post subject:  Re: PDFSharp not running on Windows Server 2008R2

I have tried the beta and the Wpf but still not working.
It works fine on another Windows Server 2008R2 that I have.
Do you have an idea what/where should I look to see what is different on those servers?

Author:  Thomas Hoevel [ Thu Aug 31, 2017 7:56 am ]
Post subject:  Re: PDFSharp not running on Windows Server 2008R2

Are you using .NET under IIS?

Maybe you get more information when you try a console application in an Admin Command Prompt on the server.
If that works, then check the permissions/privileges of your application pool.
If that does not work: you can take the PDFsharp source code and add Console.WriteLine to find out where it fails.

Without exception and without Event Log entries (just assuming) finding the cause will be a bit difficult.
Finding the line in source code where execution ends will be an important clue.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/