<?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 Re: axSymbologyControl - can't load ESRI.ServerStyle in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514343#M13858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does your program perform the same setup/initialization as the program that works?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Starting with version 10, you have to do some additional initialization before you can use ArcObjects.&amp;nbsp; If you look at the help it is described there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it isn't initialization then the only other thing that I can think of is permissions.&amp;nbsp; For example, make sure that no other process has the file locked and that you have the required permissions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2011 13:52:57 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2011-05-17T13:52:57Z</dc:date>
    <item>
      <title>axSymbologyControl - can't load ESRI.ServerStyle</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514342#M13857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In exampe of how to use LayerRendering code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string sInstall = ReadRegistry("SOFTWARE\\ESRI\\CoreRuntime");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; axSymbologyControl1.LoadStyleFile(sInstall + "\\Styles\\ESRI.ServerStyle");&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;worked. But in my program the same code does not work, when loadStyleFile I&amp;nbsp; get error message&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"(Exception -&amp;nbsp; HRESULT: 0x80004005 (E_FAIL))". Error code - -2147467259.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stack trace -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&amp;nbsp;&amp;nbsp; ? System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&amp;amp; msgData)\r\n&amp;nbsp;&amp;nbsp; ? ESRI.ArcGIS.Controls.ISymbologyControlDefault.LoadStyleFile(String fileName)\r\n&amp;nbsp;&amp;nbsp; ? ESRI.ArcGIS.Controls.AxSymbologyControl.LoadStyleFile(String fileName)\r\n&amp;nbsp;&amp;nbsp; ? monitor.KartaForm.KartaForm_Load(Object sender, EventArgs e) ? D:\\VS2005\\Projects\\monitor\\monitor\\KareliaForm.cs:???????? 398\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Form.OnLoad(EventArgs e)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Form.SetVisibleCore(Boolean value)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Control.Show()\r\n&amp;nbsp;&amp;nbsp; ? monitor.Form1.ShowKarta() ? D:\\VS2005\\Projects\\monitor\\monitor\\Form1.cs:???????? 199\r\n&amp;nbsp;&amp;nbsp; ? monitor.Form1.Form1_Load(Object sender, EventArgs e) ? D:\\VS2005\\Projects\\monitor\\monitor\\Form1.cs:???????? 151\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Form.OnLoad(EventArgs e)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Form.OnCreateControl()\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Control.CreateControl()\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Control.WndProc(Message&amp;amp; m)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.ContainerControl.WndProc(Message&amp;amp; m)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Form.WmShowWindow(Message&amp;amp; m)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Form.WndProc(Message&amp;amp; m)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Form.SetVisibleCore(Boolean value)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Control.set_Visible(Boolean value)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n&amp;nbsp;&amp;nbsp; ? System.Windows.Forms.Application.Run(Form mainForm)\r\n&amp;nbsp;&amp;nbsp; ? monitor.Program.Main() ? D:\\VS2005\\Projects\\monitor\\monitor\\Program.cs:???????? 17\r\n&amp;nbsp;&amp;nbsp; ? System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n&amp;nbsp;&amp;nbsp; ? System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n&amp;nbsp;&amp;nbsp; ? Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n&amp;nbsp;&amp;nbsp; ? System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n&amp;nbsp;&amp;nbsp; ? System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n&amp;nbsp;&amp;nbsp; ? System.Threading.ThreadHelper.ThreadStart()"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody say - how to improve situation?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 09:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514342#M13857</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2011-05-17T09:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: axSymbologyControl - can't load ESRI.ServerStyle</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514343#M13858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does your program perform the same setup/initialization as the program that works?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Starting with version 10, you have to do some additional initialization before you can use ArcObjects.&amp;nbsp; If you look at the help it is described there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it isn't initialization then the only other thing that I can think of is permissions.&amp;nbsp; For example, make sure that no other process has the file locked and that you have the required permissions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 13:52:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514343#M13858</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-05-17T13:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: axSymbologyControl - can't load ESRI.ServerStyle</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514344#M13859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I create new project - all works. But if I create axSymbologyControl&amp;nbsp; in current project - not works. I try put new object axSymbologyControl1 on the Form1, and try following code&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public Form1()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; axSymbologyControl1.LoadStyleFile("C:\\Program Files\\ArcGIS\\Styles\\ESRI.ServerStyle");

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but receive the previous message. If I load style file in design mode, in Property Form&amp;nbsp; of axSymbologyControl ( in current project - all works too).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514344#M13859</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2021-12-11T22:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: axSymbologyControl - can't load ESRI.ServerStyle</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514345#M13860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do the copy ESRY.serverStyle file in ESRY1.serverStyle and try load it. All works. I think the problem is in unvisible&amp;nbsp; process, which block ESRY.serverStyle file.&amp;nbsp; In axMapControl1 I set map document property in design mode - may be it use server style file and block it in form constructor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 08:36:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514345#M13860</guid>
      <dc:creator>AnatoliiTerentiev</dc:creator>
      <dc:date>2011-05-18T08:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: axSymbologyControl - can't load ESRI.ServerStyle</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514346#M13861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We use server style files and had various locking problems with them.&amp;nbsp; You can see who has the lock by running &lt;/SPAN&gt;&lt;A href="http://live.sysinternals.com/procexp.exe"&gt;http://live.sysinternals.com/procexp.exe&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; Just use the "Find / Find Handle or DLL..." command and search for the name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way that we worked around this problem was to explicitly make the server style files read-only in the file properties.&amp;nbsp; What would happen is that various ESRI routines open the files with write mode if they can and the first one succeeds and then the others are blocked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 10:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/axsymbologycontrol-can-t-load-esri-serverstyle/m-p/514346#M13861</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-05-18T10:24:36Z</dc:date>
    </item>
  </channel>
</rss>

