Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving from web.config to HttpApplication
Message
From
27/01/2015 22:02:12
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web Services
Title:
Moving from web.config to HttpApplication
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01614430
Message ID:
01614430
Views:
33
I have this in the web.config of the Web Service:
<?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.

My Global.asax file is containing this one single line:
< @ 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 Class
Is there a way I can move out the soapExtension definition from the web.config file and put the equivalent code in that class instead?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Next
Reply
Map
View

Click here to load this message in the networking platform