<?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 Operation not allowed in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71213#M1918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am writing a webapi.on my devlopment pc&amp;nbsp; the below code is working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console.WriteLine("Ready with license.");&lt;BR /&gt; if (ESRI.ArcGIS.RuntimeManager.ActiveRuntime == null)&lt;BR /&gt; ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;BR /&gt; IPropertySet propertySet = new PropertySet();&lt;BR /&gt; propertySet.SetProperty("SERVER", "myServer");&lt;BR /&gt; propertySet.SetProperty("INSTANCE", "5151");&lt;BR /&gt; propertySet.SetProperty("DATABASE", "SDE");&lt;BR /&gt; propertySet.SetProperty("USER", "sa");&lt;BR /&gt; propertySet.SetProperty("PASSWORD", "ds");&lt;BR /&gt; propertySet.SetProperty("Authentication_mode", "DBMS");&lt;BR /&gt; propertySet.SetProperty("VERSION", "SDE.DEFAULT");&lt;BR /&gt; IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactory();&lt;BR /&gt; workspace = workspaceFactory.Open(propertySet,0);&lt;BR /&gt; return workspace;&lt;/P&gt;&lt;P&gt;and i can perform all opations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i publish webapi in production server i am getting this error "operation not allowed."i debug the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactory();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;when program reached the above line.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It throws exception "Operation not allowed." i am stuck this line from last three days.I googled it.but could not find any answer.please help me.i will be very thanks full to all.pls pls pls help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Oct 2019 12:14:28 GMT</pubDate>
    <dc:creator>NadirHussain</dc:creator>
    <dc:date>2019-10-13T12:14:28Z</dc:date>
    <item>
      <title>Operation not allowed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71213#M1918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am writing a webapi.on my devlopment pc&amp;nbsp; the below code is working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Console.WriteLine("Ready with license.");&lt;BR /&gt; if (ESRI.ArcGIS.RuntimeManager.ActiveRuntime == null)&lt;BR /&gt; ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;BR /&gt; IPropertySet propertySet = new PropertySet();&lt;BR /&gt; propertySet.SetProperty("SERVER", "myServer");&lt;BR /&gt; propertySet.SetProperty("INSTANCE", "5151");&lt;BR /&gt; propertySet.SetProperty("DATABASE", "SDE");&lt;BR /&gt; propertySet.SetProperty("USER", "sa");&lt;BR /&gt; propertySet.SetProperty("PASSWORD", "ds");&lt;BR /&gt; propertySet.SetProperty("Authentication_mode", "DBMS");&lt;BR /&gt; propertySet.SetProperty("VERSION", "SDE.DEFAULT");&lt;BR /&gt; IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactory();&lt;BR /&gt; workspace = workspaceFactory.Open(propertySet,0);&lt;BR /&gt; return workspace;&lt;/P&gt;&lt;P&gt;and i can perform all opations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i publish webapi in production server i am getting this error "operation not allowed."i debug the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactory();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;when program reached the above line.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It throws exception "Operation not allowed." i am stuck this line from last three days.I googled it.but could not find any answer.please help me.i will be very thanks full to all.pls pls pls help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Oct 2019 12:14:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71213#M1918</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2019-10-13T12:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Operation not allowed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71214#M1919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen this &lt;A href="http://resources.esri.com/help/9.3/ArcGISEngine/dotnet/c778d2bb-eb36-4793-9c89-20795811c5eb.htm"&gt;page&lt;/A&gt;? The modern approach is to use&amp;nbsp;&lt;EM&gt;Activator.CreateInstance&lt;/EM&gt; to create the singleton object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2019 10:54:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71214#M1919</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-10-21T10:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Operation not allowed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71215#M1920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Duncan Hornby,&lt;BR /&gt;as per your suggestions i changed the line&amp;nbsp;&lt;BR /&gt;IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactory(); from this to&amp;nbsp;&lt;/P&gt;&lt;P&gt;this line&lt;/P&gt;&lt;P&gt;IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(factoryType);&lt;BR /&gt;and debug my program.My debugger pass the suggested line successfully and next line is the below line to open workspace&lt;BR /&gt; workspace = workspaceFactory.Open(propertySet, 0);&lt;/P&gt;&lt;P&gt;and on the above line it produces the same error "Operation not allowed."&lt;/P&gt;&lt;P&gt;the code works on development machine but not work on the deployment server.my deployment server operating system is windows server 2016 64 bit and development machine is windows 7 professional 64 bit os.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Nov 2019 06:46:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71215#M1920</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2019-11-04T06:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Operation not allowed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71216#M1921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am in the midst of converting 10.2.1 code to run against our new 10.6.1 software and I have run into this exact same issue. Did you find the culprit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 18:47:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71216#M1921</guid>
      <dc:creator>RonAnkeny</dc:creator>
      <dc:date>2020-07-16T18:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Operation not allowed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71217#M1922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;sorry for late reply.the below code is working with me on 10.6 and 10.7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;private IWorkspace getWorkspace()&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;ESRI.ArcGIS.esriSystem.AoInitialize aoInit = null;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;esriLicenseStatus licStatus;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;IWorkspace workspace = null;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;string status = "";&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;try&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Console.WriteLine("Obtaining license");&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if (ESRI.ArcGIS.RuntimeManager.ActiveRuntime == null)&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;aoInit = new ESRI.ArcGIS.esriSystem.AoInitialize();&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;licStatus = aoInit.Initialize(esriLicenseProductCode.esriLicenseProductCodeStandard);&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if (licStatus == esriLicenseStatus.esriLicenseCheckedOut)&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Console.WriteLine("Ready with license.");&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if (ESRI.ArcGIS.RuntimeManager.ActiveRuntime == null)&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;IPropertySet propertySet = new PropertySet();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;propertySet.SetProperty("SERVER", "IP");&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;propertySet.SetProperty("INSTANCE", "5151");------For&amp;nbsp; arcsde application server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;propertySet.SetProperty("INSTANCE", "sde:sqlserver:sqlservername");------For&amp;nbsp; direct connect.&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;propertySet.SetProperty("DATABASE", "database");&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;propertySet.SetProperty("USER", "user");&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;propertySet.SetProperty("PASSWORD", "user");&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;propertySet.SetProperty("Authentication_mode", "DBMS");&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;propertySet.SetProperty("VERSION", "SDE.DEFAULT");&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Type factoryType = Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory");&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;IWorkspaceFactory workspaceFactory = (IWorkspaceFactory)Activator.CreateInstance(factoryType);&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;workspace = workspaceFactory.Open(propertySet, 0);&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;if (workspace != null) {&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;return workspace;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;catch (Exception ex)&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Console.WriteLine(ex.Message);&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;status = ex.Message.ToString()+" "+ex.Source;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;return workspace;&lt;/SPAN&gt;&lt;BR style="background-color: #ffffff;" /&gt;&lt;SPAN style="background-color: #ffffff;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 07:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/71217#M1922</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2020-07-20T07:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Operation not allowed</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/1193906#M20506</link>
      <description>&lt;P&gt;Tried the above Code Still in 10.6.1 I am facing&amp;nbsp; the same issue. Any other alternatives ?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 13:30:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/operation-not-allowed/m-p/1193906#M20506</guid>
      <dc:creator>ksoundaryasubramani</dc:creator>
      <dc:date>2022-07-20T13:30:20Z</dc:date>
    </item>
  </channel>
</rss>

