By default if you try to use special characters in URL for a website hosted in IIS, it will show the below error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below

To resolve this, add the below code to web.config file:


<system.web>
<httpRuntime requestPathInvalidCharacters="" />
<pages validateRequest="false" />
</system.web>

 

If you want to set this globally for all websites, add the above code to applicationhost.config file.