<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mosaic Operation causes COM exception when invoked from a WebService in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/mosaic-operation-causes-com-exception-when-invoked/m-p/554760#M15019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a weird problem while working with ArcObjects and Mosaic Datasets:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I attempt to create a MosaicDataset and then append rasters to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I basically have 2 operations: first I create the MosaicDataset and then I append the rasters (using IMosaicDatasetOperation.AddRasters):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The operation is invoked by a standard WCF service which worked just fine while I invoked it using the VisualStudio SVCHost&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to call the service from another application the first operation (Mosaic Dataset creation) runs just fine but the AddRasters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;method throws an exception which just shuts the entire svcHost or w3wp process down without letting me catch the exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to get 1 error after trying different methods which was: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14971[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I published the service on IIS but it didn't help, the user running the AppPool is a full administrator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems so strange that the service works fine but when invoked from a client it throws this weird dynamic lib exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running on a Windows Server 2008 R1 with IIS7 and ArcObjects 10.1 PreRelease&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help.. I'm all out of ideas :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jun 2012 10:28:20 GMT</pubDate>
    <dc:creator>madormapad</dc:creator>
    <dc:date>2012-06-06T10:28:20Z</dc:date>
    <item>
      <title>Mosaic Operation causes COM exception when invoked from a WebService</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/mosaic-operation-causes-com-exception-when-invoked/m-p/554760#M15019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having a weird problem while working with ArcObjects and Mosaic Datasets:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I attempt to create a MosaicDataset and then append rasters to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I basically have 2 operations: first I create the MosaicDataset and then I append the rasters (using IMosaicDatasetOperation.AddRasters):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The operation is invoked by a standard WCF service which worked just fine while I invoked it using the VisualStudio SVCHost&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to call the service from another application the first operation (Mosaic Dataset creation) runs just fine but the AddRasters&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;method throws an exception which just shuts the entire svcHost or w3wp process down without letting me catch the exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to get 1 error after trying different methods which was: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]14971[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I published the service on IIS but it didn't help, the user running the AppPool is a full administrator&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems so strange that the service works fine but when invoked from a client it throws this weird dynamic lib exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running on a Windows Server 2008 R1 with IIS7 and ArcObjects 10.1 PreRelease&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help.. I'm all out of ideas :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 10:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/mosaic-operation-causes-com-exception-when-invoked/m-p/554760#M15019</guid>
      <dc:creator>madormapad</dc:creator>
      <dc:date>2012-06-06T10:28:20Z</dc:date>
    </item>
  </channel>
</rss>

