Error message when you try run a Web application that is built on the .NET Framework: "Server Error in '/' Application" (917413)
The information in this article applies to:
- Microsoft .NET Framework 1.1 Service Pack 1 (SP1)
- Microsoft .NET Framework 1.1
- Microsoft ASP.NET (included with the .NET Framework 1.1)
- Microsoft ASP.NET (included with the .NET Framework) 1.0
- Microsoft .NET Framework 1.0 SP3
SYMPTOMSWhen you try to run a Web application that is built on the
Microsoft .NET Framework, you may receive an error message that resembles the
following: Server Error in '/'
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
36: by Microsoft that offers a single logon and core
profile services for member sites. Line 37:
--> Line 38: <authentication
mode="Forms"> Line 39: <forms
name=".ApplicationName"
loginUrl="Login.aspx" /> Line
40: </authentication>
Source File:
Drive:\InstallationPath\ApplicationName\web.config Line: 38 This problem occurs after you move
the application to a new server location. CAUSEThis problem occurs when a virtual directory in Microsoft
Internet Information Services (IIS) is configured to have an incorrect
application name.RESOLUTIONTo resolve this problem, remove the virtual directory in
IIS. Then, re-create the virtual directory and configure it as an
application. To remove the virtual directory, follow these steps:
- Click Start, and then click
Control Panel.
- In Control Panel, double-click
Administrative Tools, and then double-click Internet
Information Services.
Note If the Administrative Tools icon is unavailable
in Control Panel, click Switch to Classic
View, and then double-click Administrative
Tools. - Click the name of the server that you want to configure,
and then double-click Web Sites.
- Double-click the name of the Web site that you want to
configure.
- Right-click the name of the virtual directory that you
want to remove, and then click Delete.
- Click Yes.
To create a new virtual directory and configure it as an
application, follow these steps:
- Click to select the name of the Web site in which you want
to add the new virtual directory.
- On the Action menu, point to
New, and then click Virtual Directory.
- In the Virtual Directory Creation Wizard, click Next.
- Type the name of the virtual directory that you want to
create, and then click Next.
- Click Browse, select the directory for the
application, and then click OK.
- Click Next, and then click
Finish.
Note By default, a new application that has the same name as the new
virtual directory is created in IIS.
Modification Type: | Major | Last Reviewed: | 5/30/2006 |
---|
Keywords: | kbprb kbinfo kbtshoot KB917413 kbAudDeveloper |
---|
|