<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008>Hi
All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008>I was using
a setup wherein I have python scripts importing the C# dll
(on Python on net 1.0 and Dll is compiled on .nET
1.0) </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008>Now, my new input
dll is compiled for .NET 2.0. To ensure my python scripts import the C# dll
, I started to use the Python ON net 2.0 Alpha 2 version.But I am having
problems in importing the dll .</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008>Here is my snapshot
of the code which used to work using python on net1.0:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008>import
CLR.System.Reflection import Assembly</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008>def
load():</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008> name=
"x1.dll"</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008>
Assembly.LoadFrom(name) <BR>
import CLR.x.y.z as z<BR>
return;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008>When the above
sample code is compiled on python on net 2.0, I got a warning
"DeprecationWarning: Importing from the CLR.* namespace is deprecated"
</SPAN></FONT><FONT face=Arial size=2><SPAN class=148223415-22012008>and it
gives DLL Exception, when I try to use the elements of the
dll.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008>Hence I was
wondering does the Version 2.0 of python on net has any special way of porting
the dll's compiled on .NET 2.0. <SPAN class=148223415-22012008>Could any one
please let me know, how to handle the CLR issues on Python On net 2.0
?</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008><SPAN
class=148223415-22012008></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=148223415-22012008><SPAN
class=148223415-22012008>PS:- <SPAN class=148223415-22012008>I could able to add
the reference for the above dll in a stand alone C# project and I havent found
any problems.</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=148223415-22012008></SPAN></FONT> </DIV>
<P align=left><FONT face=Arial size=2>
<HR>
<FONT size=1><FONT face=Verdana><FONT color=#808080><U>Legal Notice:</U> <BR>The
information in this electronic transmission may contain confidential or legally
privileged information and is intended solely for the individual(s) named above.
If you are not an intended recipient or an authorized agent, you are hereby
notified that reading, distributing, or otherwise disseminating, copying or
taking any action based on the contents of this transmission is strictly
prohibited. Any unauthorized interception of this transmission is illegal under
law. If you have received this transmission in error, please notify the sender
by telephone [at the number indicated above/on +41 58 928 0101] as soon as
possible and then destroy all copies of this
transmission.</FONT> <BR></FONT></FONT>
<HR>
</FONT><!-- END MESSAGE BODY -->
</BODY></HTML>