尝试连接到REST端点时发生安全性异常。 [英] A security exception occured while trying to connect to the REST endpoint.

查看:242
本文介绍了尝试连接到REST端点时发生安全性异常。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的大师!

Intranet中有4台计算机,它们通过相同的路由器访问互联网。我试图从一些arcgis服务器访问gis服务。从3台计算机和家用电脑 - 一切正常。但是从内联网的一台计算机 - 我得到下一个
错误消息:

There are 4 computers in intranet, which access internet throgh the same router. And I am trying to access gis service from some arcgis server. From 3 of computers , and from my home computers - all works fine. But from one computer of intranet - I get next error message:

" Users agents:Mozilla / 4.0(兼容; MSIE 8.0; Windows NT 6.1; WOW64; Trident / 4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

"Users agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

消息:Silverlight应用程序中的未处理错误尝试连接到REST端点时发生安全性异常。确保您的服务器根目录中有一个跨域策略文件,允许来自此应用程序的请求。
  ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)

   вESRI.ArcGIS.Client.Layer.Initialize()

   вESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer。<> c__DisplayClass26。< MapServiceInfoInitFailed> b__24()
$ b $bСтрока:1
$ b $bСимвол:1
$ b $bКод:0
$
URI-код:http://217....48.153:6080 / Silverlight.js



消息:Silverlight应用程序中的未处理错误尝试连接到REST端点时发生安全性异常。确保您的服务器根目录中有一个跨域策略文件,允许来自此应用程序的请求。
  ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)

   вESRI.ArcGIS.Client.Layer.Initialize()

   вESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer。<> c__DisplayClass26。< MapServiceInfoInitFailed> b__24()
$ b $bСтрока:1
$ b $bСимвол:1
$ b $bКод:0
$
URI-код:http://217....48.153:6080 / Silverlight.js
"

message: Unhandled Error in Silverlight Application A security exception occured while trying to connect to the REST endpoint. Make sure you have a cross domain policy file available at the root for your server that allows for requests from this application.   в ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)
   в ESRI.ArcGIS.Client.Layer.Initialize()
   в ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer.<>c__DisplayClass26.<MapServiceInfoInitFailed>b__24()
Строка: 1
Символ: 1
Код: 0
URI-код: http://217....48.153:6080/Silverlight.js

message: Unhandled Error in Silverlight Application A security exception occured while trying to connect to the REST endpoint. Make sure you have a cross domain policy file available at the root for your server that allows for requests from this application.   в ESRI.ArcGIS.Client.Layer.OnInitializationFailed(EventArgs e)
   в ESRI.ArcGIS.Client.Layer.Initialize()
   в ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer.<>c__DisplayClass26.<MapServiceInfoInitFailed>b__24()
Строка: 1
Символ: 1
Код: 0
URI-код: http://217....48.153:6080/Silverlight.js "

我有一个包含下一个内容的crossdomain.xml和clientaccesspolicy.xml文件:

I have an crossdomain.xml and clientaccesspolicy.xml files with next contents:

"

"

在3台计算机的小提琴手中 - 我看到请求crossdomain.xml文件并且一切正常,但是从一台计算机文件请求我不能看到。  我无法理解 - 与使用白色Ip的路由器之前的计算机有什么不同我称之为
服务(我得到与跨域访问相关的错误响应)? 

In fiddler from 3 computers - I see requesting of crossdomain.xml file and all works fine, but from one computer  file request I can not see.  I can't understand -  what's the difference from what computer before router with white Ip I call service (I get the error response associated with cross domain access) ? 

任何想法???

推荐答案


  • PS 1.部署的一些细节。我将解决方案写入服务器,作为站点的物理方式,我指向了web项目的方式,其中包含crossdomain和clientaccesspolicy.xml文件。
  • 2。当我从我的计算机运行我的解决方案时(从浏览器无法访问gis服务) - 一切正常。


这篇关于尝试连接到REST端点时发生安全性异常。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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