Okay, I’ve not done any blogging for a while, been mega busy… But I just came across this problem in a MOSS environment, which after a bit of digging was easily resolved. Just thought I’d share…

While trying to filter a list with a Telerik component. I came across the above error ( also shown in the screen shot below)

After looking in the log files I discovered that is was throwing an exception of type ThrowIfMaxHttpCollectionKeysExceeded

Entry in the log file

Error=Operation is not valid due to the current state of the object. at System.Web.HttpValueCollection.ThrowIfMaxHttpCollectionKeysExceeded() at System.Web.HttpValueCollection.FillFromEncodedBytes(Byte[] bytes, Encoding encoding) at System.Web.HttpRequest.FillInFormCollection()

After a bit of digging it turns out that this is a direct result of an MS update to thwart DOS attacks. As can be seen by the entry on Scott Guthrie’s Blog. However, in this case, i was trying to fix an internal application so DOS attacks were not an issue.

One of my latest challenges was to display one of the new SharePoint 2010 social fields in a datagrid. At first this was just to display the field, but after the client seen the mouse-over functionality on the list item, they wanted to be able to assign a rating straight from the grid without having to go to the item itself. So, here’s how I went about it.

Firstly I created a custom control call as seen in the code sample below:

I just like to start by saying that this post is not ground breaking. However, when I tried to do this it did take me a while to find the answer, so I thought I’d just blog to add it to the grey matter.

As I’m sure you are all aware you can provision multiple files with preconfigured web parts by using a SharePoint module’s element file and a web part page as a template, by targeting the web part zones on the web part page.

However, trying to connect these caused me a bit of problems. In the end though it was quite straight forward. And can be done by specifying the following attributes in the code snippets and the descriptions given in the table below.

Okay, before anyone comments on the simplicity of this posting. It merely t allow me to get the script easily in the future. What’s the purpose of it? It basically retracts a solution and waits until its fully retracted, then deletes it, adds it in again and redeploys it. Not rocket science, but handy.

After receiving several DCOM error in Event Viewer about permission on various object I decided to amend the Launch and Activation Permissions of the Key in question. I this case it was IIS Admin Service with the Key {A9E69610-B80D-11D0-B9B9-00A0C922E750} and IIS WAMREG admin Service with the key {61738644-F196-11D0-9953-00C04FD919C1}. However, when I tried to amend I found that all the properties were disabled as seen below

After some Google-ing, I found that there were a couple of registry keys forcing this read-only state.

HKEY_CLASSES_ROOT\AppID\{A9E69610-B80D-11D0-B9B9-00A0C922E750}

HKEY_CLASSES_ROOT\AppID\{61738644-F196-11D0-9953-00C04FD919C1}

To change this – right click on the key and choose advanced, and replace the owner as the administrators group

The once this has been done change the administrator’s permissions to full control.

Now re-launch the component service and you should now be able to edit the values

By default, this value is set to 8 and apparently can be set to a maximum value of 14. As some of the filters were used by Virtual Box, etc. I decided to set this to the maximum, rebooted and, hey presto, it installed!!