Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving extension inside the code
Message
 
 
To
20/03/2014 10:06:22
General information
Forum:
ASP.NET
Category:
Web Services
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01596910
Message ID:
01596912
Views:
40
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform