system.int32 failed error
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(IEnumerable
1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at CloudPanel.Modules.Admin.ExchangeModule.<.ctor>b__4c(Object _)
What version are you on?
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 ?
I reproduced the error and I just emailed you my logs.
thanks.
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
- 5 Forums
- 717 Topics
- 3,651 Posts
- 1 Online
- 260 Members