Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7986507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:52:27+00:00 2026-06-04T11:52:27+00:00

My primary assembly is a web application. It uses spring.net framework to load other

  • 0

My primary assembly is a web application. It uses spring.net framework to load other assemblies into its executing app domain. So naturally this means all those other assemblies must get their config values (for e.g. connection strings & app settings) from the web.config.

Is there a way I can override this? Some of the configurations can come from the web.config; others must reside separately. What kind of an approach should I take in developing such .net assemblies? The goal is, once this application goes into the client environment, and the client decides to add assemblies somewhere in the distant future, he should be able to do so without hassles, and change the configuration for that assembly without affecting the others.

So ultimately I must come out with a kind of framework-based approach? Is there already something to this effect? Or how do I go about this? What are the challenges I’d be faced with?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:52:29+00:00Added an answer on June 4, 2026 at 11:52 am

    The web config file allows you to create custom assembly specific configuration sections.

    Check out http://msdn.microsoft.com/en-us/library/2tw134k3.aspx for details

    Additionally you can specify other files as configuration files to be used and parsed by the configuration parser in .net

    You can do this using the config source option in your config files: e.g.

    in App.config/Web.config

    <configuration>
      <system.serviceModel>
        <services configSource="Services.config" >
        </services> 
      </system.serviceModel>
    </configuration>
    

    Create a file called Services.config and in it:

    <services>
      <service name="SomeNameSpace.MyService"
               behaviorConfiguration="MyServiceBehaviour">
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:1234/service"/>
          </baseAddresses>
        </host>
        <endpoint address="net.tcp://localhost:8000/service"
                  binding="netTcpBinding"
                  bindingConfiguration="Binding1"
                  contract="SomeNameSpace.IService" />
      </service>
    </services>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to use Office Primary Interop assembly in own application like Business in the
I wrote a simple VS2010 WPF application which targeted .NET Framework 4 Client Profile
We have a .Net 2.0 web app and are converting the solution and projects
Per the above I am trying to re-target a fresh ASP.NET MVC 2 application
I'm looking at a web.config right now in ASP.NET WebForms .NET 3.5 that's got
Is there a way to intercept/log all database calls from a .Net Assembly. The
The primary window in my app is borderless: [self.window setStyleMask:NSBorderlessWindowMask]; From that window, I
I have a Visual Studio 2010 project targeting .NET Framework 4.0. When I add
Im studying up on .NET multifile assemblies. In the context of multifile assemblies, the
Can someone please translate this into English? The primary reference Microsoft.SQLServer.ManagedDTS, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.