Coded UI Test now gets error about Newtonsoft.json not being found

I have a simple coded ui test to log into an application. The test is data driven and uses data from TFS. We are using a TfsTestAgent user (that has admin privs) that is on both the server and the agent systems. When I execute the test, I see the following
error:
The unit test adapter failed to connect to the data source or to read the data.
For more information on troubleshooting this error, see "Troubleshooting Data-Driven
Unit Tests" (http://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library.Error
details: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0,
Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The
system cannot find the file specified.
The test run log (UITestLog.html) shows this:
I, 2524, 81, 2015/03/24, 13:27:09.815, 14494724802, QTAgent32_40.exe, ExtensionFramework : Reading extensions from custom dir 'C:\Program Files (x86)\Common Files\Microsoft Shared\VSTT\12.0\UITestExtensionPackages'
V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, UnitTestExecuter.RunClassInitializeMethod: Acquiring m_runner.SyncRoot.
V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, UnitTestExecuter.RunClassInitializeMethod: Acquired m_runner.SyncRoot.
V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.BeforeClassInitialize()
V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.AfterClassInitialize()
V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, UnitTestExecuter.RunClassInitializeMethod: Released m_runner.SyncRoot.
V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, UnitTestRunner.ExecuteDataDrivenTest: started.
V, 2524, 8, 2015/03/24, 13:27:10.377, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.BeforeClassCleanup
V, 2524, 8, 2015/03/24, 13:27:10.377, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.AfterClassCleanup
V, 2524, 8, 2015/03/24, 13:27:10.393, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.Dispose()
I, 2524, 8, 2015/03/24, 13:27:10.393, .\QTAgent32_40.exe, UnitTestRunner.Dispose.
The interesting thing is that Newtonsoft.Json (aka Json.Net) isn't used in the project at all or any referenced libraries. From the above log, it appears to me that this is outside of the coded UI test since it isn't registered as a script exception.
The question then is, why did this start after changing the user that the Coded UI system runs tests under? I have tried reverting it back to the original user via a snapshot (and change the host environment in Test Manager). Doing so gives me the same result
above.
I'm looking for any ways to debug this further or ideas for fixes. I have tried the following as failed fixes:
including Newtonsoft.Json in the solution
copy over the library to c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PublicAssemblies
revert to a known working build and run it (still get same error)
Big thing to note is that last item. I had builds that I know worked and worked on multiple machines. Using those builds on any machine produces the same result. What could cause that error message and be machine/test code independent?

