简体   繁体   English

在生产(IIS)服务器上使用Web服务的问题

[英]Problems consuming webservice on production(IIS) server

I need to write web servive, that consume web service. 我需要编写消耗服务的Web服务。

I have a web service with outher certificate. 我有一个带有附加证书的Web服务。 I make a web application, that use this web service. 我制作了一个使用此Web服务的Web应用程序。 It starts work in my visual studio. 它开始在我的视觉工作室工作。 Ok, I moved it over IIS on serwer and: 好的,我在服务器上将它移到IIS上,并且:

  • on 'localhost' (http:// localhost :51191/test.aspx) it works -> page is shown, and method sucessfull invoke a remote web service 在'localhost'(http:// localhost:51191 / test.aspx)上它起作用->页面显示,并且方法sucessfull调用远程Web服务
  • on normal IIS, .aspx works, but web service return 403 error (http:// localhost :81/test/test.aspx) -> test.aspx works, but web method invoke return 403 error 在普通的IIS上,.aspx可以工作,但是Web服务返回403错误(http:// localhost:81 / test / test.aspx)-> test.aspx可以,但是Web方法调用返回403错误

I give permissions to that catalog for administrator, and IIS_IUSRS 我授予该目录管理员和IIS_IUSRS的权限

  1. Check if the server link works from your machine eg http:// <sever name> :81/test/test.aspx 检查服务器链接是否在您的计算机上正常工作,例如http:// <sever name> :81/test/test.aspx
  2. If it doesn't work give permission for Everyone to the folder and see if you have access. 如果不起作用,则将Everyone权限授予该文件夹,然后查看您是否具有访问权限。 This will help you to narrow down if its issue with permission or not 这将帮助您缩小范围是否得到许可
  3. Launch from Internet Explorer on the server for the link http:// <sever name> :81/test/test.aspx (Not with localhost) 从服务器上的Internet Explorer启动链接http:// <sever name> :81/test/test.aspx (不适用于localhost)

And see if this link helps - http://forums.asp.net/t/1860412.aspx?403+Forbidden+error+When+calling+webservice+method+from+ASP+net+Application 并查看此链接是否有帮助-http://forums.asp.net/t/1860412.aspx?403+Forbidden+error+When+calling+webservice+method+from+ASP+net+Application

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

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