I'm trying to use 'dalexsoto / Monotouch-AdMob-Bindings' available at
https://github.com/dalexsoto/Monotouch-AdMob-Bindings/
but the I'm getting a System.MissingMethodException: Method not found:
'MonoTouch.Foundation.RegisterAttribute..ctor'.

I created a small demo project to demonstrate the problem. It's a new
window-base monotouch project. I added a new class called
GADBannerHandler which is to become the GADBannerViewDelegate for this
project. As soon as I declare this class as being a
GADBannerViewDelegate, the compilation fails with following message:

[quote]
Building: GADProb (Debug|iPhoneSimulator)

Performing main compilation...

Updating CodeBehind files
Updated MainWindow.xib.designer.cs
/Developer/MonoTouch/usr/bin/smcs /noconfig
"/out:/Users/guivho/Mono/GADProb/bin/iPhoneSimulator/Debug/GADProb.exe"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll"
"/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll"
"/r:/Users/guivho/Mono/Libs/GAD/libGoogleAdMobAds.dll" /nologo /warn:4
/debug:+ /debug:full /optimize- /codepage:utf8 "/define:DEBUG"  /t:exe
"/Users/guivho/Mono/GADProb/MainWindow.xib.designer.cs"
"/Users/guivho/Mono/GADProb/Main.cs"
"/Users/guivho/Mono/GADProb/GADBannerHandler.cs"


Unhandled Exception: System.MissingMethodException: Method not found:
'MonoTouch.Foundation.RegisterAttribute..ctor'.
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in
<filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException:
Method not found: 'MonoTouch.Foundation.RegisterAttribute..ctor'.
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in
<filename unknown>:0



Unhandled Exception: System.MissingMethodException: Method not found:
'MonoTouch.Foundation.RegisterAttribute..ctor'.
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in
<filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException:
Method not found: 'MonoTouch.Foundation.RegisterAttribute..ctor'.
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in
<filename unknown>:0
Build complete -- 1 error, 0 warnings
[unquote]

You can download the test project at
http://dl.dropbox.com/u/34612381/GADProb.zip

Any suggestions?

Guido.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to