Menu
Cutty
  • Chryslers
  • Lutherie
  • YLSNED
  • About
Cutty

Category: You Learn Something New Every Day

Proof that you do actually learn something new every day.

SharePoint Calendar – Offset and length were out of bounds….

Posted on September 19, 2016September 23, 2016 by Iain 'Cutty' Carlin

When swapping from the Day view to Week view of a SharePoint calendar, we were getting the following error message: “Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection”.

Tried setting the Information Management Policy Settings to 2 months (was 3) to archive list down to less items (It had about 4800 records, got it down to 4200). [NB: Run Information Management Policy job first, then Expiration Policy]. Problem was not resolved.

We have 2 views of the data, filtered to a different number of items in each.…

+

Error opening SharePoint calendar item

Posted on May 17, 2016December 1, 2019 by Iain 'Cutty' Carlin

“Item does not exist. It may have been deleted by another user.”

Remove everything after the ID value in the url for the item, after and including the first dot. You can then use the view screen to delete the item.

http://blog.incworx.com/blog/sharepoint-developer-blog/let-me-tell-you-how-i-conquered-item-does-not-exist-it-may-have-been-deleted-by-another-user…

+

C# tip-bits

Posted on April 22, 2015December 1, 2019 by Iain 'Cutty' Carlin

Learning some interesting stuff doing the edX Microsoft Programming with C# course. Thought I’d list some of them here for reference

  • The test value in a while loop is called the sentinel value.
  • A do loop always executes at least once (so use it instead of setting the sentinel value first before entering a while loop)
  • You can use named arguments so that you don’t have to pad out optional parameters, e.g.: StopService(true, serviceID: 1); serviceID is the name of one of many optional parameters but not necessarily the second one for the StopService method.
…
+

Changing data source on a DataFormWebPart

Posted on April 20, 2015 by Iain 'Cutty' Carlin

https://tommdaly.wordpress.com/2013/10/22/reuse-dataform-web-part-change-listid-to-listname-and-scrub-guids…

+

Infopath form error when calling WCF service via SSL

Posted on April 14, 2015December 1, 2019 by Iain 'Cutty' Carlin

Interesting issue with a few Infopath forms. They’ve been working fine for ages using a WCF service to update another system.

When we changed our SharePoint site to use SSL, the form was generating an error when calling the WCF service. There were a number of factors at play:

  1. The WCF service was not configured correctly to have an SSL end point. By changing the binding configuration in the web.config for the web service, I was able to get the WSDL to display correctly using https when browsing to the service. However, the form still didn’t work AND the WSDL returned had the wrong URL (was the internal server name not the FQDN).
…
+

Calling lists web service fails when using SSL but works with HTTP

Posted on March 30, 2015March 30, 2015 by Iain 'Cutty' Carlin

Had an issue where a Data Form Web Part was calling a list service (asmx or svc) on a different site collection in order to expose data between the two sites.

It would work internally (using http), but once the page was loaded externally, we would get an error. Externally the site is loaded via https.

Trying the same page internally with https generated the same error.

Turns out the https site needs to be configured as an INTERNAL URL in Alternate Access Mappings in Central Administration. We had it configured as Extranet. It is possible to configure both https and http urls on the same default zone in AAM rather than in separate zones.…

+

Displaying SharePoint blog posts on another page

Posted on February 25, 2015April 17, 2015 by Iain 'Cutty' Carlin

Great article on how to do this here:

http://erikswenson.blogspot.com.au/2010/03/sharepoint-2010-content-query-for-blog.html…

+

Could not load the Web.config configuration file…the given key was not present…

Posted on February 24, 2015 by Iain 'Cutty' Carlin

Turns out I had https://… instead of http://…. as the URL property of the SharePoint project.

Found the answer at:

http://www.thorntontechnical.com/tech/sharepoint/could-not-load-web-config-file-the-given-key-was-not-present-in-the-dictionary…

+

Sandboxed solution – “Cannot start service SPUserCodeV4 on computer”

Posted on February 23, 2015 by Iain 'Cutty' Carlin

Turns out that the “Microsoft SharePoint Foundation Sandboxed Code Service” was not started on the server.…

+

Sandboxed Solution – Only a site collection administrator can activate or upgrade

Posted on February 23, 2015 by Iain 'Cutty' Carlin

Was trying to deploy an event receiver to a site collection and received the error “Only a site collection administrator can activate or upgrade.”

Problem was that the user I was logged on to the development server with to deploy the solution was not a site administrator.…

+
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Recent Posts

  • Books I read in 2025
  • 2024 was the best year for our solar system
  • Books I read in 2024
  • Books I read in 2023
  • Happy New Year 2024

Categories

  • Chryslers (1)
  • Cutty's Blog (13)
  • Lutherie (38)
  • You Learn Something New Every Day (44)
©2026 Cutty | Powered by Superb Themes