We help IT Professionals succeed at work.

Asp.net Email: I just got an msg from my host server: this seems to be intermittent.

I just got an msg from my host server: this seems to be intermittent.
this email procedure has been working for years. I tried it again an it worked -
the server is webhost4life.

-----------------------------
Server Error in '/pbfvp' Application.
________________________________________
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:
[HttpException (0x80004005): Unable to validate data.]
   System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +289
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +140

[ViewStateException: Invalid viewstate.
      Client IP: 71.244.61.19
      Port: 1744
      User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
      ViewState: /wEPDwUJODY4MjkzNTIwD2QWAgIDD2QWBAIDDxYKHgpCdXR0b25QYXRoBUBodHRwOi8vcGxhbm9iYWxsb29uZmVzdC5vcmcvcGJmdnAvZnJlZXRleHRib3gvaW1hZ2VzL2Z0Yi9yYWlzZWQvHg1BdXRvQ29uZmlndXJlCylpRnJlZVRleHRCb3hDb250cm9scy5BdXRvQ29uZmlndXJlLCBGcmVlVGV4dEJveCwgVmVyc2lvbj0xLjQuMC4zNTYxMiwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1udWxsAx4NVG9vbGJhckxheW91dAXYAlNhdmUsUHJpbnQsVW5kbyxSZWRvfFBhcmFncmFwaE1lbnUsRm9udEZhY2VzTWVudSxGb250U2l6ZXNNZW51LEZvbnRGb3JlQ29sb3JQaWNrZXIsRm9udEJhY2tDb2xvclBpY2tlcixTeW1ib2xzTWVudXxCb2xkLEl0YWxpYyxVbmRlcmxpbmUsU3RyaWtldGhyb3VnaDtTdXBlcnNjcmlwdCxTdWJzY3JpcHQsUmVtb3ZlRm9ybWF0fEp1c3RpZnlMZWZ0LEp1c3RpZnlSaWdodCxKdXN0aWZ5Q2VudGVyLEp1c3RpZnlGdWxsO0J1bGxldGVkTGlzdCxOdW1iZXJlZExpc3QsSW5kZW50LE91dGRlbnQ7Q3JlYXRlTGluayxVbmxpbmssSW5zZXJ0SW1hZ2VGcm9tR2FsbGVyeSxJbn...]

[HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106
   System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +242
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
   System.Web.UI.HiddenFieldPageStatePersister.Load() +207
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
   System.Web.UI.Page.LoadAllState() +43
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.selectpilottoemailsilc_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

________________________________________
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
Comment
Watch Question

Director, IT Development
Commented:
Hi,

This error points to some viewstate data that cannot be decrypted.  This may be because of a link that may contain some viewstate data in the URL itself, or perhaps somewhere in your code.  

Cheers,

G.