Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Run Error Could not load file or assambly
posted

Hi,

I'm using QTP 11 and TestAdvantage 11.1CLR2.0

I'm trying to record a script, it seems to be able to record the objects, but when tryin to execute the script fails, its capable recognize the objects and highlight them but it will not interact with them, when trying to click on it will throw the Run Error window with:

"Could not load file or assembly 'Infragistic2.Win.v11.1, Version=11.1.20111.9000, Culture=neutral, PublickKeyToken=/dd%c' or one of its dependecies. The systema cannot find the file specified."

So this error ocurrs when trying to execute this line:

SwfWindow("1").Window("2").SwfObject("Control").SwfEdit("Location").RightClick

But the line

SwfWindow("1").Window("2").SwfObject("Control").SwfEdit("Location").Highlight

will work perfectly! 

After looking on the C:\WINDOWS\ASSEMBLY directory I can see that there is no Infragistic file except the Infragistics.License Version 1.0.5005.10

Im completely new at this so I will appriciate any ideas on how to solve this or where else can I look for a solution.

Cheers!

 

Parents
No Data
Reply
  • 150
    posted

    Hi, I am having the same issue.

    I found this resolution on this forum but it didn't fix my problem.  Maybe it will for you?

     

    'Could not load file or assembly

    Answered (Not Verified) This post has 0 verified answers | 2 Replies | 2 Followers

    Not Ranked
    Points 55
     prabodha posted on 03-25-2010 3:20 AM
    PoorPoorFairFairAverageAverageGoodGoodExcellentExcellent

    HI all ,

    I am getting the following error when i try to build my winforms application with ''Infragistics2.Win.UltraWinTree.v7.3' control. The said dll is there but it says the dll is missing.

    This worked previously . U r help is appreciated.

     

    Error 108 'Could not load file or assembly 'Infragistics2.Win.UltraWinTree.v7.3, Version=7.3.20073.1043, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))' ~\LC Test

    All Replies

    If you double-click on the error, does it take you to a line of code? Does it open the licx file?

    Try deleting the contents of the licx file from your project.

    If that does not help, make sure your project references for the Infragistics Assemblies are all the same version and that none of them have CopyLocal set to true.

    If that still doesn't help, I'd try removing all of the Infragistics references (or at least the tree reference) and re-adding it.

    Mike Saltzman

    Windows Forms Development Team Lead

    Infragistics, Inc.


     
    Answered (Not Verified) FranciscoCarvajal replied on 07-07-2010 9:42 AM
    PoorPoorFairFairAverageAverageGoodGoodExcellentExcellent
    Suggested by FranciscoCarvajal

    Sometimes, the problem is not the actual dll VS is reporting. It may be the UltraWinTree or one of its dependences.

    For instance, I have an application that uses the Infragistics Practices dll. If that dll is compiled with one version, say 6.3 and then the applicaiton that uses it has Infragistics 8.3 referenced, the compiler will complain of one of the Infragistics Win Forms dlls (i.e. ultrawintree) could not be loaded and will tell you that version 8.3 could not be found.

    In other words, your problem is not the ultrawintree dll, but one of its dependences, check that and I think you'll find the problem.

    Regards

    Francisco 

Children