tag:help.appveyor.com,2012-11-13:/discussions/questions/3719-setup-environment-to-deploy-to-iis-sub-application-within-a-websiteAppVeyor: Discussion 2018-08-25T02:17:25Ztag:help.appveyor.com,2012-11-13:Comment/424237962017-04-25T07:38:06Z2017-04-25T07:38:06ZSetup Environment to Deploy to IIS sub application within a website<div><p>It looks correct, but I believe you still need to set <strong>CTS.Admin.site_name</strong> = CTS.Web, otherwise it will be deployed as Virtual Application under Default Web Site.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/424237962017-04-25T07:41:57Z2017-04-25T07:41:57ZSetup Environment to Deploy to IIS sub application within a website<div><p>Cool, thanks. Will give this a spin.</p></div>mark.garciatag:help.appveyor.com,2012-11-13:Comment/424237962017-04-25T07:46:42Z2017-04-25T07:46:42ZSetup Environment to Deploy to IIS sub application within a website<div><p>By the way, do I still need this line:</p>
<p><strong>CTS.Admin.application_path</strong> = CTS.Web</p></div>mark.garciatag:help.appveyor.com,2012-11-13:Comment/424237962017-04-25T08:38:12Z2017-04-25T08:38:12ZSetup Environment to Deploy to IIS sub application within a website<div><p>Sorry , I got this error when I tried.</p></div>mark.garciatag:help.appveyor.com,2012-11-13:Comment/424237962017-04-25T08:55:34Z2017-04-25T08:55:34ZSetup Environment to Deploy to IIS sub application within a website<div><p>This is my environment</p></div>mark.garciatag:help.appveyor.com,2012-11-13:Comment/424237962017-04-25T09:04:02Z2017-04-25T09:04:02ZSetup Environment to Deploy to IIS sub application within a website<div><p>It's fixed now:<br>
application_path needs to be absolute path to the application directory</p>
<p>Thanks</p></div>mark.garciatag:help.appveyor.com,2012-11-13:Comment/424237962017-06-01T14:19:44Z2017-06-01T14:19:44ZSetup Environment to Deploy to IIS sub application within a website<div><p>Interesting, do you do any IIS configuration work outside AppVeyor? We tried something similar to this but it didn't work reliably (possibly due to deployment ordering). I got everything working if I configure the app pools and IIS site layout in the configuration stage of the server, then let AppVeyor deploy to existing app pools and created sites.</p>
<p>Thanks.<br>
Andrew.</p></div>andrewtag:help.appveyor.com,2012-11-13:Comment/424237962017-06-02T22:58:33Z2017-06-02T22:58:33ZSetup Environment to Deploy to IIS sub application within a website<div><p><strong>@andrew</strong> can you provide more details about your configuration and errors you see?</p></div>Ilya Finkelshteyn