system.int32 failed…
 
Notifications
Clear all

system.int32 failed error

5 Posts
2 Users
0 Likes
6,992 Views
0
Topic starter

I’m getting a odd error. I create a new domain. everything goes through just fine. I enable it for exchange. then when I navigate into the domain, I get this error.

Here is my log.
2015-06-24 19:44:30,191 ::: [144] ERROR ::: CloudPanel.Modules.Admin.ExchangeModule — Error pulling exchange message log history data: System.InvalidOperationException: The cast to value type ‘System.Int32’ failed because the materialized value is null. Either the result type’s generic parameter or the query must use a nullable type.
at System.Data.Entity.Core.Common.Internal.Materialization.Shaper.ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal)
at System.Data.Entity.Core.Common.Internal.Materialization.Shaper.GetColumnValueWithErrorHandling[TColumn](Int32 ordinal)
at System.Data.Entity.Core.Common.Internal.Materialization.Coordinator`1.ReadNextElement(Shaper shaper)
at System.Data.Entity.Core.Common.Internal.Materialization.Shaper`1.SimpleEnumerator.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at CloudPanel.Modules.Admin.ExchangeModule.<.ctor>b__4c(Object _)

5 Answers
0

What version are you on?

0
Topic starter

im on the latest version.

0

It looks like the statistics message log history table has some values that are NULL and shouldn’t be. Its causing an error when trying to cast them. Can you reproduce the error and email me all your logs to jdixon@knowmoreit.com ?

0
Topic starter

I reproduced the error and I just emailed you my logs.

thanks.

0

This issue was discovered to be a bug when a company had zero users. Issue: https://github.com/KnowMoreIT/CloudPanel-Issues/issues/36

It has been resolved and will be included in the next release

Share: