Blog Archives

Error: response message does not match the content type of the binding

Recently whilst creating a theme for an older wss site at a client, I ran onto this error working on a new development vm.

The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8)

Make sure that Windows Communication Foundation HTTP Activation is enabled on the server and all will be good again.

Hide Site actions menu for user group

Its been a while since I let you know what I am busy with, lets just say it involves writing a generic KPI webpart for wss….Almost complete now, really interesting I  must admit. Using content types etc, I will write a full article about that when the product is complete.

For now, in this current said product I am busy with, I also didn’t want to display the site actions menu in the wss site. Now there are a few ways of accomplishing this. Firstly one can modify the master.cs file or one can write a feature that you install. Both with its limitations. What worked for me best was to limit the display using Sharepoint User Groups and permissions.

Here is how you can accomplish hiding the Site Actions Menu for a Sharepoint User Group.

Go to:

Site Actions -> Site Settings -> Users and Permissions -> Advanced Permissions -> Settings -> Permission Levels -> Contribute (your sharepoint group used to limit visibility on the menu) -> Site Permissions

Uncheck the following then submit:

1. Manage Web Site  –  Grants the ability to perform all administration tasks for the Web site as well as manage content.

2. Add and Customize Pages  –  Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Windows SharePoint Services-compatible editor.

3. Browse Directories  –  Enumerate files and folders in a Web site using SharePoint Designer and Web DAV interfaces.

4. Enumerate Permissions  –  Enumerate permissions on the Web site, list, folder, document, or list item.

Some or all identity references could not be translated

Today I had to take my VM off of the domain that it was on and after doing so, got the error Some or all identity references could not be translated when I tried to access the “Applications” or “Operations” tab from Central Administration.

After some research and stsadm commands, this command did the trick. Remember that this command is for the NEW account and not to update an existing account.

stsadm.exe -o updatefarmcredentials -userlogin -password

Hope it helped !

Report Viewer Web Part and whole page refresh

Recently I had to modify a reporting dashboard we created in wss3 and encountered something interesting.We have 4 reports displaying on the one web part page, and then links to other reports. The problem is, that when you open the landing page, the user simply sees the “Loading Report” spinning circles, and that is annoying to say the least. So applying a simple web part configuration setting (Asynchronous Rendering), we are able to enhance the customers experience.

So, in short, the turning of the (Asynchronous Rendering) option on the reports at the top of the page, allowed the page to load once the html has been retrieved, eliminating the “Loading Report” probem we encountered. The (Asynchronous Rendering) setting was still active on the most bottom report, however the user doesn’t see this report when intially loading the screen.

This is fixed in SharePoint Foundation, thank you Microsoft.

Here is where you can read more about it.

Foxy out.

Sharepoint config modification manager

We all have a need to manage application settings in our configuration files. Sometimes with many solutions being deployed to a single Sharepoint farm, this can become a terrible experience and tedious excercise.

Recently I came accross a blog post were a webconfig page was written to help us manage the config sections using the SPWebConfigModification class. I changed the page to allow me to edit the the settings also and I will post the solution in the near future.

Here is the Original Post

Foxy over and out.

%d bloggers like this: