SharePoint hosted app issue - This page cannot be displayed

Hi All, need help on below issue, 
When I deploy SharePoint hosted app from Visual Studio 2012, it generated app web URL and that opens the app properly. But, if I upload .app file after
publish in Visual Studio 2012 to App Catalog and added new app based on my SharePoint hosted app. When try to click on app, saying ‘This page can’t be displayed’ in internet explorer. I don’t think so it will be issue with app domain as the app working fine
if deploy from visual studio. Thanks in advance for your help.

It may still be an issue with the app domain, actually with DNS.  When you deploy from VS 2012 it automatically adds the appropriate DNS entries to the Hosts file on your VS 2012 PC.  That way the App domain can be resolved and you can reach the
site.  When you deploy by uploading to the App Catalog that entry in the HOsts file is not created.  Instead you should ahve already added the App domain and a wildcard entry to the DNS server used in your network.  If that wasn't done then
you will get exactly the behavior you describe.
Take a look at the section on DNS in the following article.  Make sure you've followed all the instructions.
http://technet.microsoft.com/en-us/library/fp161236(v=office.15).aspx
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem.

Similar Messages

  • When i open my SQL reporting URL it says this page cannot be displayed

    Hi All,
    I am using SQL Server 2008 with SP3. When i open my open my reporting manager URL. i get the error as "This page cannot be displayed" HTTP Error 500 internal server error. I read few blogs posted below. Tried both but could not help me out
    http://social.technet.microsoft.com/Forums/en-US/1a03196f-f8ee-4a66-b08b-b2e02447a25e/can-not-open-page-for-report-manager-url-httplocalhost8080reports-for-sql-server-2008?forum=sqlreportingservices
    and 
    http://ashwaniashwin.wordpress.com/2014/02/28/the-url-has-already-been-reserved-error-while-configuring-the-report-server-url-in-reporting-services-configuration-manager/
    But none of them helped.
    I tried deleting the reserved URL and re reserved but still did not help.
    Tried changing the port number but still no luck.
    I analysed the sql reporting error log and found the below.
    ===============================================
    library!ReportServer_0-1!ad4!06/07/2014-03:30:52:: Call to GetSystemPropertiesAction().
    ui!ReportManager_0-2!fbc!06/07/2014-03:30:54:: e ERROR: Unable to validate data.
    ui!ReportManager_0-2!fbc!06/07/2014-03:30:54:: e ERROR: HTTP status code --> 500
    ===============================================
       at ReportingServicesHttpRuntime.BaseWorkerRequest.FilterAndThrowException(Exception e, String message)
       at ReportingServicesHttpRuntime.RsWorkerRequest.GetUserToken()
       at System.Web.HttpContext.get_ImpersonationToken()
       at System.Web.ClientImpersonationContext.Start(HttpContext context, Boolean throwOnError)
       at System.Web.HttpApplication.ThreadContext.SetImpersonationContext()
       at System.Web.HttpApplication.ThreadContext.Enter(Boolean setImpersonationContext)
       at System.Web.HttpApplication.OnThreadEnterPrivate(Boolean setImpersonationContext)
       at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
    library!ReportServer_0-1!e0c!06/07/2014-03:30:49:: Call to GetItemTypeAction(/).
    library!ReportServer_0-1!f10!06/07/2014-03:30:49:: i INFO: Catalog SQL Server Edition = Enterprise
    library!ReportServer_0-1!e0c!06/07/2014-03:30:49:: i INFO: Catalog SQL Server Edition = Enterprise
    crypto!ReportServer_0-1!e0c!06/07/2014-03:30:49:: i INFO: Initializing crypto as user: E2K\Lg161489
    crypto!ReportServer_0-1!e0c!06/07/2014-03:30:49:: i INFO: Exporting public key
    crypto!ReportServer_0-1!e0c!06/07/2014-03:30:49:: i INFO: Performing sku validation
    crypto!ReportServer_0-1!e0c!06/07/2014-03:30:50:: i INFO: Importing existing encryption key
    library!ReportServer_0-1!e0c!06/07/2014-03:30:50:: Call to ListParentsAction(/).
    library!ReportServer_0-1!e0c!06/07/2014-03:30:50:: Call to ListChildrenAction(/, False).
    webserver!ReportServer_0-1!e0c!06/07/2014-03:30:50:: i INFO: Processed folder '/'
    library!ReportServer_0-1!ad4!06/07/2014-03:30:51:: Call to GetPermissionsAction(/).
    library!ReportServer_0-1!f10!06/07/2014-03:30:51:: Call to GetPropertiesAction(/, PathBased).
    library!ReportServer_0-1!ad4!06/07/2014-03:30:52:: Call to GetSystemPermissionsAction().
    library!ReportServer_0-1!f10!06/07/2014-03:30:52:: Call to ListChildrenAction(/, False).
    library!ReportServer_0-1!ad4!06/07/2014-03:30:52:: Call to GetSystemPropertiesAction().
    library!ReportServer_0-1!f10!06/07/2014-03:30:52:: Call to GetSystemPropertiesAction().
    library!ReportServer_0-1!ad4!06/07/2014-03:30:52:: Call to GetSystemPropertiesAction().
    ui!ReportManager_0-2!fbc!06/07/2014-03:30:54:: e ERROR: Unable to validate data.
    ui!ReportManager_0-2!fbc!06/07/2014-03:30:54:: e ERROR: HTTP status code --> 500
    I have also attached all the logs in a FTP for further analysis. Please download it from the below link.
    https://depositfiles.com/files/cfe6af33b
    Can any one please help me. Seems to be a never ending issue to me.

    Take a look on link
    http://pcsupport.about.com/od/findbyerrormessage/a/500servererror.htm
    In case If you rebuilt the server then then linking will break , go in encryption keys option if only delete button is enabled, and backup button is disabled the delete the keys .close the report configuration manager and reopen the manager .Now try
    to open report manager url. 
    Please click "Propose
    As Answer" if a post solves your problem, or "Vote
    As Helpful" if a post has been useful to you

  • A webpart or web form control on this page cannot be displayed or imported.The type could not be found or it is not registered as safe.

    Hi,
    After moving my files from SP 2010 to SP 2013 , for all my web parts i am getting A webpart or web form control on this page cannot be displayed or imported.The type could not be found or it is not registered as safe. error. I checked web.config files
    and they are there as safe control and trust level is also full. 
    These webparts work in 2010.
    Do i need to tweak something in code or distributed cache to make this thing work? The errors i see are
    Error importing WebPart. Assembly  c , Version=1.0.0.0, Culture=neutral, PublicKeyToken=216eaf49984a9b29, TypeName. C. A Web Part or Web Form Control on this Page cannot be displayed or imported. The type c Version=1.0.0.0, Culture=neutral, PublicKeyToken=216eaf49984a9b29
    could not be found or it is not registered as safe.
    Getting Error Message for Exception Microsoft.SharePoint.ApplicationRuntime.SafeControls+UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type C Version=1.0.0.0, Culture=neutral, PublicKeyToken=216eaf49984a9b29
    could not be found or it is not registered as safe.    
     at Microsoft.SharePoint.WebPartPages.WebPartImporter.CreateWebPart(Boolean clearConnections)    
     at Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb spWeb)    
     at Microsoft.SharePoint.WebPartPages.WebPartGalleryItemBase.InstantiateFromXml(XmlReader reader)    
     at Microsoft.SharePoint.WebPartPages.WebPartAdder.SiteWebPartGalleryProvider.SiteWebPartGalleryItem.Instantiate()    
     at Microsoft.SharePoint.WebPartPages.WebPartGallerySourceBase.AddItemToPage(WebPartZoneBase zone, Int32 zoneIndex, WebPartGalleryItem item, String wpid)    
     at Microsoft.SharePoint.WebPartPages.WebPartAdder.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
    An error occurred while attempting to add the gallery item [Custom] c to the page. The error was: Microsoft.SharePoint.ApplicationRuntime.SafeControls+UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The
    type c Version=1.0.0.0, Culture=neutral, PublicKeyToken=216eaf49984a9b29 could not be found or it is not registered as safe.    
     at Microsoft.SharePoint.WebPartPages.WebPartImporter.CreateWebPart(Boolean clearConnections)    
     at Microsoft.SharePoint.WebPartPages.WebPartImporter.Import(SPWebPartManager manager, XmlReader reader, Boolean clearConnections, Uri webPartPageUri, SPWeb spWeb)    
     at Microsoft.SharePoint.WebPartPages.WebPartGalleryItemBase.InstantiateFromXml(XmlReader reader)    
     at Microsoft.SharePoint.WebPartPages.WebPartAdder.SiteWebPartGalleryProvider.SiteWebPartGalleryItem.Instantiate()    
     at Microsoft.SharePoint.WebPartPages.WebPartGallerySourceBase.AddItemToPage(WebPartZoneBase zone, Int32 zoneIndex, WebPartGalleryItem item, String wpid)    
    Adit

    Hi Adit,
    According to your description, my understanding is that the error occurred when you deployed the .wsp files to SharePoint 2013.
    I recommend to check if all the assemblies are put into the BIN and GAC.
    If above cannot work, you can check the troubleshooting steps in the link below:
    http://www.bluedoglimited.com/SharePointThoughts/Lists/Posts/Post.aspx?ID=189
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • This page cannot be displayed - web connectivity problem

    Just purchased an HP laptop with Windows 8 and IE 10.
    I am connecting to my wireless connection because I can login and use Yahoo messenger, but cannot access any websites.  When open IE, get the error:  This page cannot be displayed. 
    There is an option to Fix Connection Issues - tried this and get the following results:
    Problem with wireless adaptor or access point  (not fixed)
    Your computer appears to be correctly configured, but the device or resource (www.msn.com) is not responding.
    Searched Google and there was a suggestion to flush the dns using command:  ipconfig \flushdns.  Did this, rebooted and then the home website does come up (www.msn.com).  However, if I click any link on the site, I then get back to the same 'This page cannot be displayed' message.
    Anyone else having this same issue or have any suggestions for resolving? 
    Thanks

    I'm sorry your new laptop isn't working! I think I have some solutions for you and hopefully resolve your issue quickly.
    (Make sure your time and date are correct!)
    First, reset your router. This is done by unplugging the power from your router and modem. Once ALL the lights on both are out, wait a few seconds. Plug the modem back in, wait for the lights to come on, then the router. Give it time to access the device and assign IP addresses (this takes up to 4 minutes with some models). Once completed, try to reconnect using your HP laptop.
    If that does not work, manually reset your IP address by using the command prompt (search for it using the search option on the right menu),
    ipconfig /release
    ipconfig /renew
    This should flush the IP address. You have already reset the DNS, and you may do so again just to clear everything.
    If that still does not work, hook the Ethernet cable directly into your laptop and see if it can get online. If it does, then it is a wireless connection issue and you should either return it OR have Geek Squad take a look. If it doesn't work, then either your router will NOT assign an IP address properly due to the computer having the same IP or Name as another computer on your network, or the computer could have a winsoc issue. In this case, you would have to restore the computer or
    go to :
    microsoft.com/fixit
    And use there fix. Download it on another computer, burn to DVD/CD or drop it to a flash drive, then use it on the computer giving you the issue.
    Let me know if any of these options work!
    - Disclaimer: While Agent Bender is currently employed at GeekSquad, ALL posts made by Agent Bender are her personal opinions, and do not reflect the opinions or policies of Best Buy or GeekSquad. -

  • Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported.

    SharePoint 2007 custom (VS 2008) solution is upgraded to SharePoint 2013 using (VS 2012). I followed this approach.
    I had created new empty project (solution) in SharePoint 2013 using (VS 2012) compiled and deployed successfully. All safe controls are registered in the web.config file. After deploying solution i Restarted IIS also, still getting this error. How to resolve
    Error
    Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe. Correlation ID: 5d217c9c-1827-7083-80cd-e095a30befee.
    Show Error Details
    Hide Error Details
    [UnsafeControlException: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.]
      at Microsoft.SharePoint.ApplicationRuntime.SafeControls.GetTypeFromGuid(Boolean isAppWeb, Guid guid, Guid solutionId, Nullable`1 solutionWebId, String assemblyFullName, String typeFullName, Boolean throwIfNotSafe)
      at Microsoft.SharePoint.WebPartPages.SPWebPartManager.CreateWebPartsFromRowSetData(Boolean onlyInitializeClosedWebParts)
    <menu class="ms-hide" id="MSOMenu_WebPartMenu"><ie:menuitem id="MSOMenu_Minimize" text="Minimize" title="Collapse this web part." type="option"></ie:menuitem><ie:menuitem
    id="MSOMenu_Restore" text="Restore" title="Expand this web part." type="option"></ie:menuitem><ie:menuitem id="MSOMenu_Close" text="Close" title="Close this Web Part. You can still
    find it under closed Web Parts section in the insert ribbon. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/DelItem.gif" id="MSOMenu_Delete" text="Delete"
    title="Delete this Web Part from the page. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem type="separator"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/EditItem.gif"
    id="MSOMenu_Edit" text="Edit Web Part" title="Change properties of this shared Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem id="MSOMenu_Connections"
    text="Connections" title="Show connections options for this Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem type="separator"></ie:menuitem><ie:menuitem
    id="MSOMenu_Export" text="Export..." title="Export this Web Part. These changes will apply to all users." type="option"></ie:menuitem><ie:menuitem iconsrc="/_layouts/15/images/HelpIcon.gif" id="MSOMenu_Help"
    style="display:none;" text="Help" type="option"></ie:menuitem> </menu>        

    Hi Ashok,
    According to your description, my understanding is that you got an error after you re-built a SharePoint 2007 solution with VS2012, and deployed it.
    Make sure the Namespace and Type Name are consistent across all files where indicated. Also with matching case sensitivity. Verify web.config file and assembly in GAC or virtual directory bin folder in post deployment.
    More information, please refer to the link below:
    http://roykimsharepoint.wordpress.com/2013/04/27/classic-web-part-errors/
    Here is a similar post for you to take a look at:
    http://stackoverflow.com/questions/1689707/sharepoint-web-part-type-could-not-be-found-registered-as-safe
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.

    We have an SharePoint services 3.0 installation that uses custom web parts on 100s of subsites.  The custom web parts on any website is presenting this error
    Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe.
    This past weekend we decided to create a new database server and migrate the databases to the new server in an effort to retire an old box. 
    INitially we attempted to go through the configuration wizard which didnt do anything but add a new database server to our farm.  What we have done is remove the new database server from the farm and use an alias on the SP server to continue to use
    the same name but actually get its data from the new database server.
    Everything works with the site except these custom webparts. 
    Any thoughts on where to go to first, should i redeploy what i think are the webparts from VS 2005 (solutions are VS 2005 slns.)? 
    Tony Spaulding

    You need to make Safe Control enteries in your web.config for the particular web application.
    Open web.config
    Locate the SafeControls Tag
    Make a safe control entry
    <SafeControl Assembly="Assembly name, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d8eb6481d8b4beec" Namespace="your webpart namespace" TypeName="*" Safe="True" />
    In order to find the assembly details, Open the GAC. Right click on your dll and then click properties.

  • "This page cannot be displayed error"

    When I attempt to use the preview site feature, I am getting a "This page cannot be displayed smate sure the web address http//### is correct" error. Last night, I tried the feature and while it showed the page it only showed an earlier preview, none of my updates were visible. I'm thinking the two are related (Using Windows 8). Can anyone here give me a hand? Thank you in advance for your help.

    I'm new to Muse and was having this problem as well. I came across this forum while searching for a solution. I solved my problem by opening internet explorer, going to the menu bar then Tools>Internet options>Security. In the Security panel I unchecked the box for Enable protected mode(require restarting internet explorer). This worked for me. I then turned the checkbox back on after I was done previewing my page. I'll just have to remember to do this while previewing my sites. I do have additional internet security so I'm not sure if I can leave this box unchecked all the time.

  • Cannot download adobe pg..error "this page cannot be displayed" --web address is somehow wrong

    company adobe endst cannot be printed....keep getting "this page cannot be displayed"
    trouble shooting show connection problem ..with no details
    we have reloaded adobe reader....still cannot print  adobe page...kick out for address?

    I cannot understand a word of what you are writing; can you explain that a little bit more clearly?

  • WebUtil and "This page cannot be displayed"

    Hi,
    After installing WebUtil, using the steps in the Familiarization manual and the notes in the Readme.txt file, when I ran a previously working form in the Builder, Internet Explorer complains the page cannot be displayed. I have reviewed the install steps, but I could not find what I did wrong.
    What should I be looking for to correct this error? Thanks much.

    Ok, I got the problem fixed. In the Familiarization manual, it says to add to the orion-web.xml file the following statement to create a virtual directory:
    <virtual-directory virtual-path="/webutil" real-path="c:/webutil/lib" />
    I changed the line to:
    <virtual-directory virtual-path="/forms90/webutil" real-path="c:/webutil/lib" />
    And it works.
    Cheers!
    rmc

  • LYNC 2013 control panel error: this page cannot be displayed

    Dear sir,
    Now i am suffering with the lync 2013 control panel problem, i cannot open it and got the error "This page can't be displayed" as below screenshot shows,
    I've tried some ways, but still same problem
    1. Reflush the dns, checked the A record and SRV record of the FE are normally.
    2. checked the IIS and also cannot find any problem.
    3, reboot the FE server/IIS, and AD.
    4. i can open the console page normally via web :https://localhost/cscp
    5. i can ping the FE server domain name and return the right IP info.

    Hi TECH-Tommy,
    The certificate is under “Personal” store.
    In addition, can you open the page via
    https://admin.domain.com ?
    Also please try to clear IE cache and treat the FQDNs for admin, pool or FE server name as trusted zone.
    Best regards,
    Eric
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • EBS 12.1.3 Login page issue or page cannot be displayed

    When I try the login page using http://host.domain/OA_HTML/AppsLocalLogin.jsp or http://host.domain/OA_HTML/AppsLogin, then the browser is displaying page can not be displayed.
    When I try to run AOL/J Diagnostic Tests, using http://host.domain/OA_HTML/jsp/fnd/aoljtest.jsp, then I did not find any issues.
    When I try to run AOL/J Setup Test, under Verify DBC Settings, there is a WARNING: Security in database set to "SECURE". If the DBC file contains the wrong APPL_SERVER_ID, then no JDBC connections will be possible via AOL/J.
    But under Verify Guest Settings, there is an ERROR saying :Failed to validate GUEST user in Profiles.
    Please help what is causing the login screen not able to show up.
    Thanks.
    Edited by: user5618898 on Sep 29, 2012 7:43 PM

    Never mind, it was a port conflict. I tried to change the http port # to default port #80 to a cloned copy. By flipping it to a different port and then run the autoconfig, resolved the issue.

  • How to get inputted value in a RTE field on custom page and submit by REST call in 'Sharepoint hosted app'.

    Hi I am facing the three questions below.
    1. How to use default RTE in custom page in Sharepoint hosted app.
     I saw the article of Rich text Editor (ribbon based) in a webpart in SharePoint 2013 and tried it. But it did not work well. I guess it needs code-behind setting, however sharepoint hosted app does not support code-behind.
    Does anybody know how to do this?
    2. In above case, I placed the below code on custom page and tried to get the field's value when submit button was clicked.
    <SharePoint:InputFormTextBox ID="rftDefaultValue"
    RichText="true"
    RichTextMode="FullHtml" runat="server"
    TextMode="MultiLine" Rows="5">
    </SharePoint:InputFormTextBox>
    In debugger, the returned value was 'undefined'.
    var note = $('#hogehoge').val();
    Is it possible to get the RTE value? If yes, please let me know how to do this.
    3. I need to submit the RTE value using REST call.
    In this
    article in MSDN, the item creation sample treats single line text field. Does anybody know the sample for RTE?

    Hi,
    According to your description, you might want to use Rich Text Editor control in your SharePoint hosted app.
    First of all, I would suggest you post one question in one thread to make it easier to be discussed, which would also help you get a quick solution.
    Though we can add this control into a SharePoint hosted app, however, as we can’t add code behind for it, plus with the potential compatibility issues in different
    browsers, I would suggest you use other JavaScript Rich Text Editor plugins instead.
    Two JavaScript Rich Text Editor plugins for your reference:
    http://quilljs.com/
    http://nicedit.com/
    If you want to submit the value of Rich Text Editor control to a SharePoint list using REST call, since the content in the Multiple Line of Text column is wrapped
    with nested HTML tags, the similar requirement would also be applied to the content to be submitted.
    Here is a code snippet about how to update a Multiple Line of Text column for your reference:
    updateListItem(_spPageContextInfo.webAbsoluteUrl, "List018", 1);
    function updateListItem(siteUrl, listName, itemId)
    var itemType = GetItemTypeForListName(listName);
    var item = {
    "__metadata": { "type": itemType },
    "MultiTextEnhanced": "<div><a href='http://bing.com/'>Bing</a><br></p></div>",
    "Title": "123"
    $.ajax({
    url: siteUrl + "/_api/web/lists/getbytitle('" + listName + "')/items(" + itemId + ")",
    method: "GET",
    headers: { "Accept": "application/json; odata=verbose" },
    success: function (data) {
    console.log(data);
    $.ajax({
    url: data.d.__metadata.uri,
    type: "POST",
    contentType: "application/json;odata=verbose",
    data: JSON.stringify(item),
    headers: {
    "Accept": "application/json;odata=verbose",
    "X-RequestDigest": $("#__REQUESTDIGEST").val(),
    "X-HTTP-Method": "MERGE",
    "If-Match": data.d.__metadata.etag
    success: function (data) {
    console.log(data);
    error: function (data) {
    console.log(data);
    error: function (data) {
    console.log(data);
    // Getting the item type for the list
    function GetItemTypeForListName(name)
    return"SP.Data." + name.charAt(0).toUpperCase() + name.slice(1) + "ListItem";
    Thanks
    Patrick Liang
    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]
    Patrick Liang
    TechNet Community Support

  • How to open List when Page loads in SharePoint Hosted App?

    I  want to create an app same like InstantPracticeManager by InstantQuick.
    Now I want to know that in a SharePoint Hosted App How can I show the Whole List in a page. 
    Here I have added one image:
    Here there is one list and there are 4 views of that list.
    Now the App will be like when I load the page It will show like the image above. Now how can we show the list like this in sharepoint hosted app?
    I want the same scenario which is shown in the following blogs:
    http://sp2013.blogspot.in/2012/08/use-list-view-in-sharepoint-2013-apps.html
    and
    http://www.sharepointnutsandbolts.com/2013/08/working-with-web-parts-within.html
    where they add a list to an app
    Can any one suggest me the idea? I am bit confused.
    thanks in advance.

    Hi,
    According to your post, my understanding is that you want to show the different list view in a page in SharePoint Hosted App.
    We can use jQuery and cross-domain library to achieve it.
    The following articles for your reference:
    Adding a Tabbed View to A Web Part Page Using jQueryUI
    http://sympmarc.com/2011/11/09/adding-a-tabbed-view-to-a-web-part-page-using-jqueryui/
    How to: Access SharePoint 2013 data from apps using the cross-domain library
    http://msdn.microsoft.com/en-us/library/office/fp179927(v=office.15).aspx
    SharePoint 2013: Get list items by using the cross-domain library (JSOM)
    http://code.msdn.microsoft.com/office/SharePoint-2013-Get-items-d48150ae/view/SourceCode#content
    Thanks,
    Dennis Guo
    TechNet Community 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]
    Dennis Guo
    TechNet Community Support

  • Issue with REST POST call: CopyTo in a SharePoint hosted App not working

    Hi Community
    I have been really struggling to get a cross domain copy to work both in an App or even using REST Tools such as Postman or Google Advanced REST Client. 
    Ok there are various blog posts by Scott G et al.  that shows how you can post say in a single domain.  Now that's fairly straight forward
    in my case I took a .apsx page and added the following lines of code - Checkin - refresh and great the file gets copied via  the document ready function
    (document).ready(function () {
    alert('ready!');
    var src = "/appsdev/Shared Documents/SrcDoc.docx";
    var dst = "/appsdev/Shared Documents/DestDocCopiedByRestTestASPXPage.docx";
    jQuery.ajax({
    type: "POST",
    contentType: "application/json;odata=verbose",
    headers: {
    "accept": "application/json;odata=verbose",
    "X-RequestDigest": jQuery("#__REQUESTDIGEST").val()
    url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/getfilebyserverrelativeurl('" + src + "')/copyto(strnewurl='" + dst + "',boverwrite=true)",
    success: function (data, errorCode, errorMessage) {
    alert('Success: copied the damn file');
    var jsonObject = JSON.parse(data.body);
    var jsonObjectText = JSON.stringify(jsonObject);
    error: errorHandler
    Now I make the call in my SharePoint hosted App and I simple can' t  get this to work. Fiddler doesn't exactly help a lot
      var src = "/appsdev/Shared Documents/SrcDoc.docx";
      var dst = "/appsdev/Shared Documents/DestDocCopiedByMyApp.docx";
        var urlWriteLocalFileDebug = appweburl +
       "/_api/SP.AppContextSite(@target)/web/Getfilebyserverrelativeurl('" + src + "')/copyTo(strNewUrl='" + dst + "', bOverWrite=true)?@target='" + hostweburl + "'";
    executor.executeAsync(
    method: "POST",
    contentType: "application/json;odata=verbose",
    headers: {
    "accept": "application/json;odata=verbose",
    "X-RequestDigest": jQuery("#__REQUESTDIGEST").val()
    url: urlWriteLocalFileDebug,
    success: function (data, errorCode, errorMessage) {
    alert('Success: copied the damn file');
    var jsonObject = JSON.parse(data.body);
    var jsonObjectText = JSON.stringify(jsonObject);
    error: errorHandler
    I can happily run a GET and see the properties of my file but POST no way.   Curriously, when I try to run the same command for say Google Advanced Rest Client I get nowhere
    Is this a new mensa test!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
    Freelance consultant

    Hi
    I have now tested against a trail Office  365 Developer site and I had to make a few adjustments
    - change the url
    - change the target to SharePoint Onlne
    - change the url 
    I still wasn't happy so I created a new SharePoint Hosted app and pointed at the above developer site.  I copied my CrossDomainExec.js and stripped all my code except my CopyItemInSameLIbrary method which hasn't changed since I created this post. 
    - changed the App Manifest permissions to Web -full Control ( was previously tenant)
    I still got errors which is really painful as you don't even see the POST request in Fiddler
    The URL used for my POST is as follows ( note host URL is fictitious)
    "https://myapphell-547d8061d39e38.sharepoint.com/sites/appsdev/RESTTestSHA/_api/SP.AppContextSite(@target)/web/Getfilebyserverrelativeurl('/sites/appsdev/Shared Documents/SrcDoc.docx')/copyTo(strNewUrl='/sites/appsdev/Shared Documents/DestDoc.docx', bOverWrite=true)?@target='https://myapphell.sharepoint.com/sites/appsdev'" String
    Ran the app a second time and now I see......Wow it WORKS!!!!!! ..Can't be true can it?
    .... next I will switch the target url to my on prem farm to see if this still works so watch this space!
    Daniel
    Freelance consultant

  • Issue with Workflow in a SharePoint-hosted App Application

    Hi,
    I have created a Sharepoint-hosted app which has a list workflow in it. After I deploy it to the sharepoint server,  I can not find any workflow under the associated list.
    However, I did have target list associated with workflow in workflow project property.  
    (My app and worflow is developed in VS 2012)
    I have searched the forum and found some similar question. However, all of them don't have useful answers.....
    Can anyone give me some help~?

    Hi Baron123,
    I can reproduce your scenario, that create an app with list, and add a workflow associates with it, the workflow is not working, that seems doesn’t associates successfully.
    Before I can tell why this happens, I found a helpful blog about keeping the list definitions and workflow definitions separate, use Handle APP installed event receiver to wire up a workflow to lists in app web or host web.
    As it is not a good solution to deploy the list and workflow in the same app solution, because that if you redeploy the app the date will be lost, the list will be new created, so I would suggest you to reference the blog, check whether this can meet your
    requirement.
    SharePoint Apps and Workflow:
    http://jonfancey.azurewebsites.net/2013/03/22/SharePointAppsAndWorkflow.aspx
    Thanks,
    Qiao Wei
    TechNet Community Support

Maybe you are looking for

  • Log off problem in integrated ITS

    Hi, our cancel button for ending the application with an external ITS works fine and the exitURL which is deposit in the service file will be shown. But with an integrated ITS it doesn't work. I know that this exitURL doesn't work in an integrated IT

  • Process Chain - Follow on dependencies to DSO Activation

    Hi, I have a Data Load Process where the start routine is dependent on DSO data that was just previously activated.  For some reason it looks like the the time before the load and the time after the DSO activation are close by just seconds.  The Data

  • Spotlight Indexing Problem

    I've been scouring the internet looking in forum after forum for the answer to this problem for several hours now. I've tried all the usual fixes (which I will detail below) and none of them seem to be working. I recently installed Leopard from Tiger

  • Questions regarding Connection Pooling

    Hi i have some confusion regarding how connection pooling is implemented..i have been doing some digging in to this lately but the more i read the more confused i get. i have some doubts here, will any of the posters here kindly clear them a. Do i ha

  • How i can StyledDocument to lay over BufferedImage?

    Hello All. I have StyledDocument with different aligned paragraphs, multiple fonts, differently bolded. And i have a BufferedImage. I need document to lay over image. How can i do this? I need it urgent. Any propositions and ideas - welcome. Thanks i