PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Sep 01, 2024 3:23 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: PDF Sharp in Parallels
PostPosted: Fri Aug 23, 2024 12:36 pm 
Offline

Joined: Fri Aug 23, 2024 12:27 pm
Posts: 1
I have created a Blazor ASP.NET 8 Core Web Assembly application. It is also wrapped in an Electron Layer so it can be used as a desktop application. I am using PDFSharp to generate and print to a PDF document and I am able to see results on my machine which is natively running Windows 11.

I have a beta tester running the same application on Parallels on a Mac. When they go to print nothing happens. I had them go into the Event Viewer to see if it is returning an error. It appears to not even be able to determine an HTTPS port to open. We tried seeing if CHATGPT might be able to help with trouble shooting and these were the ideas it gave us.

Check HTTPS Configuration in the Application

HTTPS Configuration: Ensure that the application is properly configured to use HTTPS. The middleware is attempting to redirect to an HTTPS port, but it can’t find one.
• Application Settings: Check the application’s configuration files (e.g., appsettings.json or launchSettings.json in ASP.NET Core) to ensure the httpsPort is properly set. You might see something like "httpsPort": 443" or "sslPort": 5001".

I'm not sure if this is something on the PDFSharp side of things or not.

2. Verify SSL Certificate Availability

SSL Certificates: The application might be configured to use an SSL certificate that’s not available in the virtual machine. Ensure that the necessary SSL certificates are installed and accessible.
• Development Certificates: If this is a development environment, try to ensure the development certificate is properly installed and trusted. You can do this by running dotnet dev-certs https --trust in the command line.

I'm not sure if this is something on the PDFSharp side of things or not.

Check for ARM Compatibility Issues

• ARM Compatibility: Some .NET libraries or features might have compatibility issues on ARM architecture. Check if PDFSharp or any related dependencies have known issues with ARM, and if so, consider finding ARM-compatible alternatives or workarounds.

Could this be worth doing?

Event Viewer: The error in the Event Viewer points specifically to the HttpsRedirectionMiddleware of ASP.NET Core, which is responsible for redirecting HTTP requests to HTTPS. The failure to determine the HTTPS port suggests a misconfiguration or missing dependency.

What dependency could i be missing?

Edit: I guess the first question I should be asking, anyone else try running PDFSharp on parallels? I have also ran into an issue where if PDFSharp code runs into a bad path, the whole process stops without error. It's as if it didn't print, but there was an error where the path was wrong. If a person runs the application on a native computer and it works and then runs on Parallel where it doesn't, could there be a path issue?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 116 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