Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

System.InvalidCastException from System.Data.SqlClient.SqlBuffer

132 views
Skip to first unread message

Konstantinos Pantos

unread,
Feb 12, 2009, 6:55:01 AM2/12/09
to
Hi,
I've developed a web application and occasionally I see the following
exception in my error logs (usually when the application is stresed) but not
always not on the same code and not using any pattern. So I can't really
track down the problem.
The Exception is:
===
Type : System.InvalidCastException, mscorlib, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Specified cast is not valid.
Source : System.Data
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : System.DateTime get_DateTime()
Stack Trace : at System.Data.SqlClient.SqlBuffer.get_DateTime()
at System.Data.SqlClient.SqlDataReader.GetDateTime(Int32 i)
at Read_Article(ObjectMaterializer`1 )
at
System.Data.Linq.SqlClient.ObjectReaderCompiler.ObjectReader`2.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at
Metadata.CMS.BO.GroupManager.<>c__DisplayClass31.<FetchArticlesInGroup>b__2f() in C:\Work\Projects\MetaCMS\Metadata.CMS.BO\GroupManager.cs:line 384
at Metadata.Caching.Manager.CacheHelper.CacheObject[T](Func`1 addToCache,
String cacheKey, Int32 cacheDurationInSeconds) in
C:\Work\Projects\Components\Metadata.Caching\Manager\CacheHelper.cs:line 52
at Metadata.Caching.Manager.CacheHelper.CacheObject[T](Func`1 addToCache,
String cacheKey) in
C:\Work\Projects\Components\Metadata.Caching\Manager\CacheHelper.cs:line 29
at Metadata.CMS.BO.GroupManager.FetchArticlesInGroup(Int32 groupId,
Boolean fetchPresentable) in
C:\Work\Projects\MetaCMS\Metadata.CMS.BO\GroupManager.cs:line 384
===
Has anyone seen this problem before?

Thanks

--
_________________________
Kostas Pantos [MCP]
http://kostas.pantos.name

0 new messages