Monthly Archives: May 2014

Failed to deploy SharePoint app to Office 365

During a development of my auto-hosted app, deploying to SharePoint Online started to fail in very undeterministic way.

1. When deploying through Visual Studio yout might receive:

  • Cannot register Services/*.svc on Windows Azure Service Bus: Unable to connect to the remote server
  • One or more services were unregistered from the Windows Azure Service Bus.

2. When deploying to AppCatalog

  • upload of app package to appCatalog site would fail. Usually at repeated attempt it would succeed.
  • If deployed succesfully, remote event receivers or workflow would not be triggered (application web wasn’t probably deployed, but there was no error message)


In my web project I used additional libraries (such as Exchange EWS libraries) which weren’t included in the package. These libraries weren’t in Visual Studio set to Copy Local = true.


Make sure to set all yours references to be included in the package. sp_app_externalLibs

Automatic upload of app content to SharePoint Online

This is a more of a tip, what I find very useful in development of SharePoint Apps in Visual Studio and I wish someone told me at the beginning, when I started.

When developing a SharePoint-hosted app, debug mode in Visual Studio offers great feature, which enables you to change content of your aspx page, js files, css styles and after saving, the content is automatically uploaded to the SharePoint environment, so you can test it immediately in the browser and still stay in debug mode. So there is no need for small changes to redeploy it.

Following picture shows, that after saving in the debug mode, the content was succesfully uploaded to SharePoint Online.


Changes of other file types, ie. SharePoint definition files (elements.xml, features, etc.) are not propagated, for this you need to redeploy it again.

Typescript issue

What I am still trying to figure out (and hoping guys watching stackoverflow will help me) is how to make it work with other file types, for example Typescript files.

After saving Typescript file, JS file is automatically re-generated , but this JS file and TS file are not uploaded to the server. It can be partially solved by manually changing content in JS file to trigger automatic upload to SharePoint, however I couldn’t find a way to upload TS file.

Access denied error while authenticating user in SharePoint 2010

After moving user account to different organizational unit in Active Directory, in some cases this user might then receive Internal server error 500, when accessing SharePoint 2010.


  • SharePoint Server 2010 – Standard
  • Intranet – Classic windows authentication (NTLM), no anonymous
  • SQL 2005 (!!!)

Log in dialog keeps pop in for the user, even though he is providing correct credentials (checked for sure).

When it happens

It happened, only when moving user to different organizational unit in Active Directory.

After some digging, we discovered, that this error happens only for users, that have this record in SharePoint Content database, table UserInfo, column tp_Token is set to 0x.




After a consultation with Microsoft, it’s caused by bug, that occurs only if using SQL 2005 database. It doesn’t happen in later versions. There is no KB for it (well not the public one).


  1. delete a user and recreate the account (using the powershell)
  2. If you really don’t care about Microsoft Support, you can change the value in database to null. (it works, but for obvious reasons don’t do it)

Hope it helps to lighten it up a little.

ESPC14 and my summary

European SharePoint Conference 2014  (#espc14) held in Barcelona was my first to attend and it was just amazing. I am grateful that I could be there and to be a part of the SharePoint community. It’s wonderful experience and chance to hear and see upfront what’s going on in SharePoint and what are the Microsoft plans.

This article tended to be only for my collegues and friends, but then I realized it’s general enough and it could be useful for others as well. I hope that this will enrich others and will give others some ideas what was presented and what I find interesting.

ESPC was happening 2 month after the main SharePoint conference in Las Vegas. European event is smaller, which I guess is not a bad thing. Mostly I regretted that I cannot split myself to be able to attend multiple presentation (I cannot imagine what I would feel in SPC).

For Czech readers, there are nice articles from Jana Babáčková

If you are interested in some numbers and comparison:

  • number of attendees: 10000 (SPC), 1400 (ESPC)
  • countries attendees were from: 85 (SPC), 45 (ESPC)
  • number of presentations: 230+ (SPC), 100 (ESPC)

(these are not official and exact numbers)

Well, now to the presentations. This list is what I found most interesting for developers. Also, it’s a list I would easily recommend to others to read through or watch. I was inspired by similar post by Jeremy Thake about SPC, which you can find here.

If it exists, I attach link to live video to SPC conference with same/similar presentation (SPC presentations were recorded, ESPC’s nope).

1. Keynote: Now We Know, Now We Don’t (Dan Holme)

  • video from SPC14 here.

2. Understanding the Five Layers of SharePoint Security (Michael Noel)

3. Optimizing SQL Server for Speedy SharePoint (Sahil Malik)

4. Think You Can Hack SharePoint? (Liam Cleary)

5. The Ultimate SharePoint Infrastructure Best Practices Session (Michael Noel)

6. ALM for Developing Apps and Sandboxed Solutions Targeting Office 365 (Jeremy Thake)

7. Using JavaScript Templates To Customise the SharePoint 2013 User Interface (Chris O’Brien)

8. Transitioning Your SharePoint Solution Model Skills to the New SharePoint App Model (Jeremy Thake)