I've written a RSS News reading web part that uses Ajax.Net (source and
binary available here:
http://svintinner.blogspot.com/2006/09/ajax-rss-web-part-for-sharepoint.html).
 The web part works perfectly as long as the web part .DLL is installed
in the /bin directory of my Sharepoint installation.

If I install the web part .DLL into the Global Assembly Cache (GAC),
then the ajax functions stop working and I receive a javascript error
"<namespace> is undefined."

I know that when I run the RegisterTypeForAjax command, the following
line is placed in the HTML of the page:

<script type="text/javascript"
src="/ajaxpro/AjaxRSS.AjaxRSSReader,AjaxRSS.ashx"></script>

Normally this script should create the javascript object (in my case
AjaxRSS).  For example, when the web part is in the /bin directory, I
can visit that script URL
(http://localhost/ajaxpro/AjaxRSS.AjaxRSSReader,AjaxRSS.ashx) to see
the ajax script code.  Here is the code I normally see:

if(typeof AjaxRSS == "undefined") AjaxRSS={};
AjaxRSS.AjaxRSSReader_class = function() {};
Object.extend(AjaxRSS.AjaxRSSReader_class.prototype, Object.extend(new
AjaxPro.AjaxClass(), {
        UpdateRSSFeed: function(info) {
                return this.invoke("UpdateRSSFeed", {"info":info},
this.UpdateRSSFeed.getArguments().slice(1));
        },
        url: '/ajaxpro/AjaxRSS.AjaxRSSReader,AjaxRSS.ashx'
}));
AjaxRSS.AjaxRSSReader = new AjaxRSS.AjaxRSSReader_class();


However, when the web part .DLL is placed into the GAC, that /ajaxpro
URL returns an empty page.  (Note it is an empty page, not an error
page--like you might see if you had the wrong version number.)

This seems to be the same issue Jeppe is referring to here:
http://groups.google.com/group/ajaxpro/browse_thread/thread/b37b352c4764b6ab/73be01db0428e819
and mgregorio here:
http://groups.google.com/group/ajaxpro/browse_thread/thread/d8c008e3b5ca60e9/8beb697319c2cf9a
and dico here:
http://groups.google.com/group/ajaxpro/browse_thread/thread/9481c62c5592a94/0ae58e5f1e9642d5

I'm happy enough keeping my web part DLL in my /bin directory instead
of the GAC, but I thought I would post the question anyway since others
seem to have the same issue.

Any help you could provide would be greatly appreciated.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to