Webservice在部署时获取不同的结果,但在本地开发中,它显示完整的结果 [英] Webservice fetching different results while deployed, but in local dev, it shows full results

查看:82
本文介绍了Webservice在部署时获取不同的结果,但在本地开发中,它显示完整的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我面临一个奇怪的问题。

当我在本地主机上运行Web服务时,我可以根据需要获取所有结果。但是,当我在IIS服务器中部署它时,它不会获取完整的结果。我尝试部署新网站但没有帮助。有什么想法吗?



结果以XML格式提取。因此,在部署时,它会遗漏一些标签。



我尝试过:



我在本地主机上运行了Web服务,我可以根据需要获取所有结果。但是,当我在IIS服务器中部署相同的内容时,它无法获取完整的结果。

Hi friends,
I am facing a weird problem.
When i run a web service on local host, i am able to fetch all the results as per required. but, when i deploy the same in IIS server, it does not fetch full results. I tried deploying new site but did not help . Any ideas?

Results are fetched in XML format. So when deployed , it misses some of the tags.

What I have tried:

I ran the web service on local host, i am able to fetch all the results as per required. but, when i deploy the same in IIS server, it does not fetch full results.

推荐答案

正如所建议的,编码部分没有问题。 />


网站访问权限的更改确实解决了问题。(应用程序文件夹属性中的安全访问权限)







在visual studio中,它获取开发者模式的所有访问权限,但在部署时需要特殊权限用于访问的文件夹(如NETWORK服务等)



谢谢
The issue was'nt in the coding part, as suggested.

Changes in Access rights for the site did resolve the issue.(Security access rights in properties of the application folder)



In visual studio, it fetches all of the access rights for the developer mode, but when deployed, it requires special permission for the folder to access(like NETWORK Service and so on)

Thanks


这篇关于Webservice在部署时获取不同的结果,但在本地开发中,它显示完整的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