<?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>I would like to get rid of this webServices section and put that in my framework GlobalBase class.
< @ Application Language="VB" Inherits="Framework.GlobalBase"%>In my Framework, I have the GlobalBase class which contains those sections:
Imports System.Web Imports System.Reflection Public Class GlobalBase Inherits System.Web.HttpApplication Private oApp As App = Nothing Sub Application_PreRequestHandlerExecute(ByVal sender As Object, ByVal e As EventArgs) End Sub Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs) End Sub Sub Application_End() End Sub End ClassIs there a way I can move out the soapExtension definition from the web.config file and put the equivalent code in that class instead?