question

Leilivazietan-9959 avatar image
1 Vote"
Leilivazietan-9959 asked Leilivazietan-9959 commented

can not open pdf file in sharepoint 2013

hi

when i want to open pdf file in sharepoint 2013 i have this error :
HTTP Error 503. The service is unavailable.

I tested with all browsers . also I only have a problem with the PDF file (word , excel is ok).. I can download it but I can not open it when I click on it



pls hepl me
It's very important to me

office-sharepoint-online
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Leilivazietan-9959 ,

Can you tell me if you have configured OOS in your SharePoint 2013?

If you can, please attach screenshots. This can better let us understand and solve the problem.





0 Votes 0 ·

I had no problem. I suddenly encountered this error for PDF file


Service Unavailable

HTTP Error 503. The service is unavailable.


0 Votes 0 ·

I had no problem. I suddenly encountered this error for PDF file
84336-2021-04-05-li-2.jpg


0 Votes 0 ·
2021-04-05-li-2.jpg (97.8 KiB)
EchoDu-MSFT avatar image
0 Votes"
EchoDu-MSFT answered EchoDu-MSFT edited

Hi @Leilivazietan-9959 ,

Thanks for your reply.

Please following steps:

1.Start Internet Information Services (IIS) Manager

2.Expand the server node

3.Click on Application Pools

4.The central pane is now populated with a list of application pools with a column for the 'status'. Identify any SharePoint application pools that are not running (that should be).

84393-1.png

5.Select the 'stopped' application pool and click the Start button from the Actions panel.

84359-2.png

Thanks,
Echo Du
===================== Updated Answer ===================

Hi @Leilivazietan-9959 ,

I re-studied your problem, as far as I understand you can only download PDF files and cannot view PDF files directly in the browser.

Please perform the following troubleshooting:

1.Check if the PDF is added to the web application’s trusted MIME Type List.

Run the below command as an admin:

 Add-PSSnapin Microsoft.Sharepoint.Powershell
 $webApplication = Get-SPWebApplication("web_application_url")
 $webApplication.AllowedInlineDownloadedMimeTypes

84687-1.png

If application/pdf is not present in the list, it means that PDF is not added to trusted MIME types of the web application. Let’s add application/pdf to the trusted MIME Types List by running the below command.

 $webApplication = Get-SPWebApplication("web_application_url")
 $webApplication.AllowedInlineDownloadedMimeTypes.Add("application/pdf")
 $webApplication.Update()


2.Update the settings in the Web Application level

Open SharePoint Central Administration >> Manage web applications >> select the web application url and click on General Settings Drop-down menu, select General Settings >>
from General Settings page, change the browser handling option from ‘Strict’ to ‘Permissive’.

3.Update the settings in the Library level

Open Document Library >> Library Settings >> Advanced settings >> select the radio button "Open in the browser".

84578-4.png

4.Check all application pools are started

84655-5.png

5.View SharePoint ULS logs to get detailed information

Note: In IE, you need click on Open. In Chrome, you can click PDF files directly to view it.

84648-6.png

Thanks,
Echo Du
===============
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.




1.png (29.0 KiB)
2.png (32.9 KiB)
1.png (40.8 KiB)
4.png (11.3 KiB)
5.png (44.5 KiB)
6.png (95.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

hi

Thanks for your help, but everything on the site works properly. I only encounter this error to open the PDF file (PDF files uploaded to the site give this error when I open it, but they can be downloaded without any problems

i checked the application pool ans was started

pls help me

0 Votes 0 ·
Leilivazietan-9959 avatar image
0 Votes"
Leilivazietan-9959 answered Leilivazietan-9959 commented

hi

Thanks for your help, but everything on the site works properly. I only encounter this error to open the PDF file (PDF files uploaded to the site give this error when I open it, but they can be downloaded without any problems

i checked the application pool ans was started

pls help me

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Leilivazietan-9959 ,

Thanks for your reply.

I have updated answer under initial My Answer. Hope this can help you to solve issue.

Thanks,
Echo Du

0 Votes 0 ·

Thanks for your attention and good solution..the problem was solved

0 Votes 0 ·