chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
Hi

i do not know what exactly happen but i keep getting the message stated in the subject
asked by (28.8k points)

6 Answers

0 votes
Hi, please send the complete message and what to do to get this message
(i.e. are you building or running NUnit GUi or something else)

Also please tell me what version of TypeMock is installed. I would also fix that version and see if the problem still happens
answered by (32k points)
0 votes
Hi Scott

i m on the latest version and using testdriven addin and this is the exact message i get

Test Execution
Exploring Pharmaxis, Version=1.0.2400.30093, Culture=neutral, PublicKeyToken=null
MbUnit 2.3.0.0 Addin
Found 1 tests
[failure] Class1.MethodName
TestCase 'Class1.MethodName' failed: The type initializer for "DevExpress.Xpo.XPBaseObject" threw an exception.
   System.TypeInitializationException
   Message: The type initializer for "DevExpress.Xpo.XPBaseObject" threw an exception.
   Source: DevExpress.XPO
   StackTrace:
   at DevExpress.Xpo.XPBaseObject..ctor(Session session)
   at DevExpress.Xpo.XPLiteObject..ctor(Session session)
   at DevExpress.Xpo.XPObjectType..ctor(Session session, String assemblyName, String typeName)
   at DevExpress.Xpo.Helpers.XPObjectTypesManager.get_AllTypes()
   at DevExpress.Xpo.Session.BuildTypeCriteria(XPClassInfo classInfo, CriteriaOperator criteria)
   at DevExpress.Xpo.XPCollection.BuildTypeCriteria()
   at DevExpress.Xpo.XPCollection.BuildCriteria()
   at DevExpress.Xpo.XPCollection.LoadContent()
   C:\NET Solutions\C#\WM\WM.FrameWork\XPOHelpers\Collections\DBCollection.cs(178,0): at WM.FrameWork.XPOHelpers.Collections.DBCollection.LoadContent()
   at DevExpress.Xpo.XPCollection.Load()
   at DevExpress.Xpo.XPCollection.System.Collections.IEnumerable.GetEnumerator()
   c:\net solutions\c#\wm\wm.framework\xpohelpers\datamover.cs(161,0): at WM.FrameWork.XPOHelpers.DataMover.moveCollection(DBCollection dbCollection, Hashtable[] hashtables)
   c:\net solutions\c#\wm\wm.framework\xpohelpers\datamover.cs(152,0): at WM.FrameWork.XPOHelpers.DataMover.moveCollection(dbObjectComparer[] dbObjectComparers)
   c:\net solutions\c#\wm\wm.framework\xpohelpers\datamover.cs(48,0): at WM.FrameWork.XPOHelpers.DataMover.MoveData(Type[] excludedTypes)
   c:\net solutions\c#\wm\pharmaxis\class1.cs(36,0): at Pharmaxis.Class1.MethodName()
   Inner Exception
   System.IO.FileNotFoundException
   Message: File or assembly name TypeMock, or one of its dependencies, was not found.
   Source: DevExpress.XPO
   StackTrace:
   at DevExpress.Xpo.XPBaseObject..cctor()
answered by (28.8k points)
0 votes
Please tell me what TypeMock.dll versions are installed in the GAC
(\WINDOWS\assembly)
answered by (32k points)
0 votes
there was 3 versions but now there is only 1 the latest and the exception remains
answered by (28.8k points)
0 votes
Hi tolisss
We found the problem with the help of your logs.
We will soon have a patch.
Thanks for your help. :D
answered by (35.5k points)
0 votes
Hi tolisss

I sent you the patch.
Please tell me if it solves your problem.
answered by (35.5k points)
...