Microsoft KB Archive/917413

= Error message when you try run a Web application that is built on the .NET Framework: &quot;Server Error in '/' Application&quot; =

Article ID: 917413

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft .NET Framework 1.1 Service Pack 1
 * Microsoft .NET Framework 1.1
 * Microsoft ASP.NET 1.1
 * Microsoft ASP.NET 1.0
 * Microsoft .NET Framework 1.0 Service Pack 3

-





SYMPTOMS
When 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 : by Microsoft that offers a single logon and core profile services for member sites.

Line : -->

Line : 

Line : 

Line :

Source File: :\ \ \web.config Line:

This problem occurs after you move the application to a new server location.



CAUSE
This problem occurs when a virtual directory in Microsoft Internet Information Services (IIS) is configured to have an incorrect application name.



RESOLUTION
To 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:
 * 1) Click Start, and then click Control Panel.
 * 2) 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.
 * 1) Click the name of the server that you want to configure, and then double-click Web Sites.
 * 2) Double-click the name of the Web site that you want to configure.
 * 3) Right-click the name of the virtual directory that you want to remove, and then click Delete.
 * 4) Click Yes.

To create a new virtual directory and configure it as an application, follow these steps:
 * 1) Click to select the name of the Web site in which you want to add the new virtual directory.
 * 2) On the Action menu, point to New, and then click Virtual Directory.
 * 3) In the Virtual Directory Creation Wizard, click Next.
 * 4) Type the name of the virtual directory that you want to create, and then click Next.
 * 5) Click Browse, select the directory for the application, and then click OK.
 * 6) 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.

Keywords: kbinfo kbtshoot kbprb KB917413

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.