Yesterday we were trying to change the session state properties of one of our sharepoint web sites and what resulted was really odd.
After we made the changes, we started getting the following in our event log error:
Error: Failure in loading assembly: Microsoft.SharePoint.Portal,
Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c
Here is what we did
- opened up IIS
- right clicked on the site
- choose properties.
- clicked to the ASP.Net tab
- clicked edit configuration
- clicked to the state management tab
- changed the Session State Mode from inProc to StateServer.
- clicked ok, and thought everything was good to go.
But wait, now NOTHING worked. Sure, we could still surf to the home page of the sharepoint site, but trying to do anything caused errors. So, we set everything back to the original values thinking this would solve our problem. NOPE.
After trying a bunch of different things and checking on google we finally found the issue (here). The problem is we trusted the ASP.net configuration tool would do its job correctly, bad assumption.
Turns out that when you use the configuration tool, it will add an xmlns attribute (xmlns=http://schemas.microsoft.com/.NetConfiguration/v2.0) to the <configuration> node. For what ever reason, sharepoint does NOT like this node and will not parse the web.config file correctly.
To resolve this issue, we simply removed the xmlns attribute and everything worked fine.
I am not sure why the config editor would add this, if anyone knows please share. Hope this post can help the next poor sap that has this issue.
Till next time,
Posted
12-05-2007 1:42 PM
by
Derik Whittaker