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

4 posts, 0 answers
  1. ravi
    ravi avatar
    7 posts
    Member since:
    Mar 2011

    Posted 05 May 2011 Link to this post

    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]
    ------------------------------------------------------------
  2. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 06 May 2011 Link to this post

    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
  3. John
    John avatar
    8 posts
    Member since:
    Jul 2012

    Posted 31 Aug 2012 Link to this post

    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

  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 06 Sep 2012 Link to this post

    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
Back to Top