1
Vote

FileNotFoundException was unhandled by user code

description

Hi All,
I m using Visual Studio 2012 Ultimate with CUITe framework.

I m getting FileNotFoundException for below line of code
Class1 objTimesheet = CUITe_BrowserWindow.GetBrowserWindow<Class1>();

Exception Detail :
Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


Please Help !!

file attachments

comments

icnocop wrote Mar 22, 2013 at 9:41 AM

Hi jazz31,

In order for CUITe to work with Visual Studio 2012, you'll need to download the Microsoft Visual Studio UI Test Plugin for Silverlight.

Another user ran into this issue in another work item here:

jiteshdugar wrote Feb 8 at 6:23 AM

... I ran into [an] issue which is an exception System.IO.FileNotFound ...

jiteshdugar wrote Feb 10 at 10:47 PM

The issue was related to Silverlight Plugin.
Visual Studio 2012's unofficial support for Coded UI testing for Silverlight 4 and 5 applications is available using an extension:

http://visualstudiogallery.msdn.microsoft.com/28312a61-9451-451a-990c-c9929b751eb4

"This plugin supports Silverlight 4 & 5 applications hosted in Internet Explorer versions 8, 9 & 10."

The issue is resolved now.

jazz31 wrote Mar 25, 2013 at 8:15 AM

Hi icnocop !!
Thanks for the reply.

yes, you are right about the issue raised by jiteshdugar.
I m facing the same issue.
When inherit the " class ObjectRepository : CUITe_BrowserWindow"", The coded UI Test disappear from the Test explorer.

I have installed the http://visualstudiogallery.msdn.microsoft.com/28312a61-9451-451a-990c-c9929b751eb4 . But i m still getting the same issue.

Do i need to add a reference after installing silver light plugin ?

Please Help !!

jazz31 wrote Mar 25, 2013 at 9:06 AM

This is the exact issue i m getting at the line
ObjectRepository pgPALogin = CUITe_BrowserWindow.GetBrowserWindow<ObjectRepository>();

Issue :
Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

icnocop wrote Mar 25, 2013 at 1:01 PM

Yes, add a reference to Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.

Thank you.

jazz31 wrote Apr 1, 2013 at 7:25 AM

Hi icnocop !!
Thanks for the help .

I have installed the Microsoft Visual Studio UI Test Plugin for Silverlight as suggested by you and added the referefrom C:\Program Files (x86)\Common Files\microsoft shared\VSTT\11.0\UITestExtensionPackages\Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.dll

But i m still getting the following Issue :
'Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

&

When inherit the " class ObjectRepository : CUITe_BrowserWindow"", The coded UI Test disappear from the Test explorer.


Do i need a Silverlight 10.0 version ?
Which Step i m doing wrong ? am i missing any other reference or namespace ??

icnocop wrote Apr 1, 2013 at 8:01 AM

As indicated here, "Changeset #24125 includes a new sln and projects for .net 4 for visual studio 2012", so make sure you download, build, and reference CUITe.dll using the latest source code.

jazz31 wrote Apr 1, 2013 at 8:56 AM

I know i m sounding little dumb here but please can u send me the link of latest CUITe and Microsoft Silver light Plugin versions that support each other. Because i m not getting from where is the files in sorce code.

Please find the attached piece of code..

Please help !!

icnocop wrote Apr 1, 2013 at 5:16 PM

To download the latest CUITe source code, click here and then click on the Download link.

jazz31 wrote Apr 2, 2013 at 7:44 AM

Hi icnocop,

The issue has been resolved. The issue was the old version of CUITe. I have downloaded the the new verion from source code. And now i m able to execute my test.

Thanks,
Jazz