简体   繁体   English

配置Web服务的部署

[英]configuring deployment of web service

I have defined certain rules in a xml file. 我已经在xml文件中定义了某些规则。

When I am running the service it is successfully getting the nodes of the xml file, but when i am deploying the web service, the folder containing the xml file is not copied to the server!! 当我运行服务时,它成功获取了xml文件的节点,但是当我部署Web服务时,包含xml文件的文件夹未复制到服务器! ie when i publish it the folder is not there, so the service is throwing error stating that the xml file is not found 即当我发布它时文件夹不存在,因此服务抛出错误,指出找不到xml文件

What changes should i make to ensure that the xml file is getting copied along with its parent folder during the deployment? 我应该进行哪些更改以确保在部署期间将xml文件及其父文件夹一起复制?

What IDE you are using ?? 您正在使用什么IDE? if is visual studio you can before publish set the property 'Copy to Out Directory' to 'always copy' and set the property 'Build Action' to 'Content' in the xml file propeties. 如果是Visual Studio,则可以在发布之前将xml文件属性中的“复制到外部目录”属性设置为“始终复制”,并将属性“构建操作”设置为“内容”。 it will copied when you publish the service. 发布服务时,它将被复制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM