I have to use
<httpRuntime requestValidationMode="2.0" />
<pages validateRequest="false" />
But when I use the above element in my web.config file then I get the following error:
<pages enableViewStateMac="false" viewStateEncryptionMode="Never" enableEventValidation="false" controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
I used two
<page/>tag in myWb.configthat was the reason of my error Thanks @dash to correct me.