Sunday, 11 May 2008

"A potentially dangerous Request.Form value was detected ..."

Server Error
"A potentially dangerous Request.Form value was detected from the client (txtMessage="Australia & New Z
...")


This error triggered due to appearance of "<", ">" in the input and the .NET framework is throwing up an error to help prevent some script injection attacks – Request Validation.

This feature was introduced with the .NET 1.1
It is good practice having this validation applied to all pages but in some cases I had to disable this feature.

There are 2 ways to do this

Disabling on a page
Set ValidateRequest="false"
Eg)


Disabling for you application
You can globally turn request validation off by adding in Web.config
Eg)

Sunday, 4 May 2008

Lost images in Outlook(emails)



There's a quick workaround for broken images on the Outlook.

This is not the permanant fix but it helped me to release some of daily frustration quickly :)


Go to Registry editor and Remove "OutlookSecureTempFolder" Key at HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security

As I mentioned, this is only temporary solution. This key will be regenerated periodically so need to repeat deleting as needed.

Welcome to my blog

Hi all
Please feel free to look around.

WAN