>I have this to support an extension in my Web Service inside the Web.config file:
>
>
><?xml version="1.0"?>
><configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
> <system.web>
> <webServices>
> <soapExtensionTypes>
> <add type="Framework.TraceExtension,Framework" priority="1" group="0"/>
> </soapExtensionTypes>
> </webServices>
></configuration>
>
>
>Would there be a way to remove that from there and have it in the code instead?
I am sorry I don't nnow the answer to your question. I'm curious, though, why you want it in your code instead of the config file. I thought the idea was to keep as much hard coding as possible out of the code. That way, using techniques like dependency injection, it's possible to change an app without having to change code or rebuild.