This is a migrated thread and some comments may be shown as answers.

Getting the Error message : System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation on build server

3 Answers 653 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ravi
Top achievements
Rank 1
ravi asked on 05 May 2011, 10:50 AM
Getting the Error message while executing the test cases on the build server, what could be the problem for this error as the tests are executing good till yesterday morning we are geting this problem from yesterday evening.
Looks getting the problem while taking the snapshot.

executing fine while execute from other systems on the build platform.




Getting the Error message :

Overall Result: Fail
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Parameter is not valid.
   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
   at System.Drawing.Bitmap..ctor(Image original, Int32 width, Int32 height)
   at System.Drawing.Bitmap..ctor(Image original)
   at ArtOfTest.WebAii.Design.Utils.BinaryToBitmap(Byte[] imageBytes)
   at ArtOfTest.WebAii.Design.AutomationHostState..ctor(SerializationInfo info, StreamingContext context)
   --- End of inner exception stack trace ---

Server stack trace:
   at System.RuntimeMethodHandle._SerializationInvoke(IRuntimeMethodInfo method, Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
   at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
   at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
   at System.Runtime.Serialization.ObjectManager.DoFixups()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)
   at System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage.FixupForNewAppDomain()
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at ArtOfTest.WebAii.Design.Execution.ITestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType, Int32 lastStepIndex, DebuggerOptions debuggerOptions)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTest(Test testcase, Settings settings, String testBinaryFolder, String deploymentFolder, ExecutionType exeType, Int32 lastStepIndex, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'04/05/2011 16:31:32' - Overall Result: Fail
'04/05/2011 16:31:32' - Duration: [0 min: 21 sec: 165 msec]
------------------------------------------------------------

3 Answers, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 06 May 2011, 02:04 PM
Hi Ravi,
   analyzing this based on the stack trace alone will be very hard. Could you please send us your test project along with details on how you run the the test and also some details on your environment. Basically we need to reproduce the issue locally in order to troubleshoot it.

Hope to hear from you soon.

All the best,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
John
Top achievements
Rank 2
answered on 31 Aug 2012, 12:44 PM
Ravi,
I'm seeing this error as well.  I did upload my project to the drop box.  If you need any assistance please feel free and contact me or skype me.  Do you speak Greek too?  ;)   j/k

John

0
Stoich
Telerik team
answered on 06 Sep 2012, 07:50 AM
Hi John,
I've sent you an e-mail. Please send me a dropbox invitation as your reply to the mail so that I may examine your project and determine what the problem is.

Greetings,
Stoich
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
ravi
Top achievements
Rank 1
Answers by
Stoich
Telerik team
John
Top achievements
Rank 2
Share this question
or