Skip to main content
Participant
Apr 27, 2023 5:41 PM UTC
Question

Word to PDF Fails in Blazor Server Application

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

Participant
Dec 28, 2023 3:08 PM UTC

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.

Translate