Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all 8089 articles
Browse latest View live

Can not add app on site

$
0
0

Hi,

I am trying to add/install my provider hosted app on one of my SharePoint site, but I get below message:

"A different version of this App is already installed with the same version number.  You need to delete the app from
the site and the site recycle bin to install this version.
".

I have already deleted app from primary and secondary recycle bin. I have also uninstalled it from the root site/sub-site. I have also tried deleted it from apps catalog but no luck.:(

Can anyone please help me with this.

Thanks in advance..!!

Regards,
AK


Deploy an app inside a web template in SharePoint 2013

$
0
0

The main objective is to deploy an app inside a web template, so when I create a sub site using that template, the app will be included. To do that, I have followed this Microsoft blog, but I have no luck.

The steps I have followed are:

  1. Create a new site and save it as a template.
  2. Download the template as a wsp file
  3. Change wsp extension to cab
  4. Extract the cab content and modified the onet.xml file adding the following lines::

<!--XXX app Feature-->

<Feature ID="{62300948-B52A-445D-BE0D-477B10E00CEE}" Name="FeatureDefinition/15/62300948-B52A-445D-BE0D-477B10E00CEE" SourceVersion="0.0.0.0" />

5. Reassemble the wsp file using DDFGenerator and the MakeCab sentence.

6. Upload the wsp file into SharePoint solutions

7. Now, when I create a sub site using the web template that I have modified this error displays:


Please, anyone could help me? I have done an extensive research but I haven't found any clue.

Enabling SharePoint error in Cloud Business App

$
0
0

I'm having trouble enabling SharePoint to the Cloud Business App solution. When I create a new project in 'VS 2013 Professional', specify the developer site, it gives me an error-

"An error occurred while adding SharePoint: Unable to find the specified file."

followed by,

"Operation is not valid due to the current state of the object."

I have been able to do this in the past without issues and debug in the same environment. Please advise.

Error Worklfow Manager - The token provider was unable to provide a security token while accessing

$
0
0

hi

A couple of days I'm trying to install Workflow Manager 1.0 but I have encountered a problem that does not allow me contuniar

The error is as follows:

[Error] [25/05/2015 07:20:22 p. m.]: System.Management.Automation.CmdletInvocationException:The token provider was unable to provide a security token while accessing'https://sharepoint0120.secam.sa.net:9355/WorkflowDefaultNamespace/$STS/Windows/'. Token provider returned message: '<Error><Code>400</Code><Detail>Cannot resolve a namespace for scope: http://sharepoint0120.secam.sa.net/WorkflowDefaultNamespace/WF_Management/WFTOPIC/..TrackingId:e46c147d-135c-49d4-8dd8-43912b3fec64_GSharepoint0120,TimeStamp:26/05/2015 12:20:22 a. m.</Detail></Error>'. ---> System.UnauthorizedAccessException: The token provider was unable to provide a security token while accessing 'https://sharepoint0120.secam.sa.net:9355/WorkflowDefaultNamespace/$STS/Windows/'. Token provider returned message: '<Error><Code>400</Code><Detail>Cannot resolve a namespace for scope: http://sharepoint0120.secam.sa.net/WorkflowDefaultNamespace/WF_Management/WFTOPIC/..TrackingId:e46c147d-135c-49d4-8dd8-43912b3fec64_GSharepoint0120,TimeStamp:26/05/2015">http://sharepoint0120.secam.sa.net/WorkflowDefaultNamespace/WF_Management/WFTOPIC/..TrackingId:e46c147d-135c-49d4-8dd8-43912b3fec64_GSharepoint0120,TimeStamp:26/05/2015 12:20:22 a. m.</Detail></Error>'. ---> System.IdentityModel.Tokens.SecurityTokenException: The token provider was unable to provide a security token while accessing 'https://sharepoint0120.secam.sa.net:9355/WorkflowDefaultNamespace/$STS/Windows/'. Token provider returned message: '<Error><Code>400</Code><Detail>Cannot resolve a namespace for scope: http://sharepoint0120.secam.sa.net/WorkflowDefaultNamespace/WF_Management/WFTOPIC/..TrackingId:e46c147d-135c-49d4-8dd8-43912b3fec64_GSharepoint0120,TimeStamp:26/05/2015 12:20:22 a. m.</Detail></Error>'. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
   --- End of inner exception stack trace ---
   at Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException exception)
   at Microsoft.ServiceBus.TokenProviderHelper.GetWindowsAccessTokenCore(IEnumerator`1 stsUris, Func`2 uriBuilder, String requestToken, TimeSpan timeout, DateTime& expiresIn)
   at Microsoft.ServiceBus.WindowsTokenProvider.OnBeginGetWebToken(String appliesTo, String action, TimeSpan timeout, AsyncCallback callback, Object state)
   at Microsoft.ServiceBus.TokenProvider.GetWebTokenAsyncResult..ctor(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
   at Microsoft.ServiceBus.TokenProvider.BeginGetWebToken(String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)
   at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingWebToken(ITokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
   --- End of inner exception stack trace ---

Server stack trace:
   at Microsoft.ServiceBus.TokenProviderUtility.GetMessagingWebToken(ITokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout)
   at Microsoft.ServiceBus.Messaging.HttpWebRequestExtensions.AddAuthorizationHeader(HttpWebRequest request, ITokenProvider tokenProvider, Uri baseAddress, String action)
   at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.<GetAsyncSteps>d__11.MoveNext()
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.Start()

Exception rethrown at [0]:
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.NamespaceManager.OnEndTopicExists(IAsyncResult result)
   at Microsoft.ServiceBus.NamespaceManager.TopicExists(String path)
   at Microsoft.Workflow.Deployment.Commands.WorkflowServiceConfigHelper.SetWFRuntimeSettings(String resourceDBConnectionString, String config)
   at Microsoft.Workflow.Deployment.Commands.AddWFHost.CallWFRuntimeSettings(Service wfserviceInfo, String unencryptedResourceConnectionString)
   --- End of inner exception stack trace ---
   at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
   at Microsoft.Workflow.Deployment.ConfigWizard.CommandletHelper.InvokePowershell(Command command, Action`3 updateProgress)
   at Microsoft.Workflow.Deployment.ConfigWizard.ProgressPageViewModel.AddWFNode(FarmCreationModel model, Boolean isFirstCommand)

----------------------------

Please if you have some tip to help me solve this problem

Reference these are the parameters that I'm installing:

The service account I am using is administrator for docminio has sysadmin privileges in SQL and local adminitracion on the server
Server architecture is SERVERSQL 2012 - SERVERWEB Widnows 2012

All ports in the firewall are habilidatos
The proxy allows all local addresses
Http generation of habilito
Firewall rules installation wizard were accepted
Cumulative Update 2 for workflow manager was installed

Rest API timeout exception

$
0
0

Hi,

We've a rest service and we consume it in the declarative workflow (SharePoint 2013). There is a method in the service which does some list and DB operations. As it takes some time to complete these process, sometimes we're unable to get the response from the service. Sometimes it works and sometimes not. So I suspect it's a timeout issue.

Is there any way to increase timeout option in the service or workflow side so that the workflow would always get the response from the service?

Thanks in advance.

SharePoint 2013 - Unable to open excel file (with macros) on browser

$
0
0

Hi,

We've a SharePoint 2013 site and the users upload excel files to a document library. When user clicks on any file, it opens in the browser . But if any file contains macros then it take a very long time and finally throws exception.

How to resolve this issue?

Thanks in advance.

Not able to access User profiles API.

$
0
0

Hi,

I am working on SharePoint 2013 integration project, I tried to access GET/_api/sp.userprofiles.peoplemanager but it gave me dialog box asking Username and Password.

I am able to access File, Folder, List, ListItem but I am not able to access sp.userprofiles.peoplemanager API?

Please find snippet for request below:  

GET .../_api/sp.userprofiles.peoplemanager

Authorization : Bearer XXXXXXXXX (I have a valid oauth token)

Accept : application/json

Content-Type: application/json

Thanks.


Create Alerts in event handlers

$
0
0

Hi 

I want to create alerts or popups  in each and every step of item added event handlers.

like column[1] got renamed , column[2] got renamed etc.

alert("column[1] got renamed"); 

How to achieve this.

Thanks,

Siva.



how to retreave data from List in sharepoint hosted app into Table?

$
0
0
hello 
i need to know how to retreave data from list (employee) in sharepoint hosted app into table jquery 
how can i do it ? 
thank you

Can we deploy SharePoint Apps on Office 365 using Visual Studio 2012?

$
0
0

Hello Folks,

I am learning SharePoint Apps now. I have O365 subscription. However, I need to make sure if developer can deploy Apps to Office 365 using VS 2012 Professional Edition. If not, Please guide me.



Thanks, Chintan

Sharepoint o365 Workflow connection web service is failing

$
0
0

We are using MSo365.  I have created a SP2013 Workflow, which calls a web service. The web service (asmx file) works great on its own (it receives parameters via the URL and performs an action not in SP).  When I have the workflow try to call the web service I am getting the error below.  I have created dictionary items for Accept, Content-Type and Authorization.  I've also tried wrapping it in an App Step with elevated privileges to no avail. Any help?

System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result) at Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.HttpRequestWorkItemAsyncResult.End(IAsyncResult result, Int32& responseCode) at Microsoft.Activities.Hosting.HostedHttpExtension.HttpRequestWorkItem.OnEndComplete(ScheduledWorkItemContext context, IAsyncResult result) 

Current user access in Site

$
0
0

Hi,

I want to find out in how many sites, current user have the access??

How should I do this. Should I use OOB web part or PowerShell script.

I have tried to add Search results web part and try to add Contentclass:"STS_Site" in query . It's giving nothing


Shubho


Business Requirement for SharePoint hosted apps

$
0
0

Hi,

  I'm having a business requirement to create sharepoint hosted apps. Can anyone tell me how to achieve this functionality.

1) When end user log in to sharepoint portal, he should automatically redirected to App web. He doesnt have any knowledge on how to go to site contents and click apps. So, when he hit the url, he should be automatically redirected to App web.

2) Right now, we have created a app using VS and provisioned columns, content types and list for app web. Can we create apps to provision all elements in host web without coding?

3) Heard SP designer not support app based workflow. Can we create a workflow with host web and then import into VS for app web and modify it?


Balaji -Please click mark as answer if my reply solves your problem.

How to retrieve SharePoint Metadata in standard XSD format?

$
0
0

Hi,

I am working on SharePoint integration project, in which I am fetching SharePoint metadata using
GET https://xxxxx.sharepoint.com/_api/$metadata and it is giving response in Edmx format.

here is the sample of metadata:

<edmx:Edmx Version="1.0"
    xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx">
    <edmx:DataServices m:DataServiceVersion="3.0" m:MaxDataServiceVersion="3.0"
        xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">

So is there any way to retrieve this metadata in standard XSD format? or Is there any tool or any Java code by which I can convert this MS Office Edmx format schema into standard w3c XSD one?

Thanks.


AppPart disappears

$
0
0

We have a problem with an app part from an app we developed and is available in the SharePoint store for SharePoint Online. Once in a while, the app part disappears from the page on which it was placed. The app itself and its content lists are still available through 'Site Contents', we just can't select the app part anymore to be placed on a page. This has happened a couple of times over the past year. The solution so far was to delete the app, and restore it from the recycle bin. The app part would then be available to us again, and the content lists would still have their data. Yesterdag, the app part went missing again. so when I tried this workaround again, the restoring of the app from the recycle bin failed. It seems to restore for a couple of seconds, but then it appears in the recycle bin again. I really need the data from the content lists of this app back, so simply reinstalling the app from the store is not the way to go! And furthermore, why does my app part become unavailable for no apparent reason in the first place? 

I've seen similar questions on the internet, but none were really answered. Does anyone have an idea about what might be happening?


Powerpivot - get external data from Analysis Services using a Data Pump Connection

$
0
0

Hi,

I've a powerpivot that needs data from an Analysis Services that are outside my domain, I created a Data Pump connection that is working as expected but when I try to use it as external data source the following beahivor happen:

1º) I choose the external data from an "Existing Connection", and the connection test is "Test Connection Succeeded" ;

2º) A create a MDX query to extract the data, then I validate the MDX with success;

3º) I click the Finish button and I get the following error message: "The Connection either timed out or was lost" :(

Any Suggestion?

Many Thanks, Luis

SharePoint Hosted App Part Disappeared

$
0
0
Here's a strange situation I encountered and have yet to come up with a solution - I have a custom SharePoint hosted app that contains an client app part and a few lists on the app web. The app part simply displays data from those lists onto the host web, nothing special. I opened the site (host web) today and noticed the page that contained the app part is now empty. Logically I assumed maybe someone removed the app part accidentally so I went to edit page to try to add the app part back. Surprise! The app part is completely gone and does not appear in the Add a App Part box. I checked all the categories to make sure it didn't decide to jump to a different group. From the Site Content page, I can still see the app is installed and I can browse the app web no problem, but now the just the app part is gone and cannot be found anywhere. Any ideas? I want to see if there are any suggestions before I uninstall/reinstall the app.

Incompactible error in Visual Studio 2012 - SharePoint project

$
0
0

Hi All,

We had a project on a server which had Visual Studio 2012 Premium, now we moved the project to another server which has Visual Studio 2012 Professional 

When I open the project in another server,none of my projects are loaded and they all show incompactible error 

The project is for SharePoint 2013

Please help 

Thanks in advance 

Displaying content based on date and time

$
0
0

I've been working on displaying content based on a date and time. I've used the Content Search web part and configured the query to search for content greater than a certain date based on a datetime column. I understand that KQL does not look at the time component of a datetime column.

Is there any other method I can try to resolve this issue?

Cheers.

CORS and ADAL.js for SharePoint Provider Hosted App in Office Store

$
0
0

Currently we are trying to utilize CORS and ADAL.js for authentication into our app. During the setup process it appears you must have control over the Azure Active Directory, so my question is the following:

Is using ADAL.js with CORS a viable option for store based apps where you may not have control over the Azure Active Directory or is this meant for apps made for a company’s internal use where you have control over the Azure Active Directory for both your app and your Office 365 tenancy?

Viewing all 8089 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>