Connecting Tech Pros Worldwide Forums | Help | Site Map

VB-Web: Error 101 - allowDefinition='MachineToApplication' beyond application level

Newbie
 
Join Date: Jul 2008
Posts: 3
#1: Jul 10 '08
I'm attempting to build website that was previously published using VS.NET 2005 and the .Net framework 2.0, the site is using a local sql server as the data source.

This copy i'm attempting to build is a copy i've made locally on the desktop to preserve the original as I'm going to be updating it, I did verify that there is not a second copy of the web.config file in my desktop copy as I'm aware that is usually a common problem that causes this error.

In any case, here's the error I'm receiving:

Expand|Select|Wrap|Line Numbers
  1. Error    1    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\XXXXX\Desktop\Website\SourceCode\web.config    77
That error is pointing to this line in the code in the web.config file:

Expand|Select|Wrap|Line Numbers
  1. <authentication mode="Windows"/>
Any ideas, suggestions or help would be greatly appreciated.

Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#2: Jul 10 '08

re: VB-Web: Error 101 - allowDefinition='MachineToApplication' beyond application level


Have you gone through into IIS and changed the virtual directory to be an application?
Newbie
 
Join Date: Jul 2008
Posts: 3
#3: Jul 10 '08

re: VB-Web: Error 101 - allowDefinition='MachineToApplication' beyond application level


There is no IIS running on the local box, this is where i'm puzzled, I would simply go in to IIS and change the settings as the error says but I'm not running IIS locally which is where the DB is mounted.

Unless I'm completely missing something, I'm not sure where I should be changing these settings.
Plater's Avatar
Moderator
 
Join Date: Apr 2007
Location: New England
Posts: 7,161
#4: Jul 10 '08

re: VB-Web: Error 101 - allowDefinition='MachineToApplication' beyond application level


Well how can you run the web application without iis?
Newbie
 
Join Date: Jul 2008
Posts: 3
#5: Jul 10 '08

re: VB-Web: Error 101 - allowDefinition='MachineToApplication' beyond application level


I added IIS right after posting, unfortunately this was not the system this app was developed on and I assumed IIS was there before actually looking.

After adding the site to IIS it's now working.

thanks
Reply