[IronPython] MissingMemberException but it definitely exists

Bob Uva robertuva at gmail.com
Sat Sep 5 19:26:07 PDT 2009


I just started using IronPython and am using SharpDevelop as an IDE.
I'm creating a REST web service, and have a class that has a function
named 'run' in it. When I create an instance of the class and then try
calling its run function I get a MissingMemberException saying that
the class has no attribute 'run'. This exception is thrown from
Microsoft.Scripting.Actions.MatchCaller.Call2. Shown below is the call
stack shown in the exception dialog from the IDE. I've even reduced
the run function to just calling pass and that doesn't work. Any ideas
where to look to debug this further?

Thanks,
 Bob

System.MissingMemberException: 'AddressFilesService' object has no
attribute 'run'
   at Microsoft.Scripting.Actions.MatchCaller.Call2
   at Microsoft.Scripting.Actions.CallSite<Microsoft.Func<Microsoft.Scripting.Actions.CallSite,System.Object,Microsoft.Scripting.Runtime.CodeContext,System.Object>>.UpdateAndExecute
   at Microsoft.Scripting.Actions.UpdateDelegates.Update2
   at DLRCachedCode.<lambda$9>$51
   at Microsoft.Scripting.Actions.MatchCaller.Call1
   at Microsoft.Scripting.Actions.CallSite<Microsoft.Func<Microsoft.Scripting.Actions.CallSite,System.Object,System.Object>>.UpdateAndExecute
   at Microsoft.Scripting.Actions.UpdateDelegates.Update1
   at System.Threading.ThreadHelper.ThreadStart_Context
   at System.Threading.ExecutionContext.Run
   at System.Threading.ThreadHelper.ThreadStart

-- 
Bob Uva
Software Development Consultant
Portland, OR
mobile: 503-810-6387
eMail: robertuva at gmail.com


More information about the Users mailing list