I am quite a new at SharePoint app developing, but recently I needed to deploy and debug App for SharePoint 2013. When I created a new project everything worked fine. I did have a problem though when I wanted to run a project which has been sent to me. I hit the run button then I received this error message: Workflow debugging prerequisites failed to complete. Would you like to disable workflow debugging in order to debug other parts of this project? Workflows will still be installed but will not have debugging support.
It is certain I don't want that, and when I rejected disabling debugging I received this warning and error:
Warning: Microsoft.VisualStudio.SharePoint.SharePointConfigurator.exe could not authenticate successfully to SharePoint to provision workflow debugging prerequisites.
Error: Error occurred in deployment step 'Install app for SharePoint': Deployment was cancelled.
As it turned out it wasn't any technical problem, but just my misunderstanding of handling SharePoint apps (which could be as I think also a problem for other people).
Where the problem is:
You can easily find out that SharePoint apps don't use WSP file but app file. I would expect that this app file is automatically created whenever the Start button is hit (This is the approach which worked fine with WSP files). But I was wrong and you have to create app file manually before you hit the start button. This isn't anything sophisticated, you just right click on your application in Solution Explorer and then click on Publish.. option.
This solved my problem just fine and if I am wrong about something, please let me know. As I said, I am really newbie at SharePont 365 development.
Thanks for reading ;)
I had the same error, but I had to fix it a different way. I’m working in O365 so I am not sure it works the same on premise. Go to Admin | SharePoint and make sure you have plenty Storage on the Site Collection that you are debugging on. If not, boost the storage quota and try again.
ReplyDeleteDarn, didn't work for me.
ReplyDeleteIt didn't solve my problem, dont you have any other solution??
ReplyDeleteHi,
ReplyDeletedo you receive the same error message?
Yes, exactly the same error message. But clicking Publish and trying again doesn't help. I even tried deploying without workflow debugging, then enabling debugging and trying again but it doesn't help. I tried reinstalling the office dev tools for VS and running the configurator with the -force option which rebuilds the databases but that doesn't help either. Your blog post is the only hit on google for this error....
ReplyDeleteSorry I am not sure I understand you correctly. Have you tried install ordinary SP app too? Or is the error message appear when you try deploy workflow?
ReplyDeleteHi David, in my case when I try to install ordinary SP app it gives me an error that there is no SP server on your machine!! I would really appreciate it if you can help me
ReplyDeleteOh, that's a shame. I would like to help the problem is I don't currently work with SP 2013.
ReplyDeleteFrom the bottom of my head, I would check:
1. (I am not sure about correct terms) you have to create site collection for your apps using development or developer template (not sure which one is it)
2. check permissions
3. At visual studio you have to specify correct URL where you want to publish your solution(app). it should be your new site collection
4. At visual studio use publish option to deploy it
Thanks for the post, It helped me out.
ReplyDelete