473,508 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EnableViewStateMac

I have an application that requires one page to have the
EnableViewStateMac set to false as I have another page posting to this
page. This is set in the page directive and works fine on my local
machine. However, other developers with the exact same code are
receiving the 'Unable to validate data' error because of an invalid
ViewState. Why is the page trying to validate the ViewState when I have
explicitly set it not to do that? If I set EnableViewStateMac = false
in the web.config, this works as intended but I only want to set this
in the required page.

Can anyone shed any light on to why this may be happening? I have also
noticed that if I build a release version and deploy to a test machine,
the error appears. But if I build a debug version and deploy this to
the test machine, there is no error and the application works as
intended.

Thanks,

ObiToo

Nov 19 '05 #1
1 2409

Hi Obitoo,
Do you have any server farm configuraion? Also what is the version of
the .NET framework on your machine and the testing machine?
This KB article would help you to diagnose this error
http://support.microsoft.com/default...B;EN-US;829743

Hope that helps
Mohamed Sharaf
MEA Developer Support Center
ITWorx on behalf Microsoft EMEA GTSC
--------------------
| From: ob****@ziplip.com
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: EnableViewStateMac
| Date: 10 Oct 2005 03:46:57 -0700
| Organization: http://groups.google.com
| Lines: 20
| Message-ID: <11**********************@g44g2000cwa.googlegroups .com>
| NNTP-Posting-Host: 212.20.241.174
| Mime-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-1"
| X-Trace: posting.google.com 1128941222 25997 127.0.0.1 (10 Oct 2005
10:47:02 GMT)
| X-Complaints-To: gr**********@google.com
| NNTP-Posting-Date: Mon, 10 Oct 2005 10:47:02 +0000 (UTC)
| User-Agent: G2/0.2
| X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
Maxthon; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe)
| Complaints-To: gr**********@google.com
| Injection-Info: g44g2000cwa.googlegroups.com; posting-host=212.20.241.174;
| posting-account=omO_UwwAAAAX1_szmPNWt_K8B9K4ULo7
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSF TNGP08.phx.gbl!newsfeed00.
sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.gigan ews.com!
postnews.google.com!g44g2000cwa.googlegroups.com!n ot-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:349629
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| I have an application that requires one page to have the
| EnableViewStateMac set to false as I have another page posting to this
| page. This is set in the page directive and works fine on my local
| machine. However, other developers with the exact same code are
| receiving the 'Unable to validate data' error because of an invalid
| ViewState. Why is the page trying to validate the ViewState when I have
| explicitly set it not to do that? If I set EnableViewStateMac = false
| in the web.config, this works as intended but I only want to set this
| in the required page.
|
| Can anyone shed any light on to why this may be happening? I have also
| noticed that if I build a release version and deploy to a test machine,
| the error appears. But if I build a debug version and deploy this to
| the test machine, there is no error and the application works as
| intended.
|
| Thanks,
|
| ObiToo
|
|

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6841
by: john | last post by:
Is this value default true or false. i've read its true in two different books and false in MSDN. does anyone know which it is?
2
2221
by: A.M | last post by:
Hi, How can I turn on enableViewStateMac in all pages in the application in web.config rather than each single <@Page> directive? Thanks, Alan
5
4631
by: fm | last post by:
We are using ASP.NET State Server in our applications to protect session state from machine.config and IIS recycles. We also may cluster the servers in the future. We don't have the resources to...
1
1443
by: xamman | last post by:
hi there, i am busy coding a fix for Santa's package labelling system. i have come across some wierd behaviour with enableViewStateMac on this server. this web has a page a.aspx with a textbox...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5640
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.