Select to view content in your preferred language

Trouble accessing my services

736
1
03-17-2011 05:06 AM
JerryBiedenbender
Emerging Contributor
I have been trying to get my services to load in a silverlight application for a couple months and just can�??t figure it out.

I have verified that I have a clientaccesspolicy and ran fiddler to try and figure out the problem.

I have read these links and cannot find an example of the issue that I am having�?� 

1) troubleshooting blank layers: http://blogs.esri.com/Dev/blogs/silv...nk-layers.aspx

2) blog post: http://blogs.esri.com/Dev/blogs/silv...s-schemes.aspx.

3) http://help.arcgis.com/en/webapi/sil...0000004000000/


I am not getting a �??404�?� error code in fiddler, I am getting a �??401�?� See attached

I am running visual studio from my workstation which is separate than my server.

My clientaccesspolicy is as followes�?�

<?xml version="1.0" encoding="utf-8" ?>
- <access-policy>
- <cross-domain-access>
- <policy>
- <allow-from http-request-headers="*">
<domain uri="*" />
<domain uri="http://*" />
</allow-from>
- <grant-to>
<resource path="/" include-subpaths="true" />
</grant-to>
</policy>
</cross-domain-access>
</access-policy>

My MainPage.xaml is as follows...

<UserControl x:Class="SilverlightApplication20.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
 
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">

        <esri:Map x:Name="MyMap" >

            <esri:Map.Layers>                  
                <esri:ArcGISTiledMapServiceLayer ID="StreetMap"
                    Url="http://gis02/ArcGIS/rest/services/MapServices/FieldCached_WGS1984/MapServer" />
            </esri:Map.Layers>


        </esri:Map>

    </Grid>
</UserControl>
Any help would be greatly appreciated, I really need to get this working.
0 Kudos
1 Reply
DarinaTchountcheva
Frequent Contributor
Jerry,

401 error points to not supplied or invalid user credentials problems.

http://www.checkupdown.com/status/E401.html

It seems to me that your web server (at the root level) is not configured to allow anonymous access. Check the directory security in IIS Manager to see if Anonymous Authentication is allowed. If not, allowing it might resolve your problem.

Warning: If this is a production server, or a dev server used by other developers, don't change the authentication before you consult the right people, or someone might get mad. 😉 And make sure you don't ovewrite this setting for the subfolders (websites), because this might be the intended setting for them. Just be careful.

Hope, this points you in the right direction!

Good Luck!
0 Kudos