开发者

How to configure a published package as a website in IIS

开发者 https://www.devze.com 2023-03-20 09:37 出处:网络
I want to auto publish the sites using teamcity. I am using teamcity\'s Visual studio to publish a website. It creates a pre-compiled web directory as following

I want to auto publish the sites using teamcity. I am using teamcity's Visual studio to publish a website. It creates a pre-compiled web directory as following

 D:\publish\PrecompiledWeb\Books in the checkout dir开发者_如何学Goectory.

Now I need to use it with IIS. If I point the IIS to that directory It gives the following error

 HTTP Error 500.19 - Internal Server Error
 The requested page cannot be accessed because the related configuration data for the page is invalid.

Any Idea what I am doing wrong.


I'm not entirely clear on the steps you're taking from your question, but it looks like your ultimate goal is to use TeamCity to create a deployable package and publish that to IIS. Your best bet is to do this using WebDeploy and fire it off from a Visual Studio build runner in TeamCity with appropriate parameters. There's a step-by-step guide to doing this in the You're deploying it wrong series.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号