Hi,

I'm trying to use AjaxPro.2 with an assembly that I've placed in the
GAC and I can't get it to work. After searching through posts in this
group I managed to figure out that what i need is the following in my
web.config file:

<ajaxSettings>
 <urlNamespaceMappings useAssemblyQualifiedName="true"
allowListOnly="false">
 <!--
 Set the attribute useAssemblyQualifiedName to true to enable  use of
assemblies placed in the GAC by using the full assembly qualified name.
To hide internal knowledge of assemblies, classes and namespace you can
override the name of the virtual http endpoints.
<add type="Namespace.Class1,Assembly" path="mypath" />
 -->
      </urlNamespaceMappings>
<!-- Other settings not listed here -->
</ajaxSettings>

I have set the useAssemblyQualifiedName to "true" as instructed but I'm
not sure how to reference my assembly.
Do I do this by adding a <add type="Namespace.Class1,Assembly"
path="mypath" /> for it?
What would this look like for an assembly referenced like this (in the
web.config):
<add assembly="MyPackage.MyClass, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=FB921091964E496E"/>
Finally how do I call the AjaxMethod of my class from js? Where I
previously just used: <script type="text/javascript">var result =
MyClass.MyMethod();</script> do I need to change anything?

Thankful for any input!

Cheers / Jesper


--~--~---------~--~----~------------~-------~--~----~
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