Click here to Skip to main content
15,668,126 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi all,
I am trying to open an application in Visual Studio.Net 2008.
I am getting amn error as

Error 14 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. C:\Documents and Settings\Amul\Desktop\AMUL PROJECTS\ChatApplication\NotPlannedChat\WebChatApplication\Web.config 46

How to configure the ready website application to IIS version 5.1 or 6?

Kindly help

Amul V V Wayangankar
Sergey Alexandrovich Kryukov 24-May-11 13:59pm    
You refer to file not shown; how can anyone find a problem?
Sandeep Mewara 25-May-11 1:35am    
There are quite few known reasons for the issue. Have a look at my answer for it.
walterhevedeich 24-May-11 19:23pm    
You may want to post the section of your web.config that contains the attribute.

1 solution

Generally this happens when you have more than one Web.Config file in your application root folder.
Just check if you have more than one. If so, remove the duplicate copies.

Read a similar issue resolved here:ASP.NET 2.0 & "allowDefinition='MachineToApplication'" error message[^]

Other useful link that has similar issue discussed:[^]
Share this answer
Sergey Alexandrovich Kryukov 25-May-11 3:52am    
Aaa, good catch, my 5. Thanks for notifying me.
Sandeep Mewara 25-May-11 4:36am    
Anytime. :)
Espen Harlinn 25-May-11 16:43pm    
Good reply, my 5
Sandeep Mewara 26-May-11 6:26am    

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900