Solved

Parser Error Message  :    <sessionState mode="StateServer".....

Posted on 2008-10-17
2
711 Views
Last Modified: 2010-04-21
I'm trying to publish a project to the web and have the following error in my web.config:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:
Line 198:          To disable cookies, set sessionState cookieless="true".
Line 199:    -->
Line 200:    <sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;user id=sa;password=" cookieless="false" timeout="30" />
Line 201:    <!--  GLOBALIZATION
Line 202:          This section sets the globalization settings of the application.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I also got the same error when <sessionState mode="InProc"...
Does anyone know how to remedy this problem?
0
Comment
Question by:dhapp
2 Comments
 
LVL 13

Accepted Solution

by:
TechTiger007 earned 250 total points
ID: 22747451
First, Have you configured your application folder as virtual directory in IIS?
Open IIS manager > right click on the folder where you have installed your web application and goto Properties > In Home Directory tab click on "Create Application" button. This should create the virtual directory for you. Then goto Directory security tab and enable Integrated windows authentication

Hope this should fix your issue
0
 

Author Closing Comment

by:dhapp
ID: 31507348
Thanks
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question