Select to view content in your preferred language

Unblocking assemblies

642
1
03-07-2011 08:09 AM
RobertMueller
Deactivated User
So I seem to be having some issues already with Silverlight at step 1. I've already downloaded: Microsoft Visual Web Developer 2010 Express, ArcGIS API for Microsoft Silverlight-WPF v2.1, and Microsoft Silverlight 4 Toolkit.

When I try to run through a very basic example (ArcGIS DynamicLayer), such as;

<UserControl x:Class="SilverlightApplication10.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
    <Grid x:Name="LayoutRoot" Background="White" >

        <esri:Map x:Name="MyMap" >
            <esri:ArcGISDynamicMapServiceLayer ID="MyLayer"
                Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapSe..." />
        </esri:Map>

    </Grid>
</UserControl>

I return a "Could not load the assembly file ....\Visual Studio 2010\Projects\SilverlightApplication10\SilverlightApplication10\obj\Debug\SilverlightApplication10.dll. The assembly may have been downloaded from the Web. If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on a local computer". However when I navigate to the assembly the uncheck box is unavailable, which is supposed to suggest the file is already trusted. So what's going on here?? I'm ready to head back to the friendly confines of Javascript.

Bob
0 Kudos
1 Reply
RobertMueller
Deactivated User
With some further digging, I was able to figure out there can be some complications when the dll is on a shared drive. Hope this helps.

Bob
0 Kudos