# PDF.js in Blazor Wasm Hosted app running on Azure

**URL:** <https://pdfjs.community/t/pdf-js-in-blazor-wasm-hosted-app-running-on-azure/2462>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [March 16, 2023, 7:58pm UTC](https://pdfjs.community/t/pdf-js-in-blazor-wasm-hosted-app-running-on-azure/2462 "2023-03-16T19:58:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajmettai](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rajmettai](https://pdfjs.community/u/rajmettai)\
**Post date:** [March 16, 2023, 7:58pm UTC](https://pdfjs.community/t/pdf-js-in-blazor-wasm-hosted-app-running-on-azure/2462/1 "2023-03-16T19:58:58Z")

</div>

**Which product are you using?**

**PDF.js Express Version**

**Detailed description of issue**  
Hello,  
I am using PDF.js in Blazor Wasm app, the plugin works fine in rendering the demo page in localhost but when I publish the code to Azure then the plugin is not working. Anything specific needed to be done in setup when installing the Blazor app in Azure ?

**Expected behaviour**  
Show demo.pdf page with plug-in with options.

**Does your issue happen with every document, or just one?**  
All docs

**Link to document**  
my working link is localhost, so can’t provide it, but it is demo pdf that comes with product

**Code snippet**  
used below link to setup

> **[Integrate JavaScript PDF Library & Blazor | PDF.js Express Viewer SDK](https://pdfjs.express/documentation/get-started-viewer/blazor/exist-project#setup)**

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [March 16, 2023, 8:54pm UTC](https://pdfjs.community/t/pdf-js-in-blazor-wasm-hosted-app-running-on-azure/2462/2 "2023-03-16T20:54:32Z")

</div>

Hello rajmettai,

Can you provide any errors in the console or network traffic?

Best regards,  
Tyler Gordon

---

<div class="post-metadata">

**Author:** ![rajmettai](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rajmettai](https://pdfjs.community/u/rajmettai)\
**Post date:** [March 16, 2023, 9:33pm UTC](https://pdfjs.community/t/pdf-js-in-blazor-wasm-hosted-app-running-on-azure/2462/3 "2023-03-16T21:33:15Z")

</div>

Here is the error.

Unexpected server response (500) while retrieving PDF “host/files/demo-annotated.pdf”

but I have checked the files folder under wwwroot has that pdf and not sure why pdf js can’t find it.

thanks  
Raj

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [March 21, 2023, 3:31pm UTC](https://pdfjs.community/t/pdf-js-in-blazor-wasm-hosted-app-running-on-azure/2462/4 "2023-03-21T15:31:43Z")

</div>

Hello rajmettai,

If you access the URL its trying to retrieve, do you get the PDF file?

Best regards,  
Tyler
