Select to view content in your preferred language

adding Feature

2305
6
12-05-2011 07:16 AM
btt
by
Emerging Contributor
Hi, i want to add feature on server in one transaction with adding some relative data to other DB. For this realization i try transfer geomery data(points, polygons) to server, where i with ARCEngine could add feature. , I've read the Esri blog post "Sending geometry between Silverlight and the server using WCF" - but it doesn't work with me (ArcGis Server 10 + SL 4) - when i add Silverligth ESRI.ArcGIS.Client.dll   i got error  - System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.  I also try this solution suggesting in thread - it doesn't work i got error  - need add reference System.Windows.dll.
Is there any other solutions?
0 Kudos
6 Replies
DominiqueBroux
Esri Frequent Contributor

but it doesn't work with me (ArcGis Server 10 + SL 4) - when i add Silverligth ESRI.ArcGIS.Client.dll i got error - System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.Serialization, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies.


Try by adding a reference to System.Runtime.Serialization.
0 Kudos
btt
by
Emerging Contributor
Try by adding a reference to System.Runtime.Serialization.

it has already been added but version is v4.0.30319 ( i use SL 4 + Net Framework 4)
0 Kudos
DominiqueBroux
Esri Frequent Contributor

it has already been added but version is v4.0.30319 ( i use SL 4 + Net Framework 4)


Your project can not target both SL4 and .Net Famework4.

If you target .Net Framework 4, you can't use the Silverligth ESRI.ArcGIS.Client.dll, you have to use the ArcGIS API for WPF dlls.
0 Kudos
btt
by
Emerging Contributor
Your project can not target both SL4 and .Net Famework4.

If you target .Net Framework 4, you can't use the Silverligth ESRI.ArcGIS.Client.dll, you have to use the ArcGIS API for WPF dlls.


Of course not. I have in  my solution 2 projects - MyProject Silverlight4 project and MyProject.Web ASP.Net + RIA Domain Services based on Framework4. And i want transfer Geometry from MyProject to MyProject.Web. So, question - What libraries i must add to the MyProject.Web?
0 Kudos
DominiqueBroux
Esri Frequent Contributor

What libraries i must add to the MyProject.Web?

This project targets  .Net Framework 4 (I guess), so you have to reference the WPF version of ESRI.ArcGIS.Client.dll
0 Kudos
btt
by
Emerging Contributor
This project targets  .Net Framework 4 (I guess), so you have to reference the WPF version of ESRI.ArcGIS.Client.dll

ok i added wpf dlls compiled fine - but now i have a problem. I can't convert ESRI.ArcGIS.Client.Geometry.Polygon to ESRI.ArcGIS.Geometry.IGeometry for setting shape of new feature object.
0 Kudos