문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top