Microsoft Knowledge Base Email Alertz

KBAlertz.com: Error message when you try run a Web application that is built on the .NET Framework: Server Error in '/' Application

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]






Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

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

Article ID:917413
Last Review:December 3, 2007
Revision:1.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 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.

Back to the top

CAUSE

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

Back to the top

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.
3.Click the name of the server that you want to configure, and then double-click Web Sites.
4.Double-click the name of the Web site that you want to configure.
5. Right-click the name of the virtual directory that you want to remove, and then click Delete.
6.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.

Back to the top


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

Back to the top

Keywords: 
kbprb kbinfo kbtshoot KB917413

Back to the top

   

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

sevket - sevket_riza NOSPAM-AT-NOSPAM yahoo.com Reported as Irrelevant  
Written: 6/6/2006 5:41 PM
thank you very much for your information.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please