Unable to add soapExtensionTypes into web.config file

Hi,

I use Visual Web Developper 2005 beta. I have a class inherited from SoapExtension called AxisSoapExtension. This class is into my application App_Code folder.
I try to configure web.config file to declare this SoapExtension:

<?xml version="1.0"?>
<configuration>
...
<webServices>
<soapExtensionTypes>
<add type="AxisSoapExtension" priority="1" group="0"/>
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

When I start my app I have got this error:
Could not load type 'AxisSoapExtension' from assembly 'System.Web.Services, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

If I try type="AxisSoapExtension,AxisSoapExtension" the AxisSoapExtension assemby could not be found.
In fact I don't know how to declare an assembly from a business object.
I wish not use a DLL.

I would appriciate any help.

Thanks,
Benjamin

[998 byte] By [BenjaminFrancioni] at [2007-12-16]
# 1
Hello Benjamin,

I think that you need to give more evidence so that the framework can correctly locate the AxisSoapExtension assembly and type. Have you tried strong naming the assembly and then providing the details to the type attribute?

Reference: Soap Message Modification Using SOAP Extensions

"Note that the type attribute value must be on one line, and includes the fully qualified name of the extension, plus the version, culture, and public key token of the signed assembly."

hth,

-Todd Foust

ToddFoust at 2007-9-9 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...
# 2
Thanks, now it works fine!!!

Benjamin

BenjaminFrancioni at 2007-9-9 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...
# 3

Hi Benjamin!

I hope it isn't too late for this message to be read by you!

I face the same problem now,and I see you finally solved it.

I would like to get some details from you, if possible.

Thanks

chief_druid_tma at 2007-9-9 > top of Msdn Tech,.NET Development,ASMX Web Services and XML Serialization...

.NET Development

Site Classified