Please note: This blog is no longer active. My new blog is located at http://blog.timwheeler.io

Wednesday, November 6, 2013

SharePoint Designer 2013 can't connect

Recently I had an issue trying to use SharePoint Designer 2013.
After trying to connect to my SharePoint 2013 environment it kept displaying the very vague error message:

Request Error
         Request Error The server encountered an error processing the request. See server logs for more details.

Using fiddler I was able to see that the call to  http://server/_vti_bin/client.svc/ProcessQuery was failing with a 400 (Bad Request) error.

The only errors that stood out in the ULS logs (amoung the other countless errors that just seem to be normal) was:

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Data.OData, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

And

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Data.Edm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Interestingly enough I had installed a later version of these nu-get packages on another (non SharePoint) project.  Since this is my general DEV environment I may have played a part in this error.

I did see some other posts talking about enabling anonymous access, but that wasn't the problem in my case.

At any rate, the fix was to gac the correct versions of those dll's.

  1. Created a new blank project in Visual Studio 2012/13
  2. In the package manager console install the nu-get packages:
  3. Install-Package Microsoft.Data.OData -Version 5.0.0.50403 http://www.nuget.org/packages/Microsoft.Data.OData/5.0.0.50403
  4. Install-Package Microsoft.Data.Edm -Version 5.0.0.50403
Then browse to your source folder for the new package and locate the \packages\Microsoft.Data.OData.5.0.0.50403\lib\net40\Microsoft.Data.OData.dll
and
\packages\Microsoft.Data.OData.5.0.0.50403\lib\net40\Microsoft.Data.Edm.dll

You can now easily gac these using gacutil or simple drag into C:\Windows\Assembly
One iisreset later and all was well in SPD land...






3 comments:

  1. Hi,

    Just to tell you that I have encountered the same exact issue. How I ended up creating it..no idea. But it worked. Thanks a lot.

    ReplyDelete
  2. Update on my comment. The issue that I was having was getting an error saying:

    The server was unable to save the form at this time. Please try again.

    The errors were what you wrote.

    ReplyDelete
  3. The BEST CASINO Site in the USA with Promotions - ChoeGocasino
    The BEST CASINO site in the 카지노사이트 USA with Promotions - ChoeGocasino.com is 제왕카지노 for players from all over the world. It has a lot 바카라사이트 to offer,

    ReplyDelete