0
votes

When trying to build my website in Visual Studio 2010, I receive the following error:

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:\Users\Owner\Documents\Visual Studio 2010\WebSites\ussvision\knowledgebase\web.config 20

I have a web.config in my root - /ussvision/ - and another web.config in a subdirectory - /knowledgebase/.

I know this error usually means you haven't configured your subdirectory as an application in IIS7. But I have! I opened up IIS7, right-clicked OWNER-PC, clicked "Add Website", pointed to the physical path, right-clicked knowledgebase, and selected "convert to application". When trying to build, it continues to give me this error, pointing to the web.config in my knowledgebase subdirectory. Should I have done this in IIS7 differently?

Any guidance to eliminate this error so I can build the site would be greatly appreciated!

1

1 Answers

0
votes

Can you post web.config especially around line 20? Do you have a membershipprovider login redirect page there?