[Ironpython-users] IronPython, Daily Digest 10/31/2011

no_reply at codeplex.com no_reply at codeplex.com
Tue Nov 1 09:03:36 CET 2011

Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] How to access public interface in .NET DLL



1. [New issue] How to access public interface in .NET DLL
User hpweiss has proposed the issue:

"The following interface is defined by the generatedProxy.cs file for my WCS Service

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "")]
public interface IAssayServiceContractCallback
    [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://XFEService/IAssayServiceContract/AvailableAssaysChangeNotification")]
    void AvailableAssaysChangeNotification();

When I look in ildasm, I see the following

___[MOD] C:\_CodeElements\XFE\XFEServiceModel.dll
   |___[INT] IAssayServiceContractCallback
   |   |     .class interface public abstract auto ansi 
   |   |     .custom instance void [System]System.CodeDom.Compiler.GeneratedCodeAttribute::.ctor(string, ...
   |   |___[MET] AvailableAssaysChangeNotification : void()

Namely, that IAssayServiceContractCallback is defined publicly in the .DLL corresponding to the .NET assembly

Similarly, the Object Browser tells me that IAssayServiceContractCallback is a public interface not defined within any Class

In IronPython, when I type from, IAssayServiceContractCallback is displayed in the dropdown list, but I unable to import from that symbol


from IAssayServiceContractCallback import *


Unexpected error: (<type 'exceptions.ImportError'>, ImportError('no module named IAssayServiceContractCallback',), <traceback object at 0x000000000000002B>)

and if I try to create a class derived from IAssayServiceContractCallback

   class CallbackHandler(IAssayServiceContractCallback):
        def AvailableAssaysChangeNotification(self):

IronPython reports: Unexpected error: (<type 'exceptions.NameError'>, NameError("global name 'IAssay erviceContractCallback' is not defined",), <traceback object at 0x000000000000002C>)

Is there a workaround?"

You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20111101/a701de1b/attachment.html>

More information about the Ironpython-users mailing list