RSS Feed
LinkedIn
Delicious
Skip to main content

Cornelius J. van Dyk's SharePoint Brain Dump

Rate this blog:
Go Search
Home
Step-by-Step Guides
Downloads
Post Archive
Capacity Planning
Architecture & Topology
Support Forums
SharePoint Team Blog
  

 Important Posts

  Complete MOSS Licensing Info
  SharePoint Speak Terminology Dictionary
  SPCAP - SharePoint Capacity Planning Tool
  Step-by-Step – A REAL world upgrade of a SharePoint Portal Server 2003 (SPS) farm to Microsoft Office SharePoint Server 2007 (MOSS)
  Best Practice - Determine if a SPUser has Admin rights to the SPWeb
  SharePoint 2010 - Good, Better, Best
Cornelius J. van Dyk's SharePoint Brain Dump > Posts > How do I? – Solve the “Cannot use ‘partitionResolver’ unless the mode is ‘StateServer’ or ‘SQLServer’” error
How do I? – Solve the “Cannot use ‘partitionResolver’ unless the mode is ‘StateServer’ or ‘SQLServer’” error

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:

 

Line 179: </webParts>

Line 180: <machineKey validationKey="D958D63ADC4D5F58B381B7FAD070BA7B1941D2B88DD7AB37" decryptionKey="17EB3DB2B3F85790D453F2BD919CD4357D5C7B10EDB4E6C5" validation="SHA1" />

Line 181: <sessionState mode="SQLServer" timeout="60" allowCustomSqlDatabase="true" partitionResolverType="Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />

Line 182: </system.web>

Line 183: <runtime>


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:

<configuration>
<system.web>
<sessionState mode="InProc" …
</system.web>
</configuration>

To this:

<configuration>
<system.web>
<sessionState mode="InProc" partitionResolverType=""
</system.web>
</configuration>

And viola! All working again! ;-)

Later
C

Fave it Digg it Reddit Del.icio.us

Comments

subrazATgmail.com

it worked for me tks
at 11/6/2007 4:24 AM

http://www.cjvandyk.com/blog

Glad it helped!

Later
C
Cornelius J. van Dyk at 11/6/2007 8:22 AM

nbenelli@gestar.com.ANTISPAM.br

You rock! Very good solution! Worked pretty fine to me! Many thanks! :)
at 11/6/2007 9:17 AM

http://www.cjvandyk.com/blog

Thanks man!
C
Cornelius J. van Dyk at 11/8/2007 3:28 AM

kflor@inttrust.ANTISPAM.gr

thanks for the tip !
at 11/26/2007 6:05 AM

http://www.cjvandyk.com/blog

You're welcome!

Later
C
Cornelius J. van Dyk at 11/26/2007 10:55 AM

Rohan Reddy

Thanks for the tip.
at 1/16/2008 8:40 AM

http://www.cjvandyk.com/blog

You're welcome Rohan.

Later
C
Cornelius J. van Dyk at 1/17/2008 5:16 AM

asifjahmed@gmail.ANTISPAM.com

Thanks a lot! This worked for me on SQL Server Reporting Services 2005
at 3/20/2008 5:12 AM

george.thanos@avon.ANTISPAM.com

great tip...worked for me too million thanx
at 3/24/2008 4:56 AM

http://yeuhaiphong.com

You must remove Report Components of SQL and Restart.. ^^
at 4/1/2008 9:40 PM

http://www.cjvandyk.com/blog

Thanks for the update.

Later
C
Cornelius J. van Dyk at 4/7/2008 6:58 PM

http://www.cjvandyk.com/blog

My pleasure George!

Later
C
Cornelius J. van Dyk at 4/8/2008 2:29 AM

http://www.cjvandyk.com/blog

Glad it helped Asif!

Later
C
Cornelius J. van Dyk at 4/8/2008 2:33 AM

Eric Lee

It works for me. Thanks for the solution.
at 5/16/2008 11:16 AM

ericspecialist@yahoo.ANTISPAM.com

Subject:  I am still stuck on the same MOSS Report issue:

I implemented your suggested solution by replacing my original line:
 
My original line of code:
<sessionState mode="SQLServer" timeout="60" allowCustomSqlDatabase="true" partitionResolverType="Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />

Your suggested line:
<sessionState mode="InProc" partitionResolverType="" …


1). First I could access to my empty Report web site:

http://localhost/Reports

