0

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!

4

1 に答える 1

0

特に 20 行目あたりに web.config を投稿できますか? そこにメンバーシッププロバイダーのログインリダイレクトページがありますか?

于 2012-04-15T11:38:52.077 に答える