Alex Rivera | Logout

The requested page cannot be accessed because the related configuration data for the page is invalid

Asked 2011-07-06T12:31:03.607
18

I am getting this error when I try to run an ASP.NET application without a web.config file.

The requested page cannot be accessed because the related configuration data for the page is invalid

as I read, we can run .NET applications without web config files, but when I tried it is giving me the error. I am using iis 7 on windows 7 machine.

When I create the application virtual directory inside inetpub/wwwroot it works fine. Why doesn't the other directory location?

Edit
Report

1 Answer

2

You need to set permission for your Website folder or copy them to wwwroot folder.

If you choose to set permission, there are two ways:

  • Right click on Your Website folder, or
  • Right click to Your Website in IIS

Then select Edit permission and Add a permission (IUSR - default iis user)

answered 2013-07-20T18:04:58.290

Your Answer