Web.config and relative path

Results 1 to 2 of 2

Thread: Web.config and relative path

  1. #1
    Join Date
    Dec 1969

    Default Web.config and relative path

    I have a asp.net web project which involveds a .net remoting service. The config file dispclient.exe.config is currently under the absolution path. I want to modify the web.config file so that the path can be replaced with Server.MapPath or AppPath or sth so that my remoting config file will always be associated with the web project virtual directory. Any idea? Thanks.<BR><BR><BR>&#060;appSettings&#062;<BR> &#060;add key="RemotingConfig" value="c:inetpubwwwrootwebappmedstardispclient.exe .config" /&#062;<BR> &#060;add key="webservice_host" &#060;/appSettings&#062;

  2. #2
    Join Date
    Dec 1969

    Default RE: Web.config and relative path

    Why dont you put the virtual path in the key, a la:<BR><BR>&#060;add key="RemotingConfig" value="/webappmedstar/dispclient.exe.config" /&#062;<BR><BR>and then in the code when you pull that code... Server.MapPath it then......<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts