x


Cookie Cutter Script and 'MissingMethodException'

Hello.

I've copied over the cookie cutter script from the unityCommunity wiki. It seems that I keep getting these exceptions from the script.

MissingMethodException: Method not found: 'System.String.Split'. Boo.Lang.Runtime.MethodDispatcherFactory.ProduceExtensionDispatcher()

Here is the call stack

MissingMethodException: Method not found: 'System.String.Split'. Boo.Lang.Runtime.MethodDispatcherFactory.ProduceExtensionDispatcher () Boo.Lang.Runtime.MethodDispatcherFactory.Create () Boo.Lang.Runtime.RuntimeServices.DoCreateMethodDispatcher (System.Object target, System.Type targetType, System.String name, System.Object[] args) [0x00000] Boo.Lang.Runtime.RuntimeServices.CreateMethodDispatcher (System.Object target, System.String name, System.Object[] args) [0x00000] Boo.Lang.Runtime.RuntimeServices+<>c_DisplayClass1.b_0 () Boo.Lang.Runtime.DispatcherCache.Get (Boo.Lang.Runtime.DispatcherKey key, Boo.Lang.Runtime.DispatcherFactory factory) Boo.Lang.Runtime.RuntimeServices.Dispatch (System.Object target, System.String cacheKeyName, System.Type[] cacheKeyTypes, System.Object[] args, Boo.Lang.Runtime.DispatcherFactory factory) [0x00000] Boo.Lang.Runtime.RuntimeServices.Dispatch (System.Object target, System.String cacheKeyName, System.Object[] args, Boo.Lang.Runtime.DispatcherFactory factory) [0x00000] Boo.Lang.Runtime.RuntimeServices.Invoke (System.Object target, System.String name, System.Object[] args) [0x00000] CookieCutter._ReadCookiesCallback (System.Object cookie_string) (at Assets\CookieCutter.js:48) CookieCutter.ReadCookiesFromBrowser () (at Assets\CookieCutter.js:65) CookieCutter.Awake () (at Assets\CookieCutter.js:35)

more ▼

asked Aug 17 '10 at 01:41 AM

stringa gravatar image

stringa
257 37 39 42

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

It's an old question, but I just ran into the problem. I could fix it by deleting the extra square brackets in the Split argument, so _ReadCookiesCallback now looks like:

function _ReadCookiesCallback(cookie_string) {
_cookies = new Hashtable();
loaded=true;
for(var element in cookie_string.Split(";"[0]) ) {
  var key_value = element.Split("="[0],2);
  if(key_value.Length == 2)
      _cookies[key_value[0].Trim()] = key_value[1];
  }
}
more ▼

answered Dec 07 '11 at 03:43 PM

WhiskeyJack gravatar image

WhiskeyJack
75 10 10 19

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x128
x14
x4

asked: Aug 17 '10 at 01:41 AM

Seen: 1510 times

Last Updated: Dec 07 '11 at 03:45 PM