被其访问权限禁止

问题描述:



我在我的项目中使用HttpWebRequest类,正在对https和http页面进行调用.

Https请求工作正常.

Http请求将以下错误抛出到同一站点.

异常消息:无法连接到远程服务器

内部消息:尝试以其访问权限禁止的方式访问套接字68.142.215.20:80

我已经用Google搜索解决方案,但没有找到正确的解决方案.

谢谢,
nagaraj

Hi ,

I using HttpWebRequest Class in My project, I am making calls to both https and http pages.

Https Requests are working fine.

Http requests are throwing the below error to the same site.

Exception Message: Unable to connect to the remote server

Inner message: An attempt was made to access a socket in a way forbidden by its access permissions 68.142.215.20:80

I have googled for solution, didn''t get correct solution.

Thanks,
nagaraj

错误是自我描述的.您正在访问的Uri在端口80上没有授予访问权限,出于安全原因,该端口受到限制.尝试在浏览器中访问它,如果不起作用,请与网站所有者联系以获取更多信息.如果它是您的网站,请检查权限.
The error is self describing. The Uri you are accessing not giving access at port 80 which is restricted for security reasons. Try to access it in browser and if not works contact the site owner for more information. If it is your site then check the permissions.