Webinterface and SharePointServices (Syntax Error Popup)

All about the Webinterface.
FAQ, How-to and user questions.

Moderator: Moderator Team

Webinterface and SharePointServices (Syntax Error Popup)

Postby MarcoM » 26. Jun 2007, 14:12

If you have Microsoft SharePointServices installed prior to LOGINventory Webinterface ≤ 4.5.2 you may run into the following error.

By calling the Webinterface a message box is showing “Syntax Error”. After confirming this box, a HTML source code is shown inside of a textbox.

This happens because the SharePointServices creates a 'web.config' file in the 'wwwroot' folder, that removes the SessionStateModule element from the 'httpModules' section for all applications. So you can either change the line

Code: Select all
<!--   <add name="Session" type="System.Web.SessionState.SessionStateModule"/>-->

into
Code: Select all
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>

inside the SharePointServices web.config to enable the SessionStateModule for all pages, which is the default setting if SharePointServices are not installed.
Or you can add
Code: Select all
<httpModules>
   <add name="Session" type="System.Web.SessionState.SessionStateModule" />
</httpModules>

to the <system.web></system.web> element of the Webinterface web.config file.
User avatar
MarcoM
Moderator
Moderator
 
Posts: 245
Joined: 1. Sep 2003, 00:00

Return to Webinterface

Who is online

Users browsing this forum: No registered users and 1 guest