PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 11:55 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Tue Aug 29, 2017 7:59 pm 
Offline

Joined: Tue Aug 29, 2017 7:46 pm
Posts: 3
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?


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 30, 2017 5:59 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
joelbrabant wrote:
Can someone help please?
A link to get started:
viewtopic.php?f=2&t=832

Using the WPF build?

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 30, 2017 11:41 am 
Offline

Joined: Tue Aug 29, 2017 7:46 pm
Posts: 3
I use the PdfSharp GDI only. NuGet v1.32.3057. VS2017


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 30, 2017 1:36 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 30, 2017 6:51 pm 
Offline

Joined: Tue Aug 29, 2017 7:46 pm
Posts: 3
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?


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 31, 2017 7:56 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 130 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group