Enable-SPSessionStateService : '=' is an unexpected token
I can't seem to run the below command to enable sessions in my sharepoint farm. This is a single tier deployment and am part of the NT administrators group and Farm Administrators in Sharepoint. PS> Enable-SPSessionStateService -DefaultProvision Enable-SPSessionStateService : '=' is an unexpected token. The expected token i s ';'. Line 786, position 123. At line:1 char:29 + Enable-SPSessionStateService <<<< -DefaultProvision + CategoryInfo : InvalidData: (Microsoft.Offic...teServiceCmdlet: EnableSessionStateServiceCmdlet) [Enable-SPSessionStateService], XmlExcept ion + FullyQualifiedErrorId : Microsoft.Office.Server.Administration.EnableSes sionStateServiceCmdlet
June 13th, 2011 2:03pm

I will reply to my own post since I resolved the issue! :) The cmdlet was failing because it was not happy with an AppSetting value I manually put in one of my config file. I know we are not allowed to edit web.config by hand but I am in a dev environment and wanted something quick. Regardless, I am completly stupified that it would inspect an AppSetting value which in my case contained URL value containing the word next_url in the query string. When I opened the web.config in Visual Studio, I saw this line in the web.config (line 786 btw...) with error description of "Entity 'next_url' not defined". Anyway, it wasn't really obvious an spent a couple of hours figuring out why such a simple powershell cmd would fail on me.
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2011 3:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics