Error opening PDF files from search results webpart on anonymous SharePoint 2013SP1 site with IE

Clicking search results, in the strict sense pdf files, using IE on an anonymous SharePint 2013SP1 site, I received the error: There was an error opening this document. The filename, directory name, or volume label syntax is incorrect.
I would like to solve this problem on the server side.
Starting position:
SharePoint 2013 SP1
Web Application:
based on template 'Publishing Portal'
Anonymous Access enabled
Claims based authentication: Integrated Windows Authentication NTLM
Client Integration disabled
Site Collection:
Anonymous Access enabled for 'Entire Web site' => group 'Anonymous Users' was created
added permission to open items: $Web.AnonymousPermMask64 = "ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration, OpenItems"
Client side solutions:
c1) Open Link with “Open in new tab” or “Open in new window” => OK
c2) Disable IE Add-on “Adobe Acrobat Sharepoint OpenDocuments Component” => OK
c3) Set bDisableSharePointFeatures to 1 in regetit => OK
Server side solutions:
S1) Turn off Client Integration => didn't work, still same error
S2) Modify DOCICON.XML => didn't work, still same error
I gave these two options a chance:
first: <Mapping Key="pdf" Value="icpdf.png" OpenControl="SharePoint.OpenDocuments"/>
then: <Mapping Key="pdf" Value="icpdf.png" OpenControl="AdobeAcrobat.OpenDocuments"/>
I modified DOCICON.XML on both hives 14 and 15.
Remarks:
- After changingparameters I allways did an IISreset.
- As far as I understood I can only change bDisableSharePointFeatures on Client Side.
Any help, suggestion, idea wellcome!
Thanks!

Hi folks, here's the reason for my problem. I used the oob search result web part. The result items (PDF items) are rendered by the template Item_PDF.html/Item_PDF.js. This template holds a code snippet that assigns a certain OpenControl to the PDF item - that's hard coded. So, no matter what you configure in DOCICON.XML, the PDF item will be opened with the control "PdfFile.OpenDocuments". Solution is e.g. just to leave the OpenControl blank.   
template:
/_catalogs/masterpage/Display Templates/Search/Item_PDF.html
/_catalogs/masterpage/Display Templates/Search/Item_PDF.js
code before:
ctx.CurrentItem.csr_OpenControl = "PdfFile.OpenDocuments";
code after:
ctx.CurrentItem.csr_OpenControl = "";
Enjoy
Harry

