views:

17

answers:

2

I'm creating a new ASP.net website via Visual Studio. I then try to run the default.aspx page it generates, and it throws this error:

alt text

I've tried deleting the affected lines as suggested by MSDN but to no avail! I am on Windows 7, with ASP.net installed

Any ideas?

+2  A: 

What exactly have you tried to delete? The MSDN article about the specific error code 0x8020700b7 talks about deleting duplicate entrys in the ApplicationHost.config file. But your error message postet above talks about the web.config which are two completely different files as far as I know.

The marked line 15 should be in the web.config. where the marked duplicate entry should be.

Diskilla
+3  A: 

This is a common error when you assign the Site (that includes a web.config from .net 3.5) to an application pool that is running in 4.0. It causes some of the entries in web.config to be duplicated, so you can: 1) clean up the web.config to remove those duplicated entries, or 2) change the application pool to one that is using .net 2.0.

CarlosAg