<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5602263760491785758.post4832308480961674793..comments</id><updated>2009-12-06T11:31:03.647-08:00</updated><title type='text'>Comments on DevArchive.net Blog: Executing method in the class library using ASP.NE...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.devarchive.net/feeds/4832308480961674793/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5602263760491785758/4832308480961674793/comments/default'/><link rel='alternate' type='text/html' href='http://blog.devarchive.net/2008/03/executing-method-in-class-library-using_03.html'/><author><name>Kirill Chilingarashvili</name><uri>http://www.blogger.com/profile/09906215698720468631</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5602263760491785758.post-361769439503832199</id><published>2009-06-21T02:40:33.196-07:00</published><updated>2009-06-21T02:40:33.196-07:00</updated><title type='text'>Hi Robba,

I used reflector to open AJAX library s...</title><content type='html'>Hi Robba,&lt;br /&gt;&lt;br /&gt;I used reflector to open AJAX library source code and modify it for my needs (not sure if I can use it production because of this - I used it for learning purposes).&lt;br /&gt;&lt;br /&gt;I guess you can modify the code where the result string is written to response, anyway this needs checking with reflector of new AJAX framework (.NET 3.5), and replicating this change, this should be an easy fix.&lt;br /&gt;&lt;br /&gt;I wrote this post based on AJAX 1.0 library, and as I remember, &amp;quot;d&amp;quot; was introduced in 3.5, and it fixes security vulnerability&lt;br /&gt;&lt;br /&gt;see for example this post http://encosia.com/2009/02/10/a-breaking-change-between-versions-of-aspnet-ajax/ from encosia, and section named &amp;quot;Why did it change?&amp;quot;, I guess there can be found another descriptions of change in the net as well.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5602263760491785758/4832308480961674793/comments/default/361769439503832199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5602263760491785758/4832308480961674793/comments/default/361769439503832199'/><link rel='alternate' type='text/html' href='http://blog.devarchive.net/2008/03/executing-method-in-class-library-using_03.html?showComment=1245577233196#c361769439503832199' title=''/><author><name>Kirill Chilingarashvili</name><uri>http://www.blogger.com/profile/09906215698720468631</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12119371288037432177'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.devarchive.net/2008/03/executing-method-in-class-library-using_03.html' ref='tag:blogger.com,1999:blog-5602263760491785758.post-4832308480961674793' source='http://www.blogger.com/feeds/5602263760491785758/posts/default/4832308480961674793' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-5602263760491785758.post-1567136020030008665</id><published>2009-06-20T15:07:39.902-07:00</published><updated>2009-06-20T15:07:39.902-07:00</updated><title type='text'>Hey Kirill,

I was just looking at the source code...</title><content type='html'>Hey Kirill,&lt;br /&gt;&lt;br /&gt;I was just looking at the source code of your solution and created an example project of my own. I am running into a small issue though; the value that is returned on the request is the exact JSON representation of the object, but the client side parser requires everything to be part of the &amp;quot;d&amp;quot; property.&lt;br /&gt;&lt;br /&gt;For instance, when I return a simple class with one property named &amp;quot;Prop&amp;quot; and assign it a value of &amp;quot;temp&amp;quot; the result on the wire will be { &amp;quot;Prop&amp;quot; : &amp;quot;temp&amp;quot; }.&lt;br /&gt;&lt;br /&gt;The JavaScript parser will give an error complaining that the JSON result must have a &amp;quot;d&amp;quot; property. What it expects is the result of the example above to be:&lt;br /&gt;{ &amp;quot;d&amp;quot; : {&amp;quot;Prop&amp;quot; : &amp;quot;temp&amp;quot; }}&lt;br /&gt;&lt;br /&gt;Have you had this problem? If so, how did you fix it? The easy way would be to change the RestHandler to add the {&amp;quot;d&amp;quot;:} to the responseString at line 194, but that doesn&amp;#39;t really feel like a great solution if you ask me...&lt;br /&gt;&lt;br /&gt;Anyway, I realise this is an old topic, was just hoping you&amp;#39;d still be around to answer the question.&lt;br /&gt;&lt;br /&gt;Thanks, &lt;br /&gt;&lt;br /&gt;Robert</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5602263760491785758/4832308480961674793/comments/default/1567136020030008665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5602263760491785758/4832308480961674793/comments/default/1567136020030008665'/><link rel='alternate' type='text/html' href='http://blog.devarchive.net/2008/03/executing-method-in-class-library-using_03.html?showComment=1245535659902#c1567136020030008665' title=''/><author><name>Robba</name><uri>http://www.blogger.com/profile/17495112524715420942</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.devarchive.net/2008/03/executing-method-in-class-library-using_03.html' ref='tag:blogger.com,1999:blog-5602263760491785758.post-4832308480961674793' source='http://www.blogger.com/feeds/5602263760491785758/posts/default/4832308480961674793' type='text/html'/></entry></feed>