Skip to main content

File attachment failed. Invalid Token

Comments

4 comments

  • Permanently deleted user

    You may have to configure the token service URL within the proxy.config file

    0
  • Permanently deleted user

    Thanks for the response.  Do you have any further direction on what I might need to do to configure it further?

    Thanks,

    Becky

    0
  • Permanently deleted user

    I got that exact message before...

    It was because our Server REST URL wasn't in our proxy.config file

    I went to the HTML5Viewer folder on our wwwroot folder & copy pasted a new <serverURL just with our Server REST URL in it. 

     

    This is what it looked like before I added our server... We placed ours on line 14 

     

    <?xml version="1.0" encoding="utf-8" ?>

     

    <!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.

     

            

     

            mustMatch: true to only proxy to sites listed, false to proxy to any site -->

     

    <ProxyConfig mustMatch="true">

     

      <serverUrls>

     

        <!-- serverUrl options:

     

              url = location of the server, either specific URL or stem

     

              matchAll = true to forward any request beginning with the url

     

              token = (optional) token to include for secured service

     

              dynamicToken = if true, gets token dynamically with username and

     

              password stored in web.config file's appSettings section.

     

        -->

     

        <serverUrl url="http://agsdemo.geocortex.com/arcgis/rest"

     

                    matchAll="true"></serverUrl>

     

        <serverUrl url="http://gedemo.geocortex.com/geocortex/essentials"

     

                    matchAll="true"></serverUrl>

     

        <serverUrl url="http://sampleserver1.arcgisonline.com/arcgis/rest/services/"

     

                    matchAll="true"></serverUrl>

     

        <serverUrl url="http://sampleserver2.arcgisonline.com/arcgis/rest/services/"

     

                    matchAll="true"></serverUrl>

     

        <serverUrl url="http://sampleserver3.arcgisonline.com/arcgis/rest/services/"

     

                    matchAll="true"></serverUrl>

     

        <serverUrl url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/"

     

                    matchAll="true"></serverUrl>

     

        <serverUrl url="http://server.arcgisonline.com/arcgis/rest/services/"

     

                    matchAll="true"></serverUrl>

     

        <serverUrl url="http://services.arcgisonline.com/arcgis/rest/services/"

     

                    matchAll="true"></serverUrl>

     

        <serverUrl url="http://orthogonal.esri.com/arcgis/rest/services/"

     

                    matchAll="true"></serverUrl>

     

      </serverUrls>

     

    </ProxyConfig>

     

     

     
    0
  • Permanently deleted user

    Thank you for the indepth explanation Alex!  I've inserted our REST url where you specified.  Now I'll just wait and see if we get reports of it erroring out again, and I'll post back.

    Thanks again!

    ~Becky

    0

Please sign in to leave a comment.