Skip to main content
Participant
April 27, 2023
Question

Word to PDF Fails in Blazor Server Application

  • April 27, 2023
  • 1 reply
  • 717 views

After roughly 20 hours of testing and refactoring I think I have proven that Word To Pdf does not work with Blazor. I am running .net 7 Blazor server.

I had not tried the Word To Pdf function, but for months I have had the Excel To Pdf conversion running in a production environment with no issues.

Now I need to convert Word documents and it fails.

This call:

FileRef result = createPdfOperation.Execute(exc);

goes out to lunch and never returns.

Things I have tried:

1. UnitTested : success
2. Create a bare blazor server app and run this call : fails
3. Create a separate dll to run this call (from the bare test app): fails
4. Execute on new thread: fails
5. Both Static and not Static class calls fail
6. Stream or reading from file makes no difference

 

This topic has been closed for replies.

1 reply

Participant
December 28, 2023

I too have the same problem.  If I run the application locally it will work but as soon as I deploy to one of our servers on a domain it fails.  I tried moving it to a controller and I receive errors.   I am using the examples straight from Github but no dice so far.