How do I? – Solve the “Cannot use ‘partitionResolver’ unless the mode is ‘StateServer’ or ‘SQLServer’” error

Written by Cornelius J. van Dyk on . Posted in How Do I...

OK, so I have an app deployed on a SharePoint server. It’s a standard ASP.NET web app and it runs on port 80. Since SharePoint is now a good little ASP.NET citizen and behaves just like any other ASP.NET web app, the two should live together in peace right?

Apparently not… I kept getting this error when I clicked a link in SharePoint that links to the web app.

Server Error in ‘/SPSWebApp’ Application.

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Cannot use ‘partitionResolver’ unless the mode is ‘StateServer’ or ‘SQLServer’.

Source Error:



Untitled-4

Source File: C:\Inetpub\wwwroot\wss\VirtualDirectories\80\web.config Line: 181

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

Now, most newsgroups and blogs I found recommended installing the web app on a different port. Though that might work just dandy in a wide open environment, it won’t work if all ports are blocked by default and only certain ports are opened by request. So that certainly did not seem like a good option to me.

After some digging around and trying different things, I finally managed to resolve the problem. As with most debugging issues, it’s a very small fix. In fact, it totals only 26 characters to be sure. It’s a small change to the web.config file of the web app in question. To resolve the problem, we just have to add the “partitionResolverType” to the “sessionState” key. Change the web.config from this:



Untitled-5

And viola! All working again! 😉



Cheers
C




image

Tags: , ,

Trackback from your site.

Cornelius J. van Dyk

Born and raised in South Africa during the 70's I got my start in computers when a game on my Sinclair ZX Spectrum crashed, revealing it's BASIC source code. The ZX had a whopping 48K of memory which was considered to be a lot in the Commodore Vic20 era, but more importantly, it had BASIC built into the soft touch keyboard. Teaching myself to program, I coded my first commercial program at age 15.

After graduating high school at 17, I joined the South African Air Force, graduating the Academy and becoming a Pilot with the rank of First Lieutenant by age 20. After serving my country for six years, I made my way back into computer software.

Continuing my education, I graduated Suma Cum Laude from the Computer Training Institute before joining First National Bank where my work won the Smithsonian Award for Technological Innovation in the field of Banking and Insurance. Soon I met Will Coleman from Amdahl SA, who introduced me to a little known programming language named Huron/ObjectStar. As fate would have it, this unknown language and Y2K brought me to the USA in 1998.

I got involved with SharePoint after playing around with the Beta for SharePoint Portal Server 2003. Leaving my career at Rexnord to become a consultant in 2004, I was first awarded the Microsoft Most Valuable Professional Award for SharePoint in 2005, becoming only the 9th MVP for WSS at the time. I fulfilled a life long dream by pledging allegiance to the Flag as a US citizen in 2006. I met the love of my life and became a private consultant in 2008. I was honored to receive my ninth MVP award for SharePoint Server in 2013.

Leave a comment

You must be logged in to post a comment.