SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Instantiating .NET 4.0 classes in QTP 11

    Hi,

    I just installed QTP 11 (11.00.0.0 Build 1018).
    I was expecting to be able to instantiate classes defined in .Net 4.0 assemblies in test scripts but I'm getting the following runtime error during a call to DotNetFactory.CreateInstance:
    ---------------------------------------------------------
    Could not load file or assembly 'file:///C:\blabla\Library.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.
    ---------------------------------------------------------

    My DLL is a .Net 4.0 assembly.

    My understanding was that QTP 11 would support .NET 4.0 classes for DotNetFactory.CreateInstance calls.
    Am I too optimistic?

    Am I missing something?

    Thanks!

  2. #2
    Junior Member
    Join Date
    Sep 2010
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Instantiating .NET 4.0 classes in QTP 11

    I got the answer I needed from another source and thought I could share it here.

    QTP 11 does not support instantiating .NET 4.0 classes from a script.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 12.50%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:42 AM.

Copyright BetaSoft Inc.