2). I used the BIDS and developed a simple report project and deloyed it to http://localhost/ReportServer

3).  After I launched http://localhost/Reports, clicked to view my report, I got the following error:

=======================================
Microsoft.Reporting.WebForms.InvalidConfigFileTypeException: The type Microsoft.SharePoint.Portal.Analytics.UI.ReportViewerMessages, Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c does not implement IReportViewerMessages or could not be found
=======================================

Any suggestion to fix this issue?

Thanks,
Eric


at 5/16/2008 1:28 PM

http://www.cjvandyk.com/blog

Eric Lee,

My pleasure!

Later
C
Cornelius J. van Dyk at 5/22/2008 4:01 AM

http://www.cjvandyk.com/blog

Eric,

You don't seem to be getting the same error though.  The IReportViewerMessages part seems to be throwing an error related to your report implementation.  You might want to try and post this question to the SQL  reporting services forums on MSDN.  I haven't seen this error before and don't have any other suggestions for you other than the fact that your partitionresolver error is no longer in play.

Later
C
Cornelius J. van Dyk at 5/22/2008 4:07 AM

pguzman2002@hotmail.ANTISPAM.com

I tried first in the web.config under the deafult installation, but actually it worked perfectly when I applied your solution in the specific web.config under my solution virtual directory, which was in another drive.

Thanks a lot !!
at 7/24/2008 12:02 PM

http://www.cjvandyk.com/blog

Hey pguzman2002,

I'm glad it was helpful.

Later
C
Cornelius J. van Dyk at 7/30/2008 6:54 PM

eric.durose@verari.ANTISPAM.com

Just wanted to say Thank You for the fix. I have a MOSS 2007 installation that was causing this issue in one of my custom applications.
at 9/15/2008 4:54 PM

charuhshan@gmail.ANTISPAM.com

Thanx a lot for your great help. Your solution Working perfectly
at 9/30/2008 6:19 AM

man.dang@novellus.ANTISPAM.com

Your solution worked.  Thank you.

at 10/23/2008 3:19 PM

http://www.cjvandyk.com/blog

Hey man.dang,

Glad it worked for you!  Thanks for letting me know.

Later
C
Cornelius J. van Dyk at 11/10/2008 6:14 PM

Claudio Hidetoshi

Very good !
at 12/17/2008 4:15 AM

http://spiderwool.blogspot.com

In my production envn, we have things working with the following entry on the web config

"<sessionState mode="SQLServer" timeout="60" allowCustomSqlDatabase="true" partitionResolverType="Microsoft.Office.Server.Administration.SqlSessionStateResolver, Microsoft.Office.Server, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />"

But, on my staging it's not working...I have to make a change to what you said, then it's working...

so, do you have any idea why it's working on one environment and not in another.

Is it something to do with the Reporting Services??????????????????????????????

Would appreciate any help. Thx
at 12/19/2008 8:11 AM

mkdwarak@yahoo.ANTISPAM.com

Many Thanks !!!!! Your Solution Worked...!!!!!
at 2/4/2009 8:41 AM

Very Thankful guy who gets to sleep tonight

Thank you, Thank you, Thank you!
at 4/8/2009 8:24 PM

http://oscarzoso.blogspot.com

Thanks :D!
at 9/4/2009 1:15 PM

Nuno.Reis@Unicer.ANTISPAM.pt

The solution I wanted was my first search result. Quick and easy.
Thanks a lot.
at 9/7/2009 2:35 AM

http://www.cjvandyk.com/blog

Hey Nuno,

I'm happy to be of service!

Later
C
Cornelius J. van Dyk at 9/16/2009 4:42 AM

http://jeppeh.dk

Great tip! partitionResolverType="" did the trick!

Jeppe
at 12/2/2009 1:47 AM

phil@gotitright.ANTISPAM.com

Another believer here... Thanks!
at 4/9/2010 1:41 PM

phil@shisbey.ANTISPAM.com

Thanks! Worked for me.
at 4/12/2010 12:16 PM

http://www.cjvandyk.com/blog

My pleasure Phil!

Later
C
Cornelius J. van Dyk at 4/12/2010 7:35 PM

Add Comment

PLEASE NOTE
Comments are moderated so posting your comment here, will NOT make it visible right away.  Once I've reviewed your comment, I will publish it for all to see.  This is unfortunately needed in order to deal with all the crapware and spambots that post to my blog on a regular basis.

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Your Email or Blog URL *


Body *


Attachments