Error 7 It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level.

PROBLEM:

Error 7 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. D:\lawsDB\laws\news\web.config 83 

SOLUTION:

There was two web.config files, one in the root directory and the other in a subdirectory. I removed the one in the subdirectory and problem solved.

WHY:

This needs an investigation and research and I have no time. And this is the problem of job projects, you need just to finish, no time for digging deep and understand.

Advertisements

About Ahmed

Software craftsman, programmer, developer, system/business analyst, DBA and PM.
This entry was posted in Programming, VB.NET and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s