i use UrlRewriter in my web site when run at local it's correct but in server i get error:
the error:
39:
40:
41:
-------------------
Module ConfigurationValidationModule Notification BeginRequest Handler ExtensionlessUrl-Integrated-4.0 Error Code 0x800700b7 Config Error Cannot add duplicate collection entry of type 'add' with unique key attribute 'name' set to 'UrlRewriteModule'
and in web config use :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
please help me
thanks
Raj BandiPosted Jul 25, 2013, 1:58 AM
I'm not sure about your website hierarchy (parent and child sites/directories etc). This error due to Url rewrite module duplicate declarations. I suspect, parent site config modules are being inherited in your config.
2 ways
1) Simply add
Replace httpmodules line from 39 to 41 with the following
2) URLRewriteModule already defined in some parent site web.config, remove add instruction at line 40
Cheers
Raj