Simang,
I'm not sure if this will solve your problem but try adding the following
attributes to your <machineKey> element:
<machineKey validationKey="AutoGenerate,IsolateApps"
decryptionKey="AutoGenerate,IsolateApps"
validation="3DES"/>
If your app is running in a web farm, you'll need to generate a unique key
for both the validationKey and decryptionKey attributes.
http://support.microsoft.com/default...b;en-us;312906
HTH,
Jorge
"Simang" wrote:
Hi,
I am trying to encrypt viewstate in my ASP.NET web site.
I put these items in the web.config..
<pages enableViewStateMac="true" />
<machineKey validation="3DES"/>
However, when I tried to access the .NET pages, I encountered the ff error:
"Specified key is not a valid size for this algorithm"
What could be wrong?
Help from anyone will be much appreciated!
Thanks!
Mayet