Similar Messages

  • Unable to open pdf files from search results page in Office 365 site

    Hi folks,
    I am getting this issue since a while now. In office 365 site, if I click on links that points to pdf files in search results page, I get this -
    “The filename, directory name, or volume label syntax is incorrect”. 
    These pdf files are stored in the same site and I am able to open them in adobe reader directly from the document library but not from the search results page.
    I have already gone this post and doesn't help me -
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/545efcc6-b748-4df8-aee0-7f57f778ad1e/sharepoint-2010-opening-pdfs-in-search-results-the-filename-directory-name-or-volume-label?forum=sharepointgeneralprevious
    Any help or pointer is much appreciated.
    Thanks,
    Manvir
    Manvir

    Hi,
    Besides pamma has suggested, here are similar issues, you can take a look at:
    http://unsolicitedbutoffered.blogspot.com/2014/01/quick-fix-volume-syntax-error-when.html
    http://crowdsupport.telstra.com.au/t5/T-Suite-Applications/There-was-an-error-opening-this-document-The-filename-directory/td-p/197425
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Error opening PDF files on anonymous SharePoint 2013SP1 site with IE

    Clicking search results, in the strict sense pdf files, using IE on an anonymous SharePint 2013SP1 site, I received the error:
    There was an error opening this document. The filename, directory name, or volume label syntax is incorrect.
    I would like to solve this problem on the server side.
    Starting position:
    - SharePoint 2013 SP1
    - Web Application:
      - based on template 'Publishing Portal'
      - Anonymous Access enabled
      - Claims based authentication: Integrated Windows Authentication NTLM
      - Client Integration disabled
    - Site Collection:
      - Anonymous Access enabled for 'Entire Web site' => group 'Anonymous Users' was created
      - added permission to open items: $Web.AnonymousPermMask64 = "ViewListItems, ViewVersions, ViewFormPages, Open, ViewPages, UseClientIntegration, OpenItems"
      - SC-Feature 'Limited-access user permission lockdown mode' disabled
    Client side solutions:
    c1) Open Link with “Open in new tab” or “Open in new window” => OK
    c2) Disable IE Add-on “Adobe Acrobat Sharepoint OpenDocuments Component” => OK
    c3) Set bDisableSharePointFeatures to 1 in regetit => OK
    Server side solutions:
    S1) Turn off Client Integration => didn't work, still same error
    S2) Modify DOCICON.XML => didn't work, still same error
    I gave these two options a chance:
    first: <Mapping Key="pdf" Value="icpdf.png" OpenControl="SharePoint.OpenDocuments"/>
    then: <Mapping Key="pdf" Value="icpdf.png" OpenControl="AdobeAcrobat.OpenDocuments"/>
    I modified DOCICON.XML on both hives 14 and 15.
    Remarks:
    - After changingparameters I allways did an IISreset.
    - As far as I understood I can only change bDisableSharePointFeatures on Client Side.
    Any help, suggestion, idea wellcome!
    Thanks!

    Hi Harry,
    From your description, I understand you encountered the issue when open PDF documents from search result page.
    Here is a similar thread, please try the piece of code in the page layout for the search results page from Mitch B_83:
    https://social.technet.microsoft.com/Forums/appvirtualization/en-US/545efcc6-b748-4df8-aee0-7f57f778ad1e/sharepoint-2010-opening-pdfs-in-search-results-the-filename-directory-name-or-volume-label?forum=sharepointgeneralprevious
    You could refer to this for search result page layout: Site settings > Web Designer Galleries > Master pages and page layouts > SearchResults.apsx .
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Rh9:Unable to view PDF files from search results in Firefox

    Is this a Firefox plug-in issue, rather than a Robohelp issue?
    Background info:
    Using Rh9
    Firefox 23.0 (latest version)
    Works successfully in Chrome (latest version) and Microsoft IE 8 and IE 9
    Using Firefox, I am able to view the test PDF file from within a topic, via a hyperlink. Unable to view the test PDF when it appears within the search results.
    Failure behavior
    Information message appears at the top of the screen, indicating that "This PDF document might not be displayed correctly."
    A button appears: "Open with Different Viewer"
    In the main frame, the page is blank except for the Adobe Viewer controls: i.e., zoom, page navigation, download, print, ....
    Any ideas?
    Thank you,
    -bruce.

    I think it is an Acrobat issue. I have seen it and with PDFs not linked to Fm or Rh. Sometimes you can see the issue and sometimes you don't. I also have Nitro PDF and that displays the PDF without problems.
    If it is a PDF you create, I guess you could try some different settings or use something else to create it to see if the problem goes away.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Strange Behaviour when opening pdf files using search results

    Hi
    I have observed inconsistencies between opening a pdf file when in the document library itself (it opens in a browser - good).
    However, when I click on a the same file in my search results having used Search and the Search Centre it opens in the adobe reader.  I would rather it opened in a browser rather than the adobe reader.
    The only difference I can see is that when opening from a document library the url ends in ".pdf", whereas when opening from the search results the url ends in ".pdf#search=<search string>.
    Anybody any ideas ?
    Regards
    Nigel
    Nigel Price NJPEnterprises

    Hi Nigel,
    According to your description, my understanding is that you want to open pdf from search result in browser.
    Firstly , permissive Browser File Handing in Central Administration, you can refer to the link:
    http://social.technet.microsoft.com/wiki/contents/articles/18858.sharepoint-2013-how-to-view-pdf-files-in-browsers.aspx
    Whether you are using OWA for SharePoint 2013. If Office Web Apps is not used for Search results of PDFs, the opening of PDFs in the browser passes the search terms into Adobe. So, if you don’t use OWA, please configure it for SharePoint 2013.
    More information, please refer to:
    http://stevemannspath.blogspot.com/2013/04/sharepoint-2013-pdf-support-and.html
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Sorry, something went wrong - Open Office File from Search Results Page with Office Web Apps

    Hi,
    I'm getting "Sorry, something went wrong" error when I'm trying to open any office document from inside Search Results Page with Office Web Apps, the same error is appearing in the document preview as well.
    The error in SharePoint logs says that the file cannot be found.
    Please note that this error is coming only when the "Filename" of the document is not written in English (in my case its written with Arabic characters).
    If I try to open it from the document library, its opening properly with no errors.
    The only difference between two URLs (document URL in Search Results and in Document Library) is the value for "sourcedoc" attribute;
    In the case of Search Results page, the filename in "sourcedoc" attribute is kept as is with Arabic characters.
    While in the Document Library, the filename in "sourcedoc" attribute is converted into different characters (something like: "B9%D9%85%D9%8").
    Anybody have an idea on how to overcome this issue, implement a workaround or modify the "sourcedoc" behavior?
    Thanks in Advance.
    Hamza AlSughier

    Dear Wendy,
    Thanks for your efforts, I already tried your last suggestion before, but this didn't solve my problem.
    Actually my end users are accessing this portal using ADFS and HTTPS.
    Finally I got this solved, I have done below to get my overall solution working perfectly:
    - First I have configured Windows Authentication and ADFS Authentication on the same zone which is the default zone.
    - The issue when opening office documents with Arabic file name has disappeared as a result of first change.
    - Then I have faced an issue where we are not able to crawl content under Default zone, however we have to do so, after too many efforts, I found that its related to the Load-balancer/proxy, I have made the crawler server
    to crawl himself (http://CrawlServerName:PortNumber).
    - Also a change on Alternate Access Mapping was needed, I have set one of the extended zones (which is running Windows Authentication only) as Internal URL for the Default Zone, and this is was the URL I used for Crawling.
    I have configured Server Name Mappings to make sure we got proper URLs in Search Results.
    - Then we faced another issue, which is Authentication selection on login page (How to bypass this page, and authenticate using ADFS auto), I used this solution (Set Custom Sign In Page):
    http://0ut0ftheb0x.wordpress.com/2014/01/04/skip-the-authentication-selection-page-at-_logindefault-aspx-in-a-mixed-authentication-environment/.
    - I faced one more issue as a result of above workaround; Sign Out functionality wasn't working well; users get logged in automatically whenever I click on Sign Out. I solved this by modifying the "Sign Out" Control under _layouts;
    I made it to redirect users to ADFS Sign Out Page instead of SharePoint Sign Out Page (I know its not recommended, but I don't have any other option).
    Hamza AlSughier

  • RH11 404 - Page Not Found when linking to PDF file from search results using IE9 and IE10

    I'm using RH11 (11.0.3.268) and I've included a number of PDF files as baggage files. The hyperlinks on the pages work fine and display the PDF files in a separate window, as expected. However, when searching for these same PDF files using the Search tab, I'm getting a 404 error with the filename. The description on the error shows the filename and says the "the requested resource is not available." This is occurring using IE9 and IE10. And, it only happens within the application, which packages the WebHelp with a war file.
    I searched the forum and found where someone was having the same problem on Firefox, but was fine on IE. But, as mentioned, I'm finding it on IE.
    Thoughts on how to fix this error?

    Is the WAR file extracted at the point when the search is done? If not, I would expect it to fail.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Error when opening PDF files from SAP.

    Hi Gurus
    I have posted this question in ABAP Development section also. Please read the below text.
    We are having a strange intermittent problem with Adobe Reader. When we try to open PDF files from SAP Frontend we get an error pop-up. The pop-up does not have any text. The title of the pop-up has "Adobe Reader". There is a blue question mark and an OK button.
    This issue occurs few times a day in Windows Vista.
    This issue does not occur in Windows XP.
    Since past few weeks, we have been trying to find some error/warning/atleast some text in log files of SAP, OS, Adobe Reader, Registry entries, Event Viewer. So far, we have not found anything.
    SAP is not able to help as this issue occurs intermittently and said when they tried, the issue did not occur. They made two attempts and in each attempt they tried 10 times to reproduce the issue. This issue occurs intermittently.
    Environment
    SAP R/3 4.7 EE SAP_Basis 620 Support Package 61
    Windows Vista Enterprise
    Adobe Reader 9.0 and Adobe Reader 9.1 (tried with both versions)
    SAPGUI 710 Patch 12 (latest patch). It also occured in Patch 11.
    Please suggest
    Thank you
    Pavan

    Now I got to capture the screenshot, however not able to attach/upload here but it says:
    'Reading Untagged Documents'
    lets say i tried to open 6 page document then it said:
    'This 6-page document is untagged and must be prepared for reading. While the document is being
    analyzed, your assistive technology will not be able to interact with this application. '
    then it asked for Reading options
    then a checkbox for to confirm 'Always use the settings from the Reading Preferences (Do not show this dialog again)
    then 'OK/START' and 'cancel' buttons
    It seems, this is the problem with Adobe w.r.t Vista.
    thanks
    Bhudev

  • Can't open PDF file from iBook on MAC. error "The application "ACDSee Pro" can't be opened."

    Can't open PDF file from iBook on MAC. error "The application “ACDSee Pro” can’t be opened."

    Hi arewers,
    Do you have Adobe Reader installed, by any chance? If so, are you aware if it was the PPC or Intel version which you installed? In any case, for the time being, have a quick look in 'HD/Library/Internet Plug-ins/' using Finder and see if there's an Adobe plugin lying around. If there is, try moving it out of the folder and restarting Safari.
    Yang

  • Error trying to open pdf file from Internet after installing acrobat prof. 7

    I am experiencing issues when I try to open pdf file  from Websites after having installed Acrobat Professional edition 7
    Can somebody suggest a remedy?
    Thanks
    Michele Rossitto
    [email protected]

    Thanks for your reply. The only way I can open the pdf file is to save it locally. I don't understand why can't I just click and open the pdf file without saving them
    Regards
    M

  • I cannot open pdf files from one supplier when using Adobe Reader but I can using another Viewer

    I cannot open pdf files from one supplier when using Adobe Reader but I can open it if using Google PDF viewer or another viewer. The Adobe reader gives the error "There was an error opening this document. The file is damaged and could not be repaired" when I try to open the file. The version of Adobe Reader is 10.1.7, however I have tried other versions and they all fail the same way.  I have tested on a number of different PC's in different networks and all fail using Adobe Reader but work using alternate viewer. Also the PC's will open a PDF from any other source.

    Newer Reader versions are more strict than older versions (and other PDF viewers).  If certain minimum requirements are not met, Reader will tell you that the PDF is damaged.  This can happen when a document was created with software that does not adhere to PDF standards, or when the file was damaged during a download or email transmission.
    You should contact the creator of these PDFs.

  • Unable to open PDF files from website

    hi friends,
    I am using iPad Air and iOS 7.1.2. When I tried to open PDF files from below site in safari,
    http://www.iar.com/Products/IAR-visualSTATE/User-guides/
    ftp://ftp.iar.se/WWWfiles/vs/QuickStartTutorial.pdf
    it shows error as "Safari can not open the page because it could not load any data".
    KIshore.

    Safari seems to have trouble with FTP sites.  You may need another Browser to open these PDFs.  Opera seems to Work.
    https://itunes.apple.com/en/app/opera-mini-web-browser/id363729560?mt=8

  • Unable to open PDF files from Fileserver Content Source using Browser

    The situation is this :
    A content source was created to search a fileserver
    Search facility finds the files using the browser
    Able to open MS Office files from the fileserver
    Able to open PDF files that are in the Sharepoint Portal
    Unable to open PDF files from the Fileserver
    Currently using Sharepoint 2010. PDF Filter is installed and configured on the Sharepoint Server
    Your assistance is always greatly appreciated.
    Have a great day.
    NRH

    Hello Nate,
    I have the necessary access to the folder.
    The content source addresses are
    \\172.25.136.53\KDrive\Home\Company\DAILYREP
    \\172.25.136.53\KDrive\Home\Company\TRINMAR
    \\172.25.136.53\KDrive\Process Safety Management
    NRH

  • Problems opening PDF files from Websites

    I just had the contents of my (dying) ibook transferred onto my emac. The tech created a new user/desktop on the emac. Now, when I try to open PDF files from a website, I get a window saying this:
    "Downloading - users/myname/desktop/xxxxx.pdf could not be saved because an unknown error occurred. Try saving to a different location."
    Points to note: 1) The "xxxxx.pdf" part of the above message changes each time I try to open a pdf document, even the same one, and it does not show the real name of the document (e.g. CollegeApplication.pdf)
    2) this never happened on my laptop;
    3) the settings are set in Firefox to download pdf's to my desktop;
    4) I have the latest version of Adobe Acrobat, which I already tried opening before downloading.
    Any ideas? Thank you!

    Will the new account save to a different location?
    Is the "myname" that appears in the error message that of the new account or of the old one?
    Following up on Frank's tip about file permissions, is it possible that the GID of the new user account conflicts with the existing? The existing admin user was likely GID = 501 on both Macs, and depending on how the laptop's data was transferred, the internal ownership of the transferred files still points to 502 rather than say 502.
    have you tried the old standby of running Disk Utility's Repair Permissions on the hard drive?

  • Client can't open PDF files from websever

    Hi all,
    I am currently having problems with a client who is using Adobe Reader 6.0 with Internet Explorer 6. He says that he can open pdf files from anywhere on the web, however he cannot generate any from my server. He gets an error: "File cannot be opened". I have tried replicating the problem on a local machine with both versions of the aforementioned programs and I am able to generate the files. I have tried disabling and enabling "Open in browser". I have tried saving to my harddrive and opening straight from the pop-up. I am not sure what else to try. Any assistance is appreciated.

    Edit: The error message he reported to me was incorrect. He is actually getting "file cannot be opened". I have edited my original post with this update. Any advice out there?

Maybe you are looking for

  • 7 day view of Calendar Events on the Slide to Unlock Screen???

    Does anyone agree that an option to view Calendar of Events on the Slide to Unlock Screen would be a quick and easy way to review your next events and appointments? Message was edited by: page79 Message was edited by: page79

  • SAP BPC 7.5 to BPC 10.0 upgrade, problem CPMBPC_800

    Hello, We are currently upgrading BPC 7.5 to BPC 10.0. We want to do an upgrade of our existing BPC 7.5, and not an 'clean' installation of BPC 10.0. Right now we are having some issues with the´basis part of the upgrade. We have installed the POASBC

  • Replacement of Function Module 'www_get_mime_object' in ECC 6.0

    HI, I need an exact replacement for the Function Module 'www_get_mime_object' in ECC 6.0. Please help it out. Regards, Ashok.

  • Context Mapping and data binding

    Hi, Please explain about the context mapping and data dinding and also differences Thank's & Regard's. Sri

  • Sub Screen

    Hi Gurus,    Am studying screen exits scenario. When am studying this scenario am getting a doubt  that when creating the screen with transaction se80 and develop the screen in a particular function group. Normally function group is used for function