Registrarse | Entrar
martes, 22 de mayo de 2012
  Buscar
 Foros de discusión en Locopon's Minimizar
 
Forum / ForosForum / ForosModules/ModulosModules/ModulosDSLocalizatorDSLocalizatorURGENT: Lots of View State MAC Failed Errors on the SiteURGENT: Lots of View State MAC Failed Errors on the Site
Anterior Anterior
 
Siguiente Siguiente
New Post
 15/04/2011 12:24 p.m.
 

Hi,

We have used DSLocalisator for over 3 years now but recently started getting alot of view state errors in our event viewer in DNN 4.9 version of our site. My initial research led me to point to several view state issues being fixed in .Net Framework 3.5 hence I recently upgraded to DNN 5.6.2 and updated DSLocalisator to 03.00.05.

However, since the upgrade the errors have become much much worse. The frequency has increased and whats worse is that they redirect users to a DNN error page. It was was pointed out on the DNN forum that the error message generates from "Delisoft.DNN.PageBases.MyLocale.LoadPageStateFromPersistenceMedium" method which makes me think it might be caused by DSLocalisator. Please see complete error message at the end of this long post :)

I am using DNN 5.6.2 on a standalone windows 2003 server with IIS 6 - SQL Server 2005. I have tried all possible options under Host Settings > Performace including the not recommended Page State information in memory. I have also tried disabling MacViewState or remove view state encryption but no avail. Also, DSLocalisator's view state in sql link in latest version shows a blank page - don't know if this is a control missing. Although I did try that in DNN 4.X but didn't help.

I am really desperate and clutching at straws now - please let me know if this is caused by DSLocalisator module and if so, is there a quick solution available.

ERROR MESSAGE

AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: 91.201.66.98 Port: 1579 User-Agent: Mozilla/6.0 (compatible; MSIE 7.0a1; Windows NT 5.2; SV1) ViewState: /wEPDwUINjE2NzQ2OTUPZBYGZg8WAh4EVGV4dAV5PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFsLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25hbC5kdGQiPmQCAQ9kFg4CBA8WAh4HVmlzaWJsZWhkAgUPFgIeB2NvbnRlbnQFpwFDaXZ2eSBTdHJlZXQgaXMgZm9yIHlvdSBpZiB5b3UgYXJlIGEgU2VydmljZSBsZWF2ZXIgb3IgaGF2ZSBwcmV2aW91c2x5IHNlcnZlZCBpbiB0aGUgVUsgQXJtZWQgRm9yY2VzIHdoZXJlIHlvdSB3aWxsIGZpbmQgdGhlIHJlc291cmNlcyBmb3IgdHJhbnNpdGlvbiB0byBjaXZpbGlhbiBsaWZlLmQCBg8WAh8CBWdDaXZ2eSBTdHJlZXQsIFRyYW5zaXRpb24sIENpdmlsaWFuIExpZmUsIFNlcnZpY2UgTGVhdmVyLCBFeC1zZXJ2aWNlbWVuLCBSZXNldHRsZW1lbnQsIExlYXJuaW5nIGFuZCBXb3JrZAIHDxYCHwIFDENpdnZ5IFN0cmVldGQCCA8WBB8CZB8BaGQCCQ8WAh8CBSpDaXZ2eSBTdHJlZXQgLSBUcmFuc2l0aW9uIHRvIENpdmlsaWFuIExpZmVkAgwPFgIfAgUNSU5ERVgsIEZPTExPV2QCAg9kFgICAQ9kFgZmD2QWAmYPFgIfAWgWAmYPZBYCZg9kFgYCAw8QZGQWAGQCDw9kFgJmDw8WBh4ISW1hZ2VVcmwFFC9pbWFnZXMvY29sbGFwc2UuZ2lmHg1B... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidati ) at System.Web.UI.ViewStateException.ThrowMacValidati (Exception inner, String persistedState) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) at System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) at System.Web.UI.HiddenFieldPageStatePersister.Load() at System.Web.UI.Page.LoadPageStateFromPersistenceMedium() at Delisoft.DNN.PageBases.MyLocale.LoadPageStateFromPersistenceMedium() at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: WWW01

New Post
 15/04/2011 07:51 p.m.
 

The routine:

Delisoft.DNN.PageBases.MyLocale.LoadPageStateFromPersistenceMedium

is used by the DSLocalizator feature named "Viewstate in SQL"

(Note: This feature has nothing to do with localization)

The error you are seeing is because there is another module or http module that is modifying the viewstate key, so DSLocalizator can't handle the validation

Check the following

a) if you are using DSLocalizator only for localization, please disable this feature because this feature needs you to know what you are exactly doing.

b) Review your installed modules and handlers in the DNN or ASP .NET and check what other module change the viewstate. 

New Post
 17/04/2011 08:57 a.m.
 

Thanks very much for you response.

Yes, we are using DSLocalizator only for localisation and have never enabled the 'Viewstate in SQL' option. I did test it in past in DNN 4.x where I enabled this feature but didn't help the errors.

As mentioned above in the lastest version when i click 'Viewstate in SQL' link under 'Optimisation Tools' it shows a blank page. Kindly advise what would be the best way to disable this feature.

We use very few third party modules. I don't think we have any other that would change the viewstate - atleast nothing that is specfically designed to do so. I will review this again on Monday morning - DMX Document Management only one with changes at web.config level which I will try and disable and see if it makes any difference.

Many thanks
Arif Shah

 

New Post
 17/04/2011 10:49 p.m.
 

As I said before, the routine shown in your error is only used when this feature is enabled.

If you are unable to use the UI, then you can disable it by using SQL

In the column SettingName look for a row with "DSTLEnableSqlViewState" and then change the corresponding SettingValue to "N"

Just for information: You can disable the same settings in the page named "Host Options" in the DSLocalizator module

New Post
 18/04/2011 01:08 p.m.
 

The SettingName 'DSTLEnableSqlViewState' was not found. I have added it myself and will monitor the site overnight to see if it makes any difference. Will keep you posted.

Anterior Anterior
 
Siguiente Siguiente
Forum / ForosForum / ForosModules/ModulosModules/ModulosDSLocalizatorDSLocalizatorURGENT: Lots of View State MAC Failed Errors on the SiteURGENT: Lots of View State MAC Failed Errors on the Site