Building Web Applications Using the Arcgis API for Silverlight 2 1

Embed Size (px)

Citation preview

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    1/13

    Building Web Applications

    Using the ArcGISAPI for Silverlight

    Student PC Setup

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    2/13

    Copyright 2012 EsriAll rights reserved.

    Course version 2.1. Version release date June 2012.

    Printed in the United States of America.

    The information contained in this document is the exclusive property of Esri. This work is protected under United Statescopyright law and other international copyright treaties and conventions. No part of this work may be reproduced or

    transmitted in any form or by any means, electronic or mechanical, including photocopying and recording, or by anyinformation storage or retrieval system, except as expressly permitted in writing by Esri. All requests should be sent toAttention: Contracts and Legal Services Manager, Esri, 380 New York Street, Redlands, CA 92373-8100 USA.

    EXPORT NOTICE: Use of these Materials is subject to U.S. export control laws and regulations including the U.S. Departmentof Commerce Export Administration Regulations (EAR). Diversion of these Materials contrary to U.S. law is prohibited.

    The information contained in this document is subject to change without notice.

    US Government Restricted/Limited Rights

    Any software, documentation, and/or data delivered hereunder is subject to the terms of the License Agreement.The commercial license rights in the License Agreement strictly govern Licensee's use, reproduction, or disclosure ofthe software, data, and documentation. In no event shall the US Government acquire greater than RESTRICTED/

    LIMITED RIGHTS. At a minimum, use, duplication, or disclosure by the US Government is subject to restrictions asset forth in FAR 52.227-14 Alternates I, II, and III (DEC 2007); FAR 52.227-19(b) (DEC 2007) and/or FAR 12.211/12.212 (Commercial Technical Data/Computer Software); and DFARS 252.227-7015 (DEC 2011) (Technical Data -Commercial Items) and/or DFARS 227.7202 (Commercial Computer Software and Commercial Computer SoftwareDocumentation), as applicable. Contractor/Manufacturer is Esri, 380 New York Street, Redlands, CA 92373-8100,USA.

    @esri.com, 3D Analyst, ACORN, Address Coder, ADF, AML, ArcAtlas, ArcCAD, ArcCatalog, ArcCOGO, ArcData, ArcDoc,ArcEdit, ArcEditor, ArcEurope, ArcExplorer, ArcExpress, ArcGIS, ArcGlobe, ArcGrid, ArcIMS, ARC/INFO, ArcInfo, ArcInfoLibrarian, ArcLessons, ArcLocation, ArcLogistics, ArcMap, ArcNetwork, ArcNews, ArcObjects, ArcOpen, ArcPad, ArcPlot,ArcPress, ArcPy, ArcReader, ArcScan, ArcScene, ArcSchool, ArcScripts, ArcSDE, ArcSdl, ArcSketch, ArcStorm, ArcSurvey,

    ArcTIN, ArcToolbox, ArcTools, ArcUSA, ArcUser, ArcView, ArcVoyager, ArcWatch, ArcWeb, ArcWorld, ArcXML, Atlas GIS,AtlasWare, Avenue, BAO, Business Analyst, Business Analyst Online, BusinessMAP, CityEngine, CommunityInfo, DatabaseIntegrator, DBI Kit, EDN, Esri, EsriTeam GIS, EsriThe GIS Company, EsriThe GIS People, EsriThe GIS SoftwareLeader, FormEdit, GeoCollector, Geographic Design System, Geography Matters, Geography Network, GIS by Esri, GIS Day,GIS for Everyone, GISData Server, JTX, MapIt, Maplex, MapObjects, MapStudio, ModelBuilder, MOLE, MPSAtlas, PLTS,Rent-a-Tech, SDE, SML, SourcebookAmerica, SpatiaLABS, Spatial Database Engine, StreetMap, Tapestry, the ARC/INFOlogo, the ArcGIS logo, the ArcGIS Explorer logo, the ArcPad logo, the Esri globe logo, the Esri Press logo, the GIS Day logo,the MapIt logo, The Geographic Advantage, The Geographic Approach, The World's Leading Desktop GIS, Water Writes,www.arcgis.com, www.esri.com, www.geographynetwork.com, www.gis.com, www.gisday.com, and Your PersonalGeographic Information System are trademarks, service marks, or registered marks in the United States, the EuropeanCommunity, or certain other jurisdictions. CityEngine is a registered trademark of Procedural AG and is distributed underlicense by Esri.

    Other companies and products or services mentioned herein may be trademarks, service marks or registered marks of theirrespective mark owners.

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    3/13

    Student PC Setup

    This document contains instructions to help you prepare your classroom to support the BuildingWeb Applications Using the ArcGIS API for SilverlightEsri training course.

    Preparing a student workstation to support this course is a potentially lengthy process. To enableyou to prepare the entire classroom in a reasonable amount of time, you may need to usedisk-cloning software. Disk-cloning software may allow you to save time by conguring a singlecomputer, then automatically duplicating that conguration on the rest of the classroommachines. Certain hardware restrictions apply. For more information, consult your systemadministrator or a disk-cloning software vendor.

    For courses that require installing ArcGIS Server products, contact

    [email protected] for more details on cloning/ghosting.

    Operating system and hardware requirements

    This course requires the use of Windows 7 operating system. Refer to the Microsoft downloadssite (www.microsoft.com/downloads) to obtain information related to its installation, if necessary.

    The operating system must be installed prior to proceeding with the steps in this document.Additionally, students must have administrator access to their classroom workstations.

    For hardware requirements specic to Esri software products, refer to the ArcGIS Resource Center(http://resources.arcgis.com). From the main page, select a software product. Once on the

    product page, select the System Requirements link.

    Helpful Hints

    Here are several tips to keep in mind while working though the procedures in this document:

    The order of installation is important. Follow the order of steps given in this document. If the Windows Compatibility Assistant is activated during installation, click Run. Some installations may unpack installation les to a temporary folder during the

    installation process. To recover disk space, you may delete temporary installation les

    after the installation completes.

    How to obtain additional assistance

    If further clarication is needed, the full software installation guidelocated on the ArcGISResource Center for each productmay be used in conjunction with the steps in this document.

    Building Web Applications Using the ArcGIS API for Silverlight Student PC Setup

    1

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    4/13

    If you have questions pertaining to your classroom setup, contact your local Esri regional ofce orinternational distributorcontact information is available at www.esri.com/locations. Or, contactthe Esri Learning Center in Redlands, California, USA, at 909-793-2853 x1585, Monday throughFriday, between 8:30 a.m. and 5:00 p.m., Pacic time.

    Minimum software requirements

    Install the following software components priorto engaging in the installation

    steps contained in this document.

    Before you begin

    Adobe Reader (latest version)

    (available from www.adobe.com) Fiddler2 (latest version)

    (available from www.ddler2.com) Mozilla Firefox (latest version)

    (available from www.mozilla.com)

    Firebug (latest version)(available from http://getrebug.com/)

    Internet Explorer 9.0(available from www.microsoft.com/downloads)

    7zip (latest version)

    (available from http://www.7-zip.org/) VMWare Player (latest version)(available from www.vmware.com/products/player/)

    This document contains steps to assist you with the installation of the following software:

    Additional software

    ArcGIS API 3.x for Microsoft Silverlight

    Microsoft Expression Blend 4(available from www.microsoft.com/downloads)

    Microsoft .NET Framework 3.5.1 and 4.0(available from www.microsoft.com/downloads)

    Microsoft Silverlight 5

    Microsoft Visual Web Developer Express Edition 2010(available from www.microsoft.com/downloads)

    Student PC Setup Building Web Applications Using the ArcGIS API for Silverlight

    2

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    5/13

    Step 1: Create student user account

    The class exercises use student as a user account. In this step, you will create this account andgrant permissions to it.

    a Log in as Administrator.

    b Open the Computer Management window (click Start and use Search).

    c Navigate to System Tools > Local Users and Groups > Users.

    d From the Action menu, choose New User.

    e In the New User dialog box:

    For User name, enterStudent. For Password, enterstudent (all lowercase). For Conrm password, enterstudent (all lowercase). Uncheck the box forUser must change password at next logon. Check the box forPassword never expires. Click Create.

    f Close the New User dialog box.

    Now Student is listed in the list of local user accounts.

    g Add the Student user as a member of the Administrators group:

    Double-click Student. In the Student Properties dialog box, click the Member Of tab. Click Add. In the Select Groups dialog box, click Advanced. In the Select Groups pop-up window, click Find Now. Under Search Results, double-click Administrators. Click OK twice. In the Student Properties dialog box, verify that the Member of list includes the

    Administrators group. Click OK.

    h Close the Computer Management window.

    Building Web Applications Using the ArcGIS API for Silverlight Student PC Setup

    3

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    6/13

    Now that you have created the Student account, you will log out of the computer to end yoursession as Administrator, then log back in as Student.

    i Log off.

    j Log in again as Student.

    You must complete the remaining steps in this document as Student, not

    Administrator.

    k Open Internet Explorer.

    l Disable the pop-up blocker: From the Tools menu, choose Pop-up Blocker > Turn off Pop-up Blocker. Close Internet Explorer.

    Step 2: Install Visual Web Developer 2010 Express SP1

    This process begins by connecting to Microsoft's website to downlaod its Web Platform Installer(Web PI). The Web PI will help install Visual Web Developer 2010 Express and also congure andready IIS.

    Before installing Visual Web Developer 2010 Express, make sure that no

    Silverlight products are installed on your machine. If Silverlight is installed, be

    sure to remove it before continuing.

    a In Internet Explorer 9, navigate to http://www.microsoft.com/web/gallery/install.aspx?appid=vwd.

    b Click Install Now.

    c When the Security Warning appears, click Run.

    d In the Web Platform Installer 3.0 panel, if prompted to close any applications, click OK.

    e In the Web Platform Installer 3.0 panel, click Install.

    Student PC Setup Building Web Applications Using the ArcGIS API for Silverlight

    4

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    7/13

    f In the Web Platform Installation wizard:

    Click I Accept. On the next panel, click Windows Integrated Authentication. Click Continue.

    The installation and set up takes a long time (over an hour) and will require restarting yourcomputer. Make sure you don't have any other applications open that will be affected by a restart.

    g Click Yes to restart your computer.

    After the restart the Installation progress will continue at 5 out of 18.

    h When the installation completes, click Finish.

    Next the Web Platform Installer 3.0 prompts to install SP1 and the latest congurations.

    i Click Install.

    j Click I Accept.

    k When the installation completes, click Finish.

    The Web Platform Installer 3.0 dialog box, shows Spotlight, Products, and Applications. You don'tneed to do anything further here.

    l In the Web Platform Installer 3.0 panel, click Exit.

    Next you will ensure that Visual Web Developer Express is ready for student use.

    m Click the Start button > All Programs > Microsoft Visual Studio 2010 Express.

    n Under the Microsoft Visual Studio 2010 Express folder right-click Microsoft Visual WebDeveloper 2010 Express and choose Pin to Taskbar.

    o Again, right-click Microsoft Visual Web Developer 2010 Express and choose Pin to Start Menu.

    About 30 minutes into the process, when the Installation progress is at 4 out of 18, you willbe prompted to Restart your computer.

    Building Web Applications Using the ArcGIS API for Silverlight Student PC Setup

    5

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    8/13

    p Drag Microsoft Visual Web Developer 2010 Express onto the desktop. If needed drag andmove the icon to the left side of the desktop.

    q Start Microsoft Visual Web Developer 2010 Express.

    r Click New Project.

    s Under Installed Templates, expand Visual C# and click Web.

    t Click OK.

    u After the project opens, press F5 to start Debugging.

    A tester web application should open.

    This conrms that Visual Web Developer Express is loaded properly and that IIS is congured.

    v Close the browser and close Visual Web Developer 2010 Express.

    Step 3: Install Internet Information Server (IIS)

    a From the Windows Start menu, choose Control Panel > Programs > Programs and Features.

    b On the left, click Turn Windows features on or off.

    c In the Windows Features dialog box, expand Internet Information Services.

    Student PC Setup Building Web Applications Using the ArcGIS API for Silverlight

    6

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    9/13

    d Expand the Web Management Tools folder and its subfolder, then check the boxes for thecomponents as shown in the following graphic:

    e Expand the World Wide Web Services folder and its subfolders, then check the boxes for thecomponents as shown below:

    Building Web Applications Using the ArcGIS API for Silverlight Student PC Setup

    7

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    10/13

    f Expand the Security folder and check the boxes for the components as shown below:

    g Click OK.

    h

    Once IIS is installed, close the Control Panel window.

    i Log off, then log in again to ensure that the updated settings take effect.

    j Test that IIS has been installed correctly:

    Open Internet Explorer. In the address bar, enterhttp://localhost.

    The IIS welcome page should appear indicating that the IIS Web server is working properly.

    k Close the browser window.

    Step 4: Install Silverlight 5 Tools for Visual Studio 2010 SP1

    In this step you will install Silverlight 5 Tools for Visual Studio 2010 SP1.

    a In a web browser, navigate to http://www.microsoft.com/download/en/details.aspx?id=28358.

    b Click Download.

    c When the Security Warning appears, click Run.

    Student PC Setup Building Web Applications Using the ArcGIS API for Silverlight

    8

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    11/13

    d In the Software Update Silverlight 5 Tools for Visual Studio 2010 SP1 Installation Wizard:

    On the Welcome panel, click Next. On the Microsoft Software License Terms panel, check I have read and accept the license

    terms, then click Next.

    The installation process may take several minutes.

    e When the install has successfully completed, click Finish.

    Step 5: Install Microsoft Expression Blend Preview for Silverlight 5

    In this step you will install Microsoft Expression Blend Preview for Silverlight 5.

    a In a web browser, navigate to http://www.microsoft.com/en-us/download/details.aspx?id=9503.

    b Click Download.

    c When the Security Warning appears, click Run.

    The preparation for install takes a few minutes.

    d On the License Agreement panel, click Accept.

    e On the Customer Experience panel, click Next.

    f On the Installation panel, click Install.

    g When the installation has successfully completed, click Finish.

    Step 6: Install ArcGIS API v3.x for Silverlight

    In this step you will install the latest version of the ArcGIS API for Silverlight.

    a In a web browser, navigate to the ArcGIS Resource Center Web Community (http://resources.arcgis.com/en/communities/web/).

    b Click ArcGIS API for Silverlight.

    Building Web Applications Using the ArcGIS API for Silverlight Student PC Setup

    9

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    12/13

    c In the Download and Install section, click the link to the latest version of the API.

    d Log in with your Esri global account, then click the download executable.

    e After reading the ESRI Attribution and License Agreement, click Accept.

    f Download and run the ArcGIS Viewer for Silverlight installation package.

    g In the ArcGIS Viewer for Silverlight Setup wizard:

    On the Welcome panel, click Next. On the End-User License Agreement panel, check I accept the license agreement, then

    click Next. On the Destination panel, click Next. On the Ready to install panel, click Install.

    h When the installation completes, click Finish.

    Step 7: Install Fiddler for Internet Explorer 9

    In this step you will install Fiddler which is a Web debugging proxy for Internet Explorer used tocapture and view cilent-server HTTP trafc.

    a In a web browser, navigate to (http://www.ddler2.com/ddler2/).

    b Click Download Fiddler.

    c Click Install Fiddler2.

    d When the Security Warning appears, click Run.

    e In the Fiddler2 Setup wizard:

    On the License Agreement panel, click I agree.

    On the Installation Folder panel, leave the default destination folder and click Install.

    f When the install is completed, click Close.

    g Close and reopen Internet Explorer.

    Student PC Setup Building Web Applications Using the ArcGIS API for Silverlight

    10

  • 8/11/2019 Building Web Applications Using the Arcgis API for Silverlight 2 1

    13/13

    Next you will conrm that Fiddler is installed and ready to use.

    h From the Tools menu, choose Fiddler2.

    The Fiddler HTTP Debugging Proxy should open.

    i Close Fiddler and Internet Explorer.

    Building Web Applications Using the ArcGIS API for Silverlight Student PC Setup