Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving from web.config to HttpApplication
Message
De
27/01/2015 22:02:12
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Titre:
Moving from web.config to HttpApplication
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01614430
Message ID:
01614430
Vues:
31
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform