Configuring Application Settings in .NET Framework

Application Settings are different from user setting since configuration values of application settings apply to the entire application. Normally, we will store database connection strings, web services URL, Remoting settings. There are many benefits of employing application settings. For instance, we can add or update Assemblies location without need to recompile project. This is also good way of spreading assemblies to different machines to accommodate heavier load for example when hardware upgrade is not an option.

<system.runtime.remoting>

      <applicationname ="MyApplication">

            <service>

                  <wellknowntype="FullyQualifiedName,AssemblyName"mode="Singleton"

                     objectUri="MyClass.rem">

                  </service>

      </application>

</system.runtime.remoting>
We can host assemblies in the IIS but we need to make sure file names are ending with .rem

<system.runtime.remoting>

      <applicationname ="MyClientApplication">

            <service>

                  <wellnown=""type="FullyQualifiedName, AssemblyName"

                     url="http://localhost/MyClass.rem"

                        </service></application>

</system.runtime.remoting>