Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving from web.config to HttpApplication
Message
De
28/01/2015 03:54:23
 
 
À
27/01/2015 22:02:12
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
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:
01614441
Vues:
21
>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?

No idea if this works but : http://www.justskins.com/forums/programatically-register-soapextensions-77036.html
But why do you want to do this?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform