[Ironpython-users] Unable to load assembly 'Microsoft�€

Furqan Malik1E07 fumalik1E07 at bbapps.sqm.testnet.rim.net
Tue May 29 22:28:10 CEST 2012


I am using Python 2.7
And that's what I get when I run dir(clr)
['AddReference', 'FindAssembly', 'ListAssemblies', '__doc__', '__file__', '__name__', 'getPreload', 'setPreload']

-----Original Message-----
From: Slide [mailto:slide.o.mix at gmail.com] 
Sent: May-29-12 4:09 PM
To: Furqan Malik1E07
Cc: ironpython-users at python.org
Subject: Re: [Ironpython-users] Unable to load assembly 'Microsoft�€

What version of IP are you using? Also, what do you get if you do a
dir(clr) in the interactive console?

slide

On Tue, May 29, 2012 at 1:05 PM, Furqan Malik1E07 <fumalik1E07 at bbapps.sqm.testnet.rim.net> wrote:
> Thanks Slide,
>
> I am getting following error now,
>
> clr.AddReferenceToFile('MicrosoftVisualStudioTestToolsUITesting.dll')
> AttributeError: AddReferenceToFile
>
> -----Original Message-----
> From: Slide [mailto:slide.o.mix at gmail.com]
> Sent: May-29-12 3:21 PM
> To: Furqan Malik1E07
> Cc: ironpython-users at python.org
> Subject: Re: [Ironpython-users] Unable to load assembly 'Microsoft €
>
> Yes, I understand, but AddReference is just basically a wrapper around Assembly.Load, which does not search. You can try using clr.AddReferenceToFile with the directory you get from the find method added to sys.path.
>
> slide
>
> On Tue, May 29, 2012 at 12:04 PM, Furqan Malik1E07 <fumalik1E07 at bbapps.sqm.testnet.rim.net> wrote:
>> Hi Alex,
>>
>> Thanks for you reply.
>> Actually my question is different.
>> I am using clr or load the dll
>> Import clr
>> clr.AddReference("'Microsoft.VisualStudio.TestTools.UITesting")
>> and there I am having error.
>> : Unable to find assembly 'Microsoft.VisualStudio.Test= Tools.UITesting'.
>>
>> Clr.FindAssembly("'Microsoft.VisualStudio.TestTools.UITesting")
>> It is returning correct path
>>
>> -----Original Message-----
>> From: Alex Earl [mailto:slide.o.mix at gmail.com]
>> Sent: May-29-12 2:39 PM
>> To: Furqan Malik1E07; ironpython-users at python.org
>> Subject: RE: [Ironpython-users] Unable to load assembly 'Microsoft €
>>
>>
>> =?utf-8?Q?=8B.VisualStu=E2=80=8Bdio.TestTo=E2=80=8Bols.UITest=E2=80=8
>> B
>> ing?=
>>
>>  =?utf-8?Q?'_in_Python?=
>> MIME-Version: 1.0
>> Content-Type: multipart/mixed; boundary="===============1122901385=="
>>
>> --===============1122901385==
>> Content-Type: multipart/alternative;
>>        boundary="_000_54452F9818FBEE498D2A1EDA8425A68D0C5256F3B6TBXCH06SSVVbb_"
>>
>> --_000_54452F9818FBEE498D2A1EDA8425A68D0C5256F3B6TBXCH06SSVVbb_
>> Content-Type: text/plain; charset="utf-8"
>> Content-Transfer-Encoding: quoted-printable
>>
>> Unless it's in the GAC you probably need to use the method that takes a full path.
>>
>> Sent from my Windows Phone
>> From: Furqan Malik1E07
>> Sent: 5/29/2012 11:34 AM
>> To: ironpython-users at python.org
>> Subject: [Ironpython-users] Unable to load assembly 'Microsoft=E2=80=8B.Vis= ualStu dio.TestTo=E2=80=8Bols.UITest=E2=80=8Bing' in Python I have automated my whole framework in Ironpython and it's working pretty g= ood and stable.
>>
>> Recently, my company has implemented Drag and Drop functionality to automat= e.
>>
>> I found one Dll( 'Microsoft.VisualStudio.TestTools.UITesting.dll') which ha= s class mouse and that class has method called mouse.startdragging() and mo= use.stopdragging().
>>
>> But unfortunately, I am unable to add the reference of this Dll. I am 
>> getti= ng following error
>>
>> " clr.AddReference("Microsoft.VisualStudio.TestTools.UITesting")
>> System.IO.=
>> FileNotFoundException: Unable to find assembly 
>> 'Microsoft.VisualStudio.Test= Tools.UITesting'. at 
>> Python.Runtime.CLRModule.AddReference(String name) in = 
>> C:\Users\Barton\Documents\Visual Studio 
>> 2008\Projects\PySharp\trunk\pythonn=
>> et\src\runtime\moduleobject.cs:line 375 "
>>
>> I would truly appreciate if anyone can help me, I am middle of my 
>> project
>>
>> --_000_54452F9818FBEE498D2A1EDA8425A68D0C5256F3B6TBXCH06SSVVbb_
>> Content-Type: text/html; charset="utf-8"
>> Content-Transfer-Encoding: quoted-printable
>>
>> <html><head><meta content=3D"text/html; charset=3Dutf-8"
>> http-equiv=3D"Cont= ent-Type"></head><body><div><div
>> style=3D"font-family: Calibri,sans-serif; =
>> font-size: 11pt;">Unless it's in the GAC you probably need to use the 
>> metho= d that takes a full path.<br><br>Sent from my Windows 
>> Phone<br></div></div>= <hr><span style=3D"font-family:
>> Tahoma,sans-serif; font-size: 10pt; font-we=
>> ight: bold;">From: </span><span style=3D"font-family:
>> Tahoma,sans-serif; fo=
>> nt-size: 10pt;">Furqan Malik1E07</span><br><span style=3D"font-family:
>> Taho= ma,sans-serif; font-size: 10pt; font-weight: bold;">Sent:
>> </span><span styl=
>> e=3D"font-family: Tahoma,sans-serif; font-size: 10pt;">5/29/2012 
>> 11:34 AM</=
>> span><br><span style=3D"font-family: Tahoma,sans-serif; font-size:
>> span>10pt; fo=
>> nt-weight: bold;">To: </span><span style=3D"font-family:
>> Tahoma,sans-serif;=
>>  font-size: 10pt;">ironpython-users at python.org</span><br><span
>> style=3D"fon=
>> t-family: Tahoma,sans-serif; font-size: 10pt; font-weight:
>> bold;">Subject: = </span><span style=3D"font-family:
>> Tahoma,sans-serif; font-size: 10pt;">[Ir= onpython-users] Unable to 
>> load assembly 'Microsoft=E2=80=8B.VisualStu=E2=80=
>> =8Bdio.TestTo=E2=80=8Bols.UITest=E2=80=8Bing' in 
>> Python</span><br><br></bod=
>> y></html><META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; 
>> y>charset=3D=
>> utf-8">
>> <html xmlns:v=3D"urn:schemas-microsoft-com:vml"
>> xmlns:o=3D"urn:schemas-micr= osoft-com:office:office"
>> xmlns:w=3D"urn:schemas-microsoft-com:office:word" = 
>> xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml"
>> xmlns=3D"http:= //www.w3.org/TR/REC-html40"><head><meta
>> name=3DGenerator content=3D"Microso= ft Word 14 (filtered
>> medium)"><style><!--
>> /* Font Definitions */
>> @font-face
>> =09{font-family:"Cambria Math";
>> =09panose-1:2 4 5 3 5 4 6 3 2 4;}
>> @font-face
>> =09{font-family:Calibri;
>> =09panose-1:2 15 5 2 2 2 4 3 2 4;}
>> /* Style Definitions */
>> p.MsoNormal, li.MsoNormal, div.MsoNormal =09{margin:0cm; 
>> =09margin-bottom:.0001pt; =09font-size:11.0pt; 
>> =09font-family:"Calibri","sans-serif";
>> =09mso-fareast-language:EN-US;}
>> a:link, span.MsoHyperlink
>> =09{mso-style-priority:99;
>> =09color:blue;
>> =09text-decoration:underline;}
>> a:visited, span.MsoHyperlinkFollowed
>> =09{mso-style-priority:99;
>> =09color:purple;
>> =09text-decoration:underline;}
>> span.EmailStyle17
>> =09{mso-style-type:personal-compose;
>> =09font-family:"Calibri","sans-serif";
>> =09color:windowtext;}
>> .MsoChpDefault
>> =09{mso-style-type:export-only;
>> =09font-family:"Calibri","sans-serif";
>> =09mso-fareast-language:EN-US;}
>> @page WordSection1
>> =09{size:612.0pt 792.0pt;
>> =09margin:72.0pt 72.0pt 72.0pt 72.0pt;}
>> div.WordSection1
>> =09{page:WordSection1;}
>> --></style><!--[if gte mso 9]><xml>
>> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> 
>> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout 
>> v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> 
>> </o:shapelayout></xml><![endif]--></head><body lang=3DEN-CA 
>> link=3Dblue vli= nk=3Dpurple><div class=3DWordSection1><p 
>> class=3DMsoNormal>I have automated=  my whole framework in Ironpython 
>> and it's working pretty good and stable.<= o:p></o:p></p><p 
>> class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNorma=
>> l>Recently, my company has implemented Drag and Drop functionality to 
>> l>autom=
>> ate.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p
>> class=3DMso=
>> Normal>I found one Dll(
>> Normal>'Microsoft.VisualStudio.TestTools.UITesting.dll') w=
>> hich has class mouse and that class has method called 
>> mouse.startdragging()=  and mouse.stopdragging().<o:p></o:p></p><p
>> class=3DMsoNormal><o:p>&nbsp;</= o:p></p><p class=3DMsoNormal>But 
>> unfortunately, I am unable to add the refe= rence of this Dll. I am 
>> getting following error<o:p></o:p></p><p class=3DMs=
>> oNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>&quot; 
>> oNormal>clr.AddReference(&=
>> quot;Microsoft.VisualStudio.TestTools.UITesting&quot;)
>> System.IO.FileNotFou=
>> ndException: Unable to find assembly
>> 'Microsoft.VisualStudio.TestTools.UITe=
>> sting'. at Python.Runtime.CLRModule.AddReference(String name) in 
>> C:\Users\B= arton\Documents\Visual Studio 
>> 2008\Projects\PySharp\trunk\pythonnet\src\run=
>> time\moduleobject.cs:line 375 &quot;<o:p></o:p></p><p 
>> class=3DMsoNormal><o:=
>> p>&nbsp;</o:p></p><p class=3DMsoNormal>I would truly appreciate if 
>> p>anyone c=
>> an help me, I am middle of my
>> project<o:p></o:p></p></div></body></html>
>> --_000_54452F9818FBEE498D2A1EDA8425A68D0C5256F3B6TBXCH06SSVVbb_--
>>
>> --===============1122901385==
>> Content-Type: text/plain; charset="us-ascii"
>> MIME-Version: 1.0
>> Content-Transfer-Encoding: 7bit
>> Content-Disposition: inline
>>
>> _______________________________________________
>> Ironpython-users mailing list
>> Ironpython-users at python.org
>> http://mail.python.org/mailman/listinfo/ironpython-users
>>
>> --===============1122901385==--
>
>
>
> --
> Website: http://earl-of-code.com



--
Website: http://earl-of-code.com


More information about the Ironpython-users mailing list