Hi JasonUnrein,
>> Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
Based on the error message and your description, I assume that the issue might be caused by your application instead of the Coded UI test. Were the project which you test a Web Api project? If so, I would recommend you log into the application directly without
the Coded UI project to check whether the application could work correctly. The link below might be useful to you:
# Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0
http://stackoverflow.com/questions/6176841/could-not-load-file-or-assembly-newtonsoft-json-version-3-5-0-0
>> Big thing to note is that last item. I had builds that I know worked and worked on multiple machines. Using those builds on any machine produces the same result.
In my option, I will recommend you create a new web project and a new Coded UI test project to test instead of using the original project.
If I misunderstood you, please feel free to let me know.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Similar Messages

  • Error about base class not being found in custom class when extending

    I have gone through the process of extending the base View Object oracle.apps.icx.lov.server.ExpenditureTypeNoAwardLovVO. My extension object is: snl.oracle.apps.icx.lov.server.SnlExpenditureTypeNoAwardLovVO. The extension was done to change the query used in this LOV. I get the following 3 compile errors when I rebuild my project. Error: can't read: C:\JDevOAframework\jdevhome\jdev\myprojects\oracle\apps\icx\lov\server\ExpenditureTypeNoAwardLovVORowImpl.java
    Error(2,35): cannot access class oracle.apps.icx.lov.server.ExpenditureTypeNoAwardLovVORowImpl; file oracle\apps\icx\lov\server\ExpenditureTypeNoAwardLovVORowImpl.class not found
    Error(10,60): class ExpenditureTypeNoAwardLovVORowImpl not found in class snl.oracle.apps.icx.lov.server.SnlExpenditureTypeNoAwardLovVORowImpl
    I have the oracle.apps.icx.lov.server package in my project and it has the following 3 files in it:
    ExpenditureTypeNoAwardLovVO.xml
    ExpenditureTypeNoAwardLovVORowImpl.class
    ExpenditureTypeNoAwardLovVORowImpl.java
    I do not have the last file (the .java one) on my local drive under C:\JDevOAframework\jdevhome\jdev\myprojects\oracle\apps\icx\lov\server.
    Is the .java file not supposed to be in the package? I'm not sure how it got there since we don't have access to it on the server, etc.
    If anyone has any suggestions your help is greatly appreciated!
    Thanks,
    Paula

    The second 2 errors were solved by copying the ExpenditureTypeNoAwardLovVORowImpl.class to my myclasses directory under oracle/apps/icx/lov/server and then recompiling.
    I'm still not sure why an empty .java file was added to my project causing the first error. I was doing this extension on a machine with Windows 2000 and I had created a new workspace (other than toolbox.jws) when I got this error. When I did the same extension on a machine with Windows XP and in the toolbax.jws workspace, the empty .java file didn't get added to my project and I didn't get the first compile error. Not sure if one of these variables was the cause.

  • When I sync my ipad 2 I get error message ipad could not be found

    When I sync my ipad photo's and tunes download onto my PC but before the sync is completed I get error message saying ipad can't be found. How do I complete the sync process. I have updated version of itunes but still have problem

    You may have a backup that is causing this problem, but I would start with something very simple. Quit iTunes, reboot your PC and restart the iPad and then try again.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • Cannot publish get error message - log file not being created

    When trying to publish a FlashHelp project, I get an error
    message window that says "Publishing has been cancelled. Failed to
    create file: (project name).log "
    When I click okay in the message window, the publishing
    process stops. However, if I look in the SSL folder, I see the log
    file. It is a text file.
    I had this problem in January 09 but it seemed to be an issue
    with the password and path in the FTP command window. I fixed it
    and it worked fine. However, I haven't published since the end of
    January. Now, when I try to publish, it is giving me the same error
    message. I checked and reviewed the FTP window fields and they are
    fine. But I'm still getting the error message and can't publish.
    Why?
    I need to get this problem fixed ASAP and ensure that it
    doesn't occur again. What's strange is that I've got 3 other
    projects and this is the only 1 that gets this error message.

    Yes, the generation worked. I checked the log file that
    worked from the time it worked before and it seems to be the same
    as the log file that is generated when I get the error message.
    I created a new FlashHelp layout and got the same error
    message. What's really weird is there is a log file in the SSL
    folder but when you click OK in the error message, it stops the
    publish function.
    Last time I had to blow away the cpd file as if this was a
    corrupt project. But that gets to be painful. As I use templates to
    put change dates in the footers of topics and templates get lost
    when you blow away the cpd.
    Any other thoughts?

  • New MacPro 10.9.4 included Keynote. Worked fine. An update was released August 21. Just downloaded the 6.2.2 update and now get error message "You can't open the application because PowerPC applications are no longer supported". Any ideas?

    New MacPro 10.9.4 purchased three weeks ago included Keynote. App worked fine. New update for Keynote was released August 21. Just downloaded the 6.2.2 update. Tried to launch app and now get error message "You can’t open the application “Keynote.app” because PowerPC applications are no longer supported." Confused as to why it worked prior to update. Nothing else has changed. No issues with recent iMovie, Pages or Numbers updates. Any ideas?

    I tested this:
    Reinstalled Aperture 3.1 from the Trial Installer.
    In some way it seems to be working. But the whole thing is a scary Chimera.
    It can create an Aperture library. I can import and edit images, even in Graphic Converter ias an external editor.
    But the Media Browser does not show the aperture Library that I created.
    The versioning is inconsistent. The library appears as an Aperture 3.4 library in the Finder.  Aperture 3.5 seems to be able to read this library and to upgrade it to 3.5
    The Applications folder is showing the application as version 3.4 and as compatible. Spotlight is showing it as illegal.
    When opening the chimera Aperture, I see plenty of warnings in the Console window:
    An Aperture "Hang" report
    xpcproxy assertion failed
    com.apple.IconServiceAgent: main failed to composite image
    quicklookd: Warning
    and more ... the hang was critical. I had to force quit Aperture more than once.
    So be careful. I would not trust any important Aperture library to this patched application, without testing thoroughly. Be careful with your  precious photos.

  • I am trying to reinstall Dreamweaver CS3 from the CD after having computer issues.  Now getting error "You can only install one Adobe product at a time.  Please complete the other installation before attempting to install ......."  There is no other Adobe

    I am trying to reinstall Dreamweaver CS3 from the CD after having computer issues.  Now getting error "You can only install one Adobe product at a time.  Please complete the other installation before attempting to install ......."  There is no other Adobe product installing.  I have used the Adobe Cleaner Tool many times and uninstalled other Adobe Products but neither has worked.  I have uninstalled/reinstalled this CD version of Dreamweaver several times when changing computers and after having computer issues. A google search of the problem suggested it may be an error related to the number of times I can reinstall this product due to licensing issues.  Please help.

    A google search of the problem suggested it may be an error related to the number of times I can reinstall this product due to licensing issues.
    Absolutely not. You are misinterpreting things. The activation check never happens when just running the installer, only much later. It means what it says - there is another "install" pending/ active on your system, meaning somewhere there is an (invisible) process still blocking things. Either way, since you haven't provided any real technical info, we can't advise specifically. if you are on Windows, you may want to check your task manager and terminate any setup.exe and msiexec.exe processes plus potentially may need to manually fix/ delete some registry keys. For anything beyond that you will have to be much more specific.
    Mylenium

  • Numerous attempts at a clean install of iTunes have failed.  I am running Win7 64 bit on a Toshiba L series Satellite w/8G RAM and 100  G HDD space.  Error message was (-42404), but following a complete (recommended) uninstall am now getting "Error 7".

    Numerous attempts at a clean install of iTunes have failed.  I am running Win7 64 bit on a Toshiba L series Satellite w/8G RAM and 100  G HDD space.  Error message was (-42404), but following a complete (recommended) uninstall am now getting "Error 7".  The prior uninstall included the establishment of administrator rights to files and folders left in the Apple folder after running the uninstaller, and successfully removing ALL visible and hidden Apple files and folders.
    Any other suggestions out there folks?

    On Oracle Metalink site, there are many documents which says that Oracle 32 bit software works on 32 bits OS and 64 bits software works on 64 bits OS. Official support is only in those combination....
    So there is no good way to help you in your case-XE is 32 bit application with hard codded compiled libraries which most of them would not work on 64 bit OS.
    Sorry
    8(
    Hope this helps

  • Get error when installing .json back up file A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script

    get error when installing .json back up file A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script
    Also tried to chang places.sql or what ever to my back up .json file and that wouldnt work. Is there a way to just move my backup .json file some where my bookmarks are a bigger file and i t will take a bit to upload.

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.
    Script: chrome://browser/content/places/editBookmarkOverlay.js:909

  • Why am I now getting messages about Safari remembering passwords for sites I log in on?

    Why am I now getting messages about Safari remembering passwords on sites I log in on??  This has not happened in the recent past.  Dale

    Safari 6
    You can disable that feature if you want.
    Safari > Preferences > AutoFill
    AutoFill web forms
    Uncheck the box for "User names and passwords".

  • My Muse test site gets error message from Internet Explorer v8.0.6

    My Muse test site gets error message from Internet Explorer v8.0.6

    What's the URL of the page? Where is the site hosted (Adobe Business Catalyst or elsewhere)? How were the files uploaded to the server (Publish, FTP Upload from within Muse, external FTP client)?

  • Bought Adobe Plus online. Now get error 1321. My purchase doesn't show on Adobe's web!

    Bought Adobe Plus online. Now get error 1321. My purchase doesn't show on Adobe's web!

    Hi,
    We verififed your Acrobat Plus subscription is active.  Please let me know which OS(XP, Win 7, Win 8 or Mac OS ) you are trying to install Acrobat XI Pro.  When did you see the error?
    Thank you.
    Hisami

  • Why do I get "error code 3: Could not load front panel" when I run my executable​.

    I have a LV 8.5 VI that controls only an agilent spectum analyzer. The agilent VIs call DLLs rather than SCPI commands. I created an application and an installer to load on a non LV machine and ran setup which was successful. When I run the EXE I get "error code 3: Could not load front panel" for each of my agilent spectrum analyzer VIs. I have to click "OK" about ten times, once for each VI. (My executable runs fine on all machines that have labview 8.5) The front panel does load with a broken arrow. The errors listed when the arrow is clicked for all of the Agilent VIs state: Missing subVI AGE444xInitialize.VI (or close.VI or read.VI etc.)
    There is an AGE444x32.DLL in the data folder with the EXE file so I included as support both the DLL and all of the agilent drivers in the application build. Still no luck. I have built the application and installer about 6 times in various forms. I NEED AIR SUPPORT.
    Unfortunately I do not have access to the internet at my jobsite so bear with me.
    Rob

    Hi V-rob,
    I'm glad to hear the executable is working now that NI-VISA is installed.  Thanks for posting the solution!
    Jennifer R.
    National Instruments
    Applications Engineer

  • HT201299 Verizon signal is strong but get error message "Ipad is not connected to the Internet"   Wireless works but my Verizon account does not

    Verizon signal is strong but get error message "Ipad is not connected to the Internet"   When I try to use Safari.
    Wireless works but my Verizon account does not

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are droping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    iOS 6 Wifi Problems/Fixes
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h tm
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • I get error message iTunes could not sync calendars to iPhone because an error occurred while merging data

    I get error message iTunes could not sync calendars to iPhone because an error occurred while merging data on my wifes phone how do you correct problem without losing calendars info on phone.

    One thing that might help.
    1. open itunes preferences from the edit menu and click on the devices tab.
    2. check the box to disable syncing for iphones connected to itunes and click ok.
    3. Then click the button to reset sync history.
    4. Now click ok to close the preferences window.
    5. connect the iphone to itunes and go to the info tab.
    6. scroll to the bottom of the info page and check the box to replace the ical data on the iphone.
    7. then click apply on the bottom right of itunes.
    This will overwrite any events on the iphone, including any events that has become corrupted.
    Hope this helps

  • Trying to install itunes on win 8.1.  keep getting error apple application support not found.  asks me to uninstall and install itunes.  i tried several times and keep getting same error.

    trying to install itunes on win 8.1.  keep getting error apple application support not found.  asks me to uninstall and install itunes.  i tried several times and keep getting same error.

    With the Error 2, let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR suitable for your PC (there's a 32-bit Windows version and a 64-bit Windows version):
    http://www.rarlab.com/download.htm
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you? If so, see if iTunes will launch without the error now.
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

Maybe you are looking for