« Previous Next »

Thread: How to get site home path, and a replacement bug

Last post 06-25-2009 4:46 PM by richma. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 06-25-2009, 10:51 AM

    • landofcash
    • Not Ranked
    • Joined on 04-20-2005, 7:42 PM
    • Moscow
    • Posts 2

    How to get site home path, and a replacement bug

    Hi,

    1) It looks like there is a bug with parameter replacement.
    I'm trying to make a package and this is what I use in parameters:

      <parameter name="Database Name"  description="Name of the database for your application."  defaultValue="ConvincingMail" tags="MSSQL, dbName">
        <parameterEntry type="TextFile" scope="ConvincingMail-starter-1.4\\web.config" match="[SQLDATABASE]" /> 
       <parameterEntry  type="TextFile"  scope="install.sql" match="SQLDATABASE" />
      </parameter>


    the second parameterEntry  works fine but the first one doesn't work. It replaces the target file with junk. I think that it is because of brackets [ and ]

    2) I also need to change one parameter value in the web.config file with the app home url.
    e.g. http://{site}/{app}/ but I'm not sure if there is a way to do that.

    Thanks
    Mikhail

  • 06-25-2009, 4:46 PM In reply to

    • richma
    • Top 25 Contributor
    • Joined on 04-06-2009, 12:10 PM
    • Posts 354

    Re: How to get site home path, and a replacement bug

    hi landofcash

    We have another forum for  the Web Deployment tool at  :http://forums.iis.net/1144.aspx

    You should get  a quiker answer there.

Page 1 of 1 (2 items)
Microsoft Communities