Wrox Programmer Forums
|
BOOK: Beginning ArcGIS for Desktop Development using .NET
This is the forum to discuss the Wrox book Beginning ArcGIS for Desktop Development using .NET by Pouria Amirian; ISBN: 978-1-118-44254-8
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ArcGIS for Desktop Development using .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2013, 05:09 AM
Registered User
 
Join Date: Nov 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Try It Out - AOSDK - Chapter 2

I am having problems running the "Try It Out - AOSDK" in chapter 2.

Could anyone help please?

Thanks very much.

The error message being returned is;

------ Build started: Project: UsingAOSDK, Configuration: Debug Any CPU ------
C:\Beginning ArcGIS code\Beginning ArcGIS C# code\Chapter02\UsingAOSDK\UsingAOSDK\UsingAOSDK\Zo omToActiveLayer.cs(1,19): error CS0234: The type or namespace name 'Geometry' does not exist in the namespace 'ESRI.ArcGIS' (are you missing an assembly reference?)

Compile complete -- 1 errors, 0 warnings
Build started 18/11/2013 08:58:21.
ResolveAssemblyReferences:
Unified primary reference "ESRI.ArcGIS.Geometry, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL".
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.A DF.Local.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.A rcMapUI.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.C arto.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eodatabase.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.D isplay.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G lobeCore.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.3 DAnalyst.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eoDatabaseUI.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.O utput.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.C atalogUI.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.C atalog.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.C artoUI.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.D ataSourcesRaster.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G ISClient.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eoDatabaseExtensions.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.D ataSourcesFile.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eoDatabaseDistributed.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.A nimation.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eoprocessing.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.S earch.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.D ataSourcesNetCDF.dll" because AutoUnify is 'true'.
Using this version instead of original version "10.0.0.0" in "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eoAnalyst.dll" because AutoUnify is 'true'.
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Micr osoft.Common.targets(1360,9): warning MSB3245: Could not resolve this reference. Could not locate the assembly "ESRI.ArcGIS.Geometry, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
For SearchPath "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet".
Considered "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eometry.dll", but its name "ESRI.ArcGIS.Geometry, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86" didn't match.
Considered "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eometry.exe", but it didn't exist.
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\ESRI.ArcGIS.Ge ometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\ESRI.ArcGIS.Ge ometry.exe", but it didn't exist.
Considered "C:\Windows\Microsoft.NET\Framework\v3.5\ESRI.ArcG IS.Geometry.dll", but it didn't exist.
Considered "C:\Windows\Microsoft.NET\Framework\v3.5\ESRI.ArcG IS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\ESRI.ArcGIS.Ge ometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\ESRI.ArcGIS.Ge ometry.exe", but it didn't exist.
Considered "C:\Windows\Microsoft.NET\Framework\v3.0\ESRI.ArcG IS.Geometry.dll", but it didn't exist.
Considered "C:\Windows\Microsoft.NET\Framework\v3.0\ESRI.ArcG IS.Geometry.exe", but it didn't exist.
Considered "C:\Windows\Microsoft.NET\Framework\v2.0.50727\ESR I.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Windows\Microsoft.NET\Framework\v2.0.50727\ESR I.ArcGIS.Geometry.exe", but it didn't exist.
For SearchPath "{Registry:Software\Microsoft\.NETFramework,v3.5,A ssemblyFoldersEx}".
Considered "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\ESRI.Arc GIS.Geometry.dll", but it didn't exist.
Considered "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\ESRI.Arc GIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v9.0\ESRI.ArcGIS.Geome try.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v9.0\ESRI.ArcGIS.Geome try.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v10.0\ESRI.ArcGIS.Geom etry.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\VSTO40\v10.0\ESRI.ArcGIS.Geom etry.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v9.0\ESRI.ArcGIS.Geome try.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v9.0\ESRI.ArcGIS.Geome try.exe", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v10.0\ESRI.ArcGIS.Geom etry.dll", but it didn't exist.
Considered "C:\Program Files\Reference Assemblies\Microsoft\VSTA30\v10.0\ESRI.ArcGIS.Geom etry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office12\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Common\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Common\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\SharePoint\P ublicAssemblies\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\SharePoint\P ublicAssemblies\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\ESRI.ArcGI S.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\VBPowerPacks\v10.0\ESRI.ArcGI S.Geometry.exe", but it didn't exist.
Considered "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\ESRI.Arc GIS.Geometry.dll", but it didn't exist.
Considered "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\ESRI.Arc GIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Synchronization Services\ADO.NET\v1.0\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Synchronization Services\ADO.NET\v1.0\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework\v1.0\Runtime\ADO.NET\V2.0\x64\ESRI.ArcGI S.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework\v1.0\Runtime\ADO.NET\V2.0\x64\ESRI.ArcGI S.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Desktop\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.5\Desktop\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "c:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "c:\Program Files (x86)\Microsoft Visual Studio 10.0\ReportViewer\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "c:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\ESRI.ArcGIS.Geometry .dll", but it didn't exist.
Considered "c:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\ESRI.ArcGIS.Geometry .exe", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0\ESRI. ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\2.0\Runtime\v2.0\ESRI. ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework\v1.0\Runtime\x86\ESRI.ArcGIS.Geometry.dl l", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft SDKs\Microsoft Sync Framework\v1.0\Runtime\x86\ESRI.ArcGIS.Geometry.ex e", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Chart Controls\Assemblies\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft Chart Controls\Assemblies\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eometry.dll", but its name "ESRI.ArcGIS.Geometry, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86" didn't match.
Considered "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.G eometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ToolBoxes\ESR I.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ToolBoxes\ESR I.ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\bin\ESRI.ArcGIS.Geom etry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\bin\ESRI.ArcGIS.Geom etry.exe", but it didn't exist.
Considered "C:\app\rwhite\product\11.2.0\client_1\ASP.NET\bin \2.x\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\app\rwhite\product\11.2.0\client_1\ASP.NET\bin \2.x\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 2\Assemblies\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
For SearchPath "{AssemblyFolders}".
Considered "c:\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies\ESRI.ArcGIS.Geometry.dll ", but it didn't exist.
Considered "c:\Program Files (x86)\Microsoft SQL Server\100\SDK\Assemblies\ESRI.ArcGIS.Geometry.exe ", but it didn't exist.
Considered "c:\Program Files (x86)\Microsoft.NET\ADOMD.NET\100\ESRI.ArcGIS.Geom etry.dll", but it didn't exist.
Considered "c:\Program Files (x86)\Microsoft.NET\ADOMD.NET\100\ESRI.ArcGIS.Geom etry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft SQL Server\110\SDK\Assemblies\ESRI.ArcGIS.Geometry.dll ", but it didn't exist.
Considered "C:\Program Files (x86)\Microsoft SQL Server\110\SDK\Assemblies\ESRI.ArcGIS.Geometry.exe ", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "C:\Program Files\IIS\Microsoft Web Deploy\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\ESRI.ArcGIS.Ge ometry.dll", but it didn't exist.
Considered "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\ESRI.ArcGIS.Ge ometry.exe", but it didn't exist.
Considered "c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\ESRI.ArcGIS.Ge ometry.dll", but it didn't exist.
Considered "c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\ESRI.ArcGIS.Ge ometry.exe", but it didn't exist.
For SearchPath "{GAC}".
Considered "ESRI.ArcGIS.Geometry, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86, processorArchitecture=MSIL", which was not found in the GAC.
For SearchPath "bin\Debug\".
Considered "bin\Debug\ESRI.ArcGIS.Geometry.dll", but it didn't exist.
Considered "bin\Debug\ESRI.ArcGIS.Geometry.exe", but it didn't exist.
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc. exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:"C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.A DF.Local.dll" /reference:"C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.A rcMapUI.dll" /reference:"C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.C arto.dll" /reference:"C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.F ramework.dll" /reference:"C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.S ystem.dll" /reference:"C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\DotNet\ESRI.ArcGIS.S ystemUI.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0. 50727\mscorlib.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dl l" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.Da taSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0. 50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0. 50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0. 50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0. 50727\System.Xml.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Lin q.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\UsingAOSDK.dll /resource:ZoomToActiveLayer.bmp,UsingAOSDK.ZoomToAc tiveLayer.bmp /target:library Properties\AssemblyInfo.cs ZoomToActiveLayer.cs

Build FAILED.

Time Elapsed 00:00:00.33
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
 
Old November 18th, 2013, 02:46 PM
Registered User
 
Join Date: Nov 2013
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorted this problem. Had to add a Geometry reference.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4 --> Chapter 5 Continuity?? theboffin BOOK: Professional ASP.NET MVC 4 4 July 8th, 2013 03:36 AM
Chapter 6 - Code Download Missing for this Chapter dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 August 11th, 2009 11:02 AM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.