[Mono-dev] Errors: sessionState

azher at hep.caltech.edu azher at hep.caltech.edu
Sun Sep 9 09:51:07 EDT 2007


Hi,

I have just installed 1.2.5 and while running my .net application i got 
this error : Code is at the end of email. Can someone plz suggest what 
could be wrong ??

httpd.conf is:

include /etc/httpd/conf/mod_mono.conf
MonoServerPath default /usr/local/1.2.5/bin/mod-mono-server2

Alias /aspx "/usr/local/1.2.5/lib/xsp/test"
MonoApplications "/aspx:/usr/local/1.2.5/lib/xsp/test"

<Location /aspx>
        SetHandler mono
</Location>


Thnx
-Azher

-----
Server Error in '/aspx' Application
The section <sessionState> can't be defined in this configuration file 
(the allowed definition context is 'MachineToApplication'). () ( line 14)

Description: Error processing request.

Error Message: HTTP 500.
System.Configuration.ConfigurationErrorsException: The section
<sessionState> can't be defined in this configuration file (the allowed 
definition context is 'MachineToApplication'). () ( line 14)

Stack Trace:

System.Configuration.ConfigurationErrorsException: The section
<sessionState> can't be defined in this configuration file (the allowed 
definition context is 'MachineToApplication'). () ( line 14)
  at System.Configuration.SectionInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlTextReader 
reader, Boolean overrideAllowed) [0x00000]
  at System.Configuration.SectionGroupInfo.ReadContent
(System.Xml.XmlTextReader reader, System.Configuration.Configuration 
config, Boolean overrideAllowed, Boolean root) [0x00000]
  at System.Configuration.SectionGroupInfo.ReadData
(System.Configuration.Configuration config, System.Xml.XmlTextReader 
reader, Boolean overrideAllowed) [0x00000]
  at System.Configuration.SectionGroupInfo.ReadContent
(System.Xml.XmlTextReader reader, System.Configuration.Configuration 
config, Boolean overrideAllowed, Boolean root) [0x00000]
  at System.Configuration.SectionGroupInfo.ReadRootData
(System.Xml.XmlTextReader reader, System.Configuration.Configuration 
config, Boolean overrideAllowed) [0x00000]
  at System.Configuration.Configuration.ReadConfigFile
(System.Xml.XmlTextReader reader, System.String fileName) [0x00000]
  at System.Configuration.Configuration.Load () [0x00000]
  at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent) 
[0x00000]
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String 
locationSubPath) [0x00000]
  at System.Configuration.InternalConfigurationFactory.Create
(System.Type typeConfigHost, System.Object[]
hostInitConfigurationParams) [0x00000]
  at
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration 
(System.String path, System.String site, System.String locationSubPath, 
System.String server, System.String userName, System.String password) 
[0x00000]

09/09/2007 13:24:49

======================================

<?xml version="1.0"?>
<configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

        <!-- Please Dont Modify this configuration file, unless you know
what you are doing -->

        <configSections>

        </configSections>
        <connectionStrings>
                <add name="TrakkerDBConnectionString1"
connectionString="Server=Axxxxxx;Initial Catalog=xxxxxx;Persist S
ecurity Info=True;User ID=xxxxx;Password=xxxxx;Max Pool Size=20;Connect 
Timeout=1800" providerName="System.Data.SqlClient"/>
        </connectionStrings>
        <system.web>

                <sessionState
           mode="InProc"
     timeout="20"
     >
                </sessionState>

                <customErrors
defaultRedirect="~/WebPages/Client/Error.aspx" />
                <roleManager enabled="true"
defaultProvider="FarazSqlRoleProvider">
                        <providers>
                                <add
connectionStringName="TrakkerDBConnectionString1"
name="FarazSqlRoleProvider" type="Syst
em.Web.Security.SqlRoleProvider"/>
                        </providers>
                </roleManager>









More information about the Mono-devel-list mailing list