Hi, I am new to IIS7.5 and ASP.net 2.0 I have asp.net 2. and IIS 7.5 on Windows 7. when I run default.aspx the program gets errors: HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the
page is invalid. Detailed Error Information Module IIS Web Core Notification Unknown Handler StaticFile Error Code 0x800700b7 Config Error Cannot add duplicate collection entry of type 'filter' with unique key attribute 'name' set to 'ASP.Net_2.0.50727.0'
Config File Unavailable (Config Isolation) Requested URL http://localhost/System/ Physical Path C:\inetpub\wwwroot\System\ Logon Method Not yet determined Logon User Not yet determined Config Source ************************************************* --------------------------------------------------------
If I remove the filter from c:\Windows\System32\inetsrv\config\applicationHost.config file i get another error: Module StaticFileModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x80070032 Requested URL http://localhost/System/Default.aspx
Physical Path C:\inetpub\wwwroot\System\Default.aspx Logon Method Anonymous Logon User Anonymous Most likely causes: It is possible that a handler mapping is missing. By default, the static file handler processes all content. The feature you are trying to
use may not be installed. The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.) If ASP.NET is not installed. Thanks for
your help. MK
You may notice the both same filter element above, now when I request a web page, an error occurs and it's the same as yours:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Config Error:
Cannot add duplicate collection entry of type 'filter' with unique key attribute 'name' set to 'ASP.Net_2.0.50727.0'
Now when I remove one of the both filters, the error disappears and I can request the web page successfully.
I guess you might add the duplicate filter like I mentioned above. Please check this carefully. Notice you can't modify the global configuration at will, if you does want to modify it please create a backup for the configuration file. Any problem occurs
you can use the backup file to recovery your IIS configuration. How to create backup and restore IIS configuration please check this blog:
mkCan
8 Posts
Cannot add duplicate collection entry of type 'filter' with unique key attribute 'name' set to 'A...
Apr 24, 2012 07:20 PM|LINK
Mamba Dai - ...
651 Posts
Microsoft
Re: Cannot add duplicate collection entry of type 'filter' with unique key attribute 'name' set t...
Apr 26, 2012 08:35 AM|LINK
Hi,
I have reproduced this error with adding the same filter element in the applicationHost.config file like this:
<isapiFilters>
<clear />
<filter name="UrlScan 3.1" path="C:\Windows\system32\inetsrv\urlscan\urlscan.dll" enabled="true" />
<filter name="ASP.Net_2.0.50727-64" path="C:\Windows\Microsoft.NET\Framework64\v2.0.50727\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="bitness64,runtimeVersionv2.0" />
<filter name="ASP.Net_2.0.50727.0" path="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="bitness32,runtimeVersionv2.0" />
<filter name="ASP.Net_2.0.50727.0" path="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="bitness32,runtimeVersionv2.0" />
<filter name="ASP.Net_2.0_for_V1.1" path="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="runtimeVersionv1.1" />
<filter name="ASP.Net_4.0_64bit" path="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="runtimeVersionv4.0,bitness64" />
<filter name="ASP.Net_4.0_32bit" path="C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_filter.dll" enabled="true" enableCache="true" preCondition="runtimeVersionv4.0,bitness32" />
<filter name="ASP.Net_2.0.50727.01" path="C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_filter.dll" preCondition="bitness32" />
</isapiFilters>
You may notice the both same filter element above, now when I request a web page, an error occurs and it's the same as yours:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Now when I remove one of the both filters, the error disappears and I can request the web page successfully.
I guess you might add the duplicate filter like I mentioned above. Please check this carefully. Notice you can't modify the global configuration at will, if you does want to modify it please create a backup for the configuration file. Any problem occurs you can use the backup file to recovery your IIS configuration. How to create backup and restore IIS configuration please check this blog:
http://blogs.iis.net/bills/archive/2008/03/24/how-to-backup-restore-iis7-configuration.aspx
If the comments above still don't work for your issue, please try to reset your IIS configuration to default.
Feedback to us
Develop and promote your apps in Windows Store