Error in mojoPortal.Web.Global

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
9/28/2006 11:14:20 AM
kwa
Gravatar
Total Posts 23

Error in mojoPortal.Web.Global

Hi Joe

I check the error log and found 10 error logs full of the same kind of error, but I could not figure out what is wrong.

can you tell what is going on?

 

2006-09-28 12:40:34,986 [13336] ERROR mojoPortal.Web.Global [(null)] - localhost/mojoportal

System.Web.HttpException: Unable to validate data.

at System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength)

at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString)

9/28/2006 11:34:38 AM
Gravatar
Total Posts 18439

Re: Error in mojoPortal.Web.Global

Hi Bo,

Is this happening on your development machine or on a machine exposed to internet traffic? I've never seen this on my development machine but I have seen it on my production site logs. If you google this error you'll find lots of people reporting it and various causes and solutions.

It can happen from automated scans that purposely mess with viewstate. It can happen on web farms if you don't have the smae machine key in web.config for each node of the farm. It can also happen on single machines as I have seen posts in the asp.net forums about this. mojoPortal does have a machine key in the web.config which should prevent the most common internal causes but it can still happen form scan scripts, or if cpu useage gets too high and the application pool is getting recycled frequently.

I've been suspicious that some of the ones I see in my logs for this site might be related to bugs in Atlas but haven't been positive of this. I can't seem to produce this error on my dev machine.

Joe
9/28/2006 4:10:34 PM
kwa
Gravatar
Total Posts 23

Re: Error in mojoPortal.Web.Global

It's on the production machine. Is there any way to get rid of this kind of error? since the log is full of this and in just 2 days, I see 10 log files generated. This required daily log clean up, or the web space is filled up with log files.

Thank

9/28/2006 4:26:42 PM
Gravatar
Total Posts 18439

Re: Error in mojoPortal.Web.Global

If you look in the log4net.config file you'll see settings for the rollinglogfileappender, you can spacify how many log files to keep and how large the files gets before it makes a new log file. They are currently set like this:

<maxSizeRollBackups value="10" />
<maximumFileSize value="1MB" />

Joe

9/28/2006 4:29:20 PM
Gravatar
Total Posts 18439

Re: Error in mojoPortal.Web.Global

You can also turn off logging altogether if you like, currently it is set to:

<level value="ERROR" />

possible values are:

ALL
DEBUG
INFO
WARN
ERROR
FATAL
OFF

Joe

You must sign in to post in the forums. This thread is closed to new posts.