I created a callout assembly class and dll using VB 2003 to generate a random
number and assign it to service activity. I created the config file and
published it the the assembly directory. Restarted IIS and when I go to
create a service activity I get the following error:

Could not load type MyCallOuts.PreCreateServiceActivity from assembly
CalloutAssembly, Version=1.0.2291.16635, Culture=neutral, PublicKeyToken=null.

This is the config file:
<?xml version="1.0" encoding="utf-8" ?>

<callout.config version="2.0" xmlns="
http://schemas.microsoft.com/crm/2006/callout/">
<callout entity="serviceappointment" event="PreCreate">
<subscription assembly="CalloutAssembly.dll"
class="MyCallOuts.PreCreateServiceActivity">
</subscription>
</callout>
</callout.config>

The namespace is MyCallOuts and the class is PreCreateServiceActivity.

Can anyone help?!? Thanks in advance.

Re: Problem loading Callout Assembly dll by Jeffry

Jeffry
Mon Apr 10 10:53:19 CDT 2006

You already clearly mentioned your namespace and classnames, but just to be
sure. Do you have all the capitalizations correct? I had exactly the same
problem and it turned out that my dll was called MyCallOut.dll (capital O)
and the callout.config said "MyCallout" and that's why it failed.

HTH,

--
Jeffry van de Vuurst
CWR Mobility
www.cwrmobility.com
--
"MC_Develop" <MCDevelop@discussions.microsoft.com> wrote in message
news:076E67A4-4323-4AAF-8A3A-5C06425A1224@microsoft.com...
>I created a callout assembly class and dll using VB 2003 to generate a
>random
> number and assign it to service activity. I created the config file and
> published it the the assembly directory. Restarted IIS and when I go to
> create a service activity I get the following error:
>
> Could not load type MyCallOuts.PreCreateServiceActivity from assembly
> CalloutAssembly, Version=1.0.2291.16635, Culture=neutral,
> PublicKeyToken=null.
>
> This is the config file:
> <?xml version="1.0" encoding="utf-8" ?>
>
> <callout.config version="2.0" xmlns="
> http://schemas.microsoft.com/crm/2006/callout/">
> <callout entity="serviceappointment" event="PreCreate">
> <subscription assembly="CalloutAssembly.dll"
> class="MyCallOuts.PreCreateServiceActivity">
> </subscription>
> </callout>
> </callout.config>
>
> The namespace is MyCallOuts and the class is PreCreateServiceActivity.
>
> Can anyone help?!? Thanks in advance.
>
>



RE: Problem loading Callout Assembly dll by MCDevelop

MCDevelop
Mon Apr 10 14:18:02 CDT 2006

I was able to resolve the issue. VB Studio was wrapping it in another
namespace. I had to set root namespace to MyCallOuts in properties and
removed the namespace statements from the code.

"MC_Develop" wrote:

> I created a callout assembly class and dll using VB 2003 to generate a random
> number and assign it to service activity. I created the config file and
> published it the the assembly directory. Restarted IIS and when I go to
> create a service activity I get the following error:
>
> Could not load type MyCallOuts.PreCreateServiceActivity from assembly
> CalloutAssembly, Version=1.0.2291.16635, Culture=neutral, PublicKeyToken=null.
>
> This is the config file:
> <?xml version="1.0" encoding="utf-8" ?>
>
> <callout.config version="2.0" xmlns="
> http://schemas.microsoft.com/crm/2006/callout/">
> <callout entity="serviceappointment" event="PreCreate">
> <subscription assembly="CalloutAssembly.dll"
> class="MyCallOuts.PreCreateServiceActivity">
> </subscription>
> </callout>
> </callout.config>
>
> The namespace is MyCallOuts and the class is PreCreateServiceActivity.
>
> Can anyone help?!? Thanks in advance.
>
>