I had a question about accessing Config files from "No touch" application:

 

First of all when you say “NoTouch” are you referring to the .Net Framework version for 1.1 or the “one click” technology in 2.0?

If it is the 1.1 technology you might reconsider using it due to lack of documentation and the issue “Href to exe apps broken by .NET 2.0”

 

If it is a matter of wanting to use config file from the server then you should be able to enable access to config files on IIS (see bottom of post) and use the APP_LAUNCH_URL constant (see below) to extract this patch.

 

AppDomain domain = AppDomain.CurrentDomain;

object obj = domain.GetData("APP_LAUNCH_URL");

string appLaunchUrl = (obj != null ? obj.ToString() : "");

MessageBox.Show(appLaunchUrl);

Enabling Config file access on IIS

<configuration>

  <system.web>

    <httpHandlers>

      <!-- map .exe and .exe?blah.config files to our handler -->

      <add verb="*" path="*.exe"

           type="Genghis.Web.ConfigFileHandler, ConfigHandler" />

     

      <!-- allow .config files but disable web.config files -->

      <remove verb="*" path="*.config" />

      <add verb="*" path="web.config"

           type="System.Web.HttpForbiddenHandler"/>

    </httpHandlers>

 </system.web>

</configuration>

 

For more information on this please see Chris Sells article:

 

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnforms/html/winforms05152003.asp

 

other keywords: zero touch, no touch, oneclick and href to exe