Select to view content in your preferred language

Publish ArcGIS-Server-Web-Service

636
1
Jump to solution
10-16-2013 03:22 AM
KaiB_
by
Occasional Contributor
Dear users,

I would like to publish an ArcGIS-Server-Web-Service in my AGO-Application.

Well, I have created one Service with ArcGIS Server, publishing doesn`t give any warnings and I can implement it very well for example in an ESRI Flex client.

I also can implement it in AGO if I`m NOT (!!) signed in, if I am signed in, I get a message like: "The layer can`t be implemented" (something like this).
I have an account as as publisher, but how can it be that I can`t publish that Service?
Has anybody an idea?

Thank you very much, Kai
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
KaiB_
by
Occasional Contributor
It is very important that CORS is activated, it works now!


to C:\inetpub\wwwroot\ArcGIS\rest\Web.Config

I inserted

<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>

Then it`s important that the browser supports CORS (http://enable-cors.org/) 🙂
I had no Luck with Firefox 24, but it worked with Chrome 30, everything fine now

View solution in original post

0 Kudos
1 Reply
KaiB_
by
Occasional Contributor
It is very important that CORS is activated, it works now!


to C:\inetpub\wwwroot\ArcGIS\rest\Web.Config

I inserted

<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>

Then it`s important that the browser supports CORS (http://enable-cors.org/) 🙂
I had no Luck with Firefox 24, but it worked with Chrome 30, everything fine now
0 Kudos