|
hi
when i try to use web.config in any asp.net application , an error occures like this :
***********************************************************************
Server Error in '/index.html' Application.
--------------------------------------------------------------------------------
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 1: <configuration>
Line 2: <system.web>
Line 3: <sessionState {this line is red}
Line 4: mode="StateServer"
Line 5: stateConnectionString="tcpip=127.0.0.1:42424" />
Source File: C:\Cassini\try3\SessionService\web.config Line: 3
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
***********************************************************************
can anyone help me? thanks.
|
|
|
You didn't mention whether or not you followed through on the error. Is your virtual directory configured as an application in IIS?
You didn't post the actual sessionState tag, either, for us to look at.
How are you creating your ASP.NET applications? Visual Studio creates the web.config for you.
<Added>
Some additional information:
Most of the time, this error describes a conflict between web.config and machine.config.
Think of "machine.config" as containing global settings, and "web.config" as containing application level settings.
If something is set in machine.config, that setting is scoped EXCLUSIVELY to the machine. When your app tries to change that setting, you get this error.
If you post machine.config and web.config, we can comb through them to see where the conflict lies.
|
|
|
|
|
|
|
|
|
© Copyright codetoad.com 2001-2005 |
|
|