Connecting Tech Pros Worldwide Forums | Help | Site Map

Error in C# saying directory not being configured as an application in IIS

Newbie
 
Join Date: Jun 2008
Posts: 11
#1: Aug 22 '08
Hi,
Iam facing this problem.can you help me out

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.


Thanks,
Raam.

kenobewan's Avatar
Moderator
 
Join Date: Dec 2006
Posts: 4,745
#2: Aug 23 '08

re: Error in C# saying directory not being configured as an application in IIS


This usually means configuring all MachineToApplication settings in your application's root and removing all MachineToApplication settings from your application's subdirectories.

You can restrict MachineToApplication settings to *one* application
by making the settings in *that* application's web.config.

MachineToApplication web.config settings in any subdirectory
not configured as an Application throw the error you encountered. HTH.
Reply


Similar IIS / Microsoft Internet Information Services bytes