Solved

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

Posted on 2008-10-17
2
703 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now