Open SharePoint site in IFrame

Good Morning Everbody ,
i have aspx page that have Iframe , and it want to view document from SharePoint on that IFrame , but i am getting the below error : 
<iframe name="preview" src ="http://spsrv2013/attach/518071312484955.jpg" width="100%" height="700"></iframe>
is there any way /workaround to view the SharePoint documents in IFrame.
Thanks,

Hi Hisham,
It seems that the
X-FRAME-OPTIONS: SAMEORIGIN cannot be overwritten by
X-FRAME-OPTIONS: ALLOW  (similar to this
post) from IIS manager for SharePoint 2013 site (in your case, may http://spsrv2013), this message will still be displayed when I use iframe to display a jpg file or a page.
But if you want to use iframe to display one or some SharePoint aspx pages (jpg file won't work), you can use the <WebPartPages:AllowFraming runat="server" /> in your aspx page or inherited master page per the following articles, it should work.
http://styledpoint.com/blog/including-sharepoint-2013-in-an-iframe-without-x-frame-options-error/http://blogs.msdn.com/b/officeapps/archive/2012/12/12/iframing-sharepoint-hosted-pages-in-apps.aspx
Thanks
Daniel Yang
TechNet Community Support

Similar Messages

  • Can't open sharepoint site with sharepoint designer 2010

    Hi there,
    We've installed SP Foundation + SP Server 2010 and set up some sites.
    when we tried to open it with SP Designer 2010, it fails and gave us some errors.
    opening SPD through site actions :
    unable to open website. possible causes:
    1. the web server may not have sharepoint server installed
    2. the web server may be temporarily out of service
    3. if you are connecting through a proxy server, the proxy settings may be incorrect
    4. an error may have occured in the web server
    opening sharepoint site through SPD:
    the folder 'http://mysp.domain.com/site/default.aspx' isn't accessible. the folder may be located in an unavailable location, protected with a password, or the filename contains a / or \.
    the thing is ... we have no problem with sharepoint designer 2007.
    any idea?

    Hi p.andrew,
    If you want to open the site use SPD, you should enable the Client Integration for the web application at first.
    Here are the steps:
    1.      
    Go to this location : “Central administration” > “Security” > “Specify authentication provider”;
    2.      
    Select the Web Application which you want to edit use SPD (SharePoint Designer 2010), and click the “Default” below the ‘Zone’;
    3.      
    Select the “Yes” radio button
     in the Client Integration section, and click the ‘Save’ Button;
    4.      
    Close and re-Open the IE;
    5.      
    Try to Open the site using SPD.
    More information about this:
    http://snahta.blogspot.com/2009/01/folder-may-be-located-in-unavailable.html
    http://skurocks.wordpress.com/2009/06/26/enable-client-integration-user-permissions-for-web-application-%E2%80%93-caution/

  • Not able to open sharepoint site in designer

    Hi,
    I am trying to open sharepoint sites in designer but getting error :- An error occurred while trying to fetch data from your SharePoint site. Unexpected response from the server. The content type of the response is "", The status code is "OK".
    pls help.
    Thanks,
    Vidhu

    There could be several reasons for this error. Check below
    https://social.msdn.microsoft.com/Forums/en-US/972888f0-66a5-4010-bd6e-b869ea5ba193/sharepoint-designer-2010-errors-out-when-trying-to-connect-to-sharepoint-2010?forum=sharepointgeneralprevious
    https://social.msdn.microsoft.com/Forums/en-US/56708c31-76b5-4ef3-b0ef-e8e6ea169662/issue-with-sharepoint-designer-an-error-occured-while-trying-to-fetch-data-from-your-sharepoint?forum=sharepointcustomizationprevious
    http://blog.karstein-consulting.com/2011/01/21/error-while-connecting-to-a-sharepoint-2010-web-site-in-sharepoint-designer-2010/
    https://amavs.wordpress.com/2011/05/26/spd-2010-can-not-connect-to-sharepoint/
    Please remember to click 'Mark as Answer'
    if the reply answers your query or 'Upvote' if it helps you.

  • Can't open SharePoint site in SharePoint Designer 2013 32Bit but can open Office 365.

    Hello.  I am running Windows 8.1 SharePoint Designer 2013 32Bit (15.0.4615.1000).
    I am unable to open any sites from our SharePoint 2013 OnPremise farm. I can however open sites from our Office 365 environment.
    I get the following error.
    "An error occurred accessing your Microsoft SharePoint Foundation site files.  Authors - if authoring against a Web server, please contact the Webmaster for this servers's Web site.  WebMasters - please see the server's application event log
    for more details."
    I have looked in the event log but can't see anything relative.
    I have cleared all caches, uninstalled and reinstalled and followed recommendations in this post.
    http://community.office365.com/en-us/f/154/t/149314.aspx?PageIndex=2
    My colleague with the same setup also has this issue but another doesn't and is able to access the site. I have a Windows 7 Hyper-V VM on my machine and this can open the OnPremise sites.
    I really don't know what else to try short of rebuilding my machine which I would rather not do at the moment.
    Any help would be greatly appreciated.
    Thanks.
    Steev.

    Try changing security token service application pool password if its expired.
    Security token service application pool should be up and running to fix this issue.
    Please check :
    http://social.msdn.microsoft.com/Forums/en-US/7cf7ae15-1f58-402b-a93b-7f6a6d583169/sharepoint-designer-throwing-error-while-open-my-sharepoint-web-applicaiton?forum=sharepointcustomizationprevious
    http://www.fmsinc.com/free/NewTips/Office/frontpage.asp

  • Can not open Sharepoint site in IE10

    I have a Sharepoint site, which I can open up (enter) in Chrome, but when I enter the address in my IE10 (Office 8)  address bar, I get "waiting for xxx.com" and it never opens up.
    What may cause this?

    the address bar can be removed. You can just add the share point to your favorites or try updating your IE to the latest 11 version. Also you can try to clear the browser cache, cookies, etc. Try adding
    https://*.sharepoint.com to trusted sites from your internet options> security. It should work !
    If this post helps you then please propose this as an answer and vote.
    Thanks.
    Ujjwal Patel
     |
    SharePoint Online Support Engineer, MCPD, MCTS, MCAD.

  • Unable to open Sharepoint site with Designer "Folder name is not valid"

    Hi all,
    I'm using SharePoint 2013 with SharePoint Designer 2013, but currently I'm facing a weird behaviour.
    I can open my preproduction SharePoint portal with SharePoint Designer 2013, but when I'm trying to open my production environment, I'm receiving the error "The folder name is not valid". Even it doesn't ask for credentials.
    Anyone knows what is happening?

    There are few other options people used to solve this issue. refer to the following posts if you haven't so far. hope it helps.
    http://hightechdave.com/sharepoint-designer-the-folder-name-is-not-valid-error/
    http://mesiag.blogspot.com/2011/10/sharepoint-designer-2010-folder-name-is.html
    http://community.office365.com/en-us/f/154/t/11825.aspx
    Cheers,

  • Unable to open complete site on E61

    Hi, i recently have a new E61, earlier i can access any website on this e.g. Orkut or any other, but two or four days back, whenever i open orkut, it opens the homepage of orkut, but when i login it starts to download the page, but it keeps on fail. Kindly suggest why it is happening? I have tried to everything, but it is not working properly at all. Kindly suggest What should i do?

    Hi Eric, take a look at the following link:
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/241d44f4-fb4e-4ce7-b134-72e0a7257a49/unable-to-open-sharepoint-site-with-designer-folder-name-is-not-valid?forum=sharepointcustomization
    cameron rautmann

  • Not able to open SharePoint 2010 Site in SharePoint Designer 2010

    Hi all,
    I have SharePoint 2010 Environment and when I try to open the site in SharePoint Designer with the regular URL (https://xyz.com)
    some time i am getting error "'The server sent a response which SharePoint Designer could not parse. If you are trying to connect to a Microsoft SharePoint Foundation server, check with the server's administrator to make sure Microsoft
    Foundation is installed properly" and some time its work fine and open the site without any issue... but when i try to open the site with the internal URL like (http://Servername:Port) it work perfectly.
    Even i am not able to open the custom workflow in SharePoint designer whenever i am able to open the site with my regular URL (https://xyz.com) and getting error "Failed to load the configuration file for the workflow", but with
    the Internal URL (http://Servername:Port) i am able to open that workflow without any issue.
    Please suggest!!!

    Hi NaveenKSah,
    According to your description, my understanding is that you got an error when you opened AAM url of a site with SharePoint 201o Designer.
    Please try to add <remove verb="*" path="*.asmx" /> after <httpHandlers> in the site web.config file, compare the result.
    Note: before changing the web.config file, please make a backup for the file.
    More information, please refer to the link:
    http://dishasharepointworld.blogspot.com/2010/08/server-sent-response-which-sharepoint_30.html
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Issue with opening a site in SharePoint Designer 2010 -The version of SharePoint foundation running on the server is more recent than the version of SPD you are using, you need a more recent version of SPD.

    I have a SharePoint site which I am trying to open in SPD 2010, I am getting the following error(some of my team members are able to open)
    The version of SharePoint foundation running on the server is more recent than the version  of SPD you are using, you need a more recent version of SPD.
    These are the ways I tried
    1) Earlier I have MS office 32 bit and SPD 32 bit, I uninstalled them and installed both 64 bit versions
    2) I uninstalled restarted my machine and installed it again still no use.
    3) I installed SPD 2010 Service Pack 2 of 64 bit
    4) I uninstalled the SPD 2010 and opened the site—site actions—edit page in SPD , then it asked me to install SPD 2010, then I installed and tried to open the same site, again same error.
    How to solve this issue?
    I checked permissions also at that site level – I have full control like others. I don’t have access to Central Admin so where else I can check the permission settings?

    Please update us SharePoint version 
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Cannot open document from SharePoint site

    Hi All,
    Randomly, I got this error when I trying to open a document from SharePoint sites like 'https://sharepoint.partners.extranet.***.com/'. When issue happend, all document cannot be opened from this
    site. Here is the Error message snapshot:
    'sorry, we cannot open 'https://..... ' because the server isn't responding'
    Notes:
    1) The issue only happend to this site and it's children sites.
    2) If you click the button 'Try Again', the issue will be fixed, but later (several hours/days), the same issue happend again.
    3) When issue happenend, other accounts can still open the files. The same account can open docs as well from other machines. But the issue is not related to this account and this machine because I can repro the issue from other machines.
    The issue happend more than 1 year, if you can share something insight that will very helpful. Thank you!

    Hi,
    Please add the URL of the SharePoint site to the list of trusted sites in your browser and check if that helps.
    Cheers,
    Daniel
    Daniel Bugday
    Microsoft Community Answerer, Member of Microsoft Extended Expert Team, MCT, MCTS/MCPD SharePoint 2007/2010, SQL MCDBA, MCSE
    Blog: SharePoint By Bugday
    Contact:
    Please remember to mark your question as "answered" if this solves your problem

  • Open And Edit Word File In SharePoint Site Programmatically (Without Save On Local system)

    Hi Sir ,
             I am working as sharepoint developer. I have face some problem in Edit and open document file in sharepoint site programmatically. I want to open file and edit directly in sahrepoint site without save in local system,
         Issue:   I have upload one doc file then try to edit and open but In that case file is dowanload and save in local save.

    Hello,
    As i understand you want to open and update word file. Please have a look at below links:
    http://mysharepointwork.blogspot.ca/2010/06/programmatically-open-and-save.html
    http://howtosharepoint.blogspot.ca/2010/05/programmatically-edit-and-save-file.html
    It is good place to start.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Getting error while opening Excel document from SharePoint site

    Hello All,
    I am getting following error while opening Excel document from SharePoint site.
    This issue appears when we open Excel document from Windows>> Run using below mentioned command:
    Excel.exe "{File Name}"
    If once I go to Excel back stage and browse for the SharePoint location, then this problem disappears.
    I have a work around for this issue but main problem is that i do not have any work around when i need to open Exel document using Excel COM interop in C#.
    Thanks,
    Amit Bansal
    Amit Bansal http://www.oops4you.blogspot.com/

    Hi Amit Bansal,
    Thanks for posting in MSDN forum.
    This forum is for developers discussing developing issues involve Excel application.
    According to the description, you got an error when you open the document form SharePoint site.
    Based on my understanding, this issue maybe relative to the SharePoint, I would like move it to
    SharePoint 2013 - General Discussions and Questions forum.
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
    Thanks for your understanding.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Can't open Sharepoint Online site in Sharepoint Designer 2013

    Hello!
    I am trying to open a Sharepoint Online secure site in Sharepoint Designer 2013 (v15). When I try to open the site in Sharepoint Designer i get an error stating: 
    "Server error: The version of Microsoft SharePoint Foundation running on the server is more recent than the version of SharePoint Designer that you are using. You need a more recent version of SharePoint
    Designer."
    I used to have the preview version installed, but I uninstalled it and got the latest version I could find (version 15?). I checked the SharePoint version on the server (/_vti_pvt/service.cnf) and it says: 
    vti_encoding:SR|utf8-nl
    vti_extenderversion:SR|16.0.0.1706The public site I have has the same version and it opens just fine in SharePoint Designer 2013. Are there any new versions of SharePoint Designer 2013 available that I have missed? My SharePoint Designer is up to date via Windows Update.I am running the designer on Windows 7 Ultimate x86.

    I had the same issue today. Here what I have found.
    I was using different credentials for my different SharePoint site in SPD 2013. When I try to access my new SharePoint online site (Which has different Account) the SharePoint Designer directly show me  
    "Server error: The version of Microsoft SharePoint Foundation running on the server is more recent than the version of SharePoint Designer that you are using. You need a more recent version of SharePoint Designer."
    then I changed my Account Credentials by
    Open SPD 2013
    1)click File
    2) Click Account
    3) Log out from current user name
    4) sign in by using the same credential  as your new SharePoint Site.
    DONE!
    I think this error is not useful as it (this error) is not about which version of SharePoint you are using but more about Account credentials.(At least for me) Hope that helps.

  • Opening .xlsm file sin SharePoint site landing page

    I'll begin by saying Hello to the forum. I have only very recently started using MS SharePoint within our company, having had no previous experience of it, so please expect quite a few 'beginners' questions coming this way over the coming months.
    To manage our data maintenance processes, I have developed a set of form applications within Excel, using VBA to provide a user-friendly interface to the data requestor/providers within our business. Of course it is very difficult to provide any kind
    of manageable/visible workflow solution using only Excel and so the business has made the decision to utilise SharePoint as the host.
    We currently have a split between data objects where a workflow solution has been created for customer/vendor, using my form applications as the data entry tool. Materials however currently sit within a document library on a department SharePoint site.
    The site was created by A.N.Other who has now left the business and I have therefore been tasked with managing it. Initially, this is as simple as updating and loading the .xls/.xlsm form applications to the document library.
    And so, to my first problem. Where a visitor to the site navigated directly to the document library and clicked on an .xlsm file, they were presented with an error message that states:-
    <v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe"
    stroked="f"><v:stroke joinstyle="miter"><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"><v:f eqn="sum @0 1 0"><v:f eqn="sum 0 0 @1"><v:f eqn="prod @2 1 2"><v:f
    eqn="prod @3 21600 pixelWidth"><v:f eqn="prod @3 21600 pixelHeight"><v:f eqn="sum @0 0 1"><v:f eqn="prod @6 1 2">The workbook cannot be opened because it contains the following features that
    are not supported by Excel in the browser:</v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas></v:stroke></v:shapetype>
    Data Validation
    Sheet Protection
    Would you like to try and open this file in Excel?
    <v:shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe"
    stroked="f"><v:stroke joinstyle="miter"><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"><v:f eqn="sum @0 1 0"><v:f eqn="sum 0 0 @1"><v:f eqn="prod @2 1 2"><v:f
    eqn="prod @3 21600 pixelWidth"><v:f eqn="prod @3 21600 pixelHeight"><v:f eqn="sum @0 0 1"><v:f eqn="prod @6 1 2">I was able to change this so that the file automaticaly opened
    in the client application by changing the settings for the documents library.</v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:f></v:formulas></v:stroke></v:shapetype>
    The problem is that on the landing page of our department site, we have a side navigation menu that links to some of the most frequently used files. If the visitor clicks on any of these files (which of course point to the same source
    document) they again see the error message, and no matter how hard I look, I am unable to find the option to make the file open in the client application from here.
    I was hoping that the experts here may be able to advise on where I may find this option, if available?
    Many thanks in advance.
    Danny

    Excel Services is clearly out due to the VBA and Macro elements you've added.
    Just to present an alternative point of view for this.  If you want to surface just ONE spreadsheet on a homepage, this can be done but it involves a slightly different route about it.
    The Page Viewer Web Part might present an alternative for you.  I don't know if it'll disable the warning dialog boxes but it might be worth a try.  More info can be seen here
    http://office.microsoft.com/en-gb/sharepoint-server-help/page-viewer-web-part-HA010024045.aspx
    If that one doesn't work, there is another trick in which we can try importing an earlier version of this tool from SharePoint 2003 (which oddly enough was actually better!) to see if that'll help.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Not able to open office documents from SharePoint site using Forms auth on a Mac with Office 2011

    I posted the same question on the Mac Office forum (http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macstart/not-able-to-open-office-documents-from-sharepoint/7fba517b-ebd1-4e90-a54a-c70c5f035146?tm=1418836613595) but figured it's probably more
    of a SharePoint question so I'm going to try here as well.
    We just discovered an issue where a user logs into a SharePoint site using Forms based authentication.  When clicking on an Office file they get
    'Sorry, this site hasn't been shared with you' message:
    The user can download the file and can also open the file within the browser (Office Web apps).  This SharePoint site is on a Web app that uses mixed authentication (forms for external partners) and Windows/Kerberos for internal employees.
     When logging into this same site as an internal user I am able to open the file just fine.
    I checked the 'Microsoft Document Connection' settings and selected and deselected 'Enable Basic Authentication' and neither helped.  
    I also tried to add the site URL under 'Microsoft Document Connection' -> Add connection -> Connect to a SharePoint site.  When I put the site URL in and click 'Connect', I get an error saying that 'Only connection to SharePoint or OneDrive
    servers are supported' message.  If I try the same thing as an internal user using Windows/Kerberos authentication I am able to connect to the site just fine.
    Any ideas??

    Hi Szamir,
    As you are using Form Based authentication to open the documents from SharePoint site, I recommend to check the things below:
    Make sure that the user has permission to view the documents in the site.
    Please select "Sign me in automatically" when you sign in the login page.
    More references:
    https://social.technet.microsoft.com/Forums/en-US/ae8cc886-c362-4709-8575-07d339144714/not-able-to-open-microsoft-office-documentsdocxxls-etc-from-document-library-in-a-fba-site-in?forum=sharepointgeneralprevious
    http://manojvnair.blogspot.com/2011/06/login-prompt-while-opening-office.html
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • Options for XML parsing in WAS 6.20 ABAP and higher

    Hello Experts,    What options are available to me for working with XML documents in SAP R/3 4.7? I am working on SAP WAS 6.20 ABAP and was wondering which tools/techniques I can use for parsing XML files?    I am developing an ABAP program and prima

  • Printing a pdf from a marked-up pdf.

    Acrobat Pro 9 no longer lets me print a pdf from a marked-up pdf.  Any suggestions?

  • XIServer: USER_CONTEXT_ERROR

    Hello Everyone, I hope that you could help with this problem that i'm facing. I Found some post related but with no answer about the problem. Actually in any scenario with XI -> Proxy (Abap Proxy, XI channel) the message are processed wel but when th

  • Can't move songs into my folders?  i get a red circle?

    can't move songs into my folders from music list?  i get a red circle?

  • IPad camera problems

    I have a brand new iPad, I can take pictures with my camera but for some reason it won't switch to video.  How do I take video? I shut down all my apps and did a restart by holding the home button and the top button together.  Nothing seems to be wor