<?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: Product Licensing in Scheduled Batch in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175166#M4538</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi April,&lt;BR /&gt;&lt;BR /&gt;We are having the same problem, but with a windows-service. It runs fine from command-prompt with an exe. But as soon as we put it back in the service we get THE EXACT same message as you.&lt;BR /&gt;&lt;BR /&gt;Did you solve it? (Pleeease say you did...) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I did, after determining the problem was permissions on the service account (as related in the other post). But another issue I ran into was our security team - service accounts aren't allowed the necessary privileges here, and I am required to use a security account for scheduled jobs. So I re-wrote my app to use locator and map services instead of accessing the database directly. It might be a smidge slower but speed really isn't an issue in our use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad you got it fixed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;April&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Feb 2013 23:20:10 GMT</pubDate>
    <dc:creator>AprilNunn</dc:creator>
    <dc:date>2013-02-24T23:20:10Z</dc:date>
    <item>
      <title>Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175158#M4530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an application that selects records from a SQL Server table and geocodes the address, returning the XYs and populating fields in the row. This app was originally written for ArcGIS 9.3, later modified for 10. It was called from either a scheduled task (Server 2008) or xp_cmdshell in SQL Server (2008r2) and worked perfectly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But after moving to 10.1 the application no longer works from batch. It runs fine in a command window logged into the server as any user, including the account used for tasks/jobs. It stops when attempting to bind the license with the following error in the Event Log. Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]Faulting application name: geocode.exe, version: 0.0.0.0, time stamp: 0x50e6f6bf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Faulting module name: AfCore_libFNP.dll_unloaded, version: 0.0.0.0, time stamp: 0x4f920360&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception code: 0xc0000005&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fault offset: 0x5963e9b0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Faulting process id: 0x9230&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Faulting application start time: 0x01cdea912fe817ed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Faulting application path: C:\tasks\geocode.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Faulting module path: AfCore_libFNP.dll&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Report Id: 6e229a8d-5684-11e2-9618-78e7d1ec71be[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;April&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 15:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175158#M4530</guid>
      <dc:creator>AprilNunn</dc:creator>
      <dc:date>2013-01-04T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175159#M4531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It sounds like your compiled app worked with a module referenced that no longer exists or - I like this kind of error message, "...is no longer supported."&amp;nbsp; It seems because you upgraded your exe cannot interact with ArcGIS as before...so my suggestion is if it is any way possible, to 'rewrite' the code in Python (or scripting of your choice) or recompile it after you debug it in VS (provided you have source code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps...sorry I have only a suggested 'cure' and not the antidote.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 15:23:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175159#M4531</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-01-04T15:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175160#M4532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've considered rewriting in Python but i'm not sure that will be the fix. The dll referenced in the error does exist, and does not throw an error when run from command prompt. Only in a batch situation does this error occur. What would make the batch Python any different?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;April&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 15:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175160#M4532</guid>
      <dc:creator>AprilNunn</dc:creator>
      <dc:date>2013-01-04T15:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175161#M4533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hmmmm, see what you mean...I'd be interested to know what this line means, why would this dll be a problem?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Faulting module path: AfCore_libFNP.dll&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 15:34:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175161#M4533</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-01-04T15:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175162#M4534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;...apparently that's a Flexnet dll?&amp;nbsp; So you have a system problem, is that concerning the license manager?...did you get that far in troubleshooting, see this for example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://systemexplorer.net/file-database/file/afcore_libfnp-dll"&gt;http://systemexplorer.net/file-database/file/afcore_libfnp-dll&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2013 15:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175162#M4534</guid>
      <dc:creator>T__WayneWhitley</dc:creator>
      <dc:date>2013-01-04T15:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175163#M4535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've considered rewriting in Python but i'm not sure that will be the fix. The dll referenced in the error does exist, and does not throw an error when run from command prompt. Only in a batch situation does this error occur. What would make the batch Python any different?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;April&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi April,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are having the same problem, but with a windows-service. It runs fine from command-prompt with an exe. But as soon as we put it back in the service we get THE EXACT same message as you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you solve it? (Pleeease say you did...) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 10:12:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175163#M4535</guid>
      <dc:creator>JohanFredriksson</dc:creator>
      <dc:date>2013-02-24T10:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175164#M4536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Running a program in the context of a service is not, in general, the same as running it from the command line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One key difference is that services are often run using the System account.&amp;nbsp; That account is special in that it is very powerful on the local machine but it has no network rights, e.g. you cannot access a UNC share.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another difference is that services run in Windows session 0 which has many implications.&amp;nbsp; One implication is that there is no UI.&amp;nbsp; Attempts to do things like display a message box will, depending the API, either hang the process or generate an exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are other, more subtle differences, as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing that you can do to help figure this out is to use the SysInternals psexec utility:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://technet.microsoft.com/en-us/sysinternals/bb897553"&gt;http://technet.microsoft.com/en-us/sysinternals/bb897553&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will want to check out the "-i 0" and the -s switches.&amp;nbsp; If you Google on these keywords then you will find a lot of useful articles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another trick is to use the Sysinternals Process Explorer utility to look you process.&amp;nbsp; What you want to do is to look at the details of the process properties.&amp;nbsp; It will show all the security information, environment variables, etc. related to the process.&amp;nbsp; For example, perhaps the PATH environment variable is different.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 13:17:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175164#M4536</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2013-02-24T13:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175165#M4537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Running a program in the context of a service is not, in general, the same as running it from the command line.&lt;BR /&gt;&lt;BR /&gt;One key difference is that services are often run using the System account.&amp;nbsp; That account is special in that it is very powerful on the local machine but it has no network rights, e.g. you cannot access a UNC share.&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our service in running under user-account with the correct privs. It is the same user we test with command-exe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT: Nooooo. Apparently it was not the correct privs as when i changed to my admin-account. It worked! Our service-account had been downgraded on the test-machine OR 10.1 demands more of the account running the service and binding the license, then earlier versions. THANKYOU!&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 15:56:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175165#M4537</guid>
      <dc:creator>JohanFredriksson</dc:creator>
      <dc:date>2013-02-24T15:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175166#M4538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi April,&lt;BR /&gt;&lt;BR /&gt;We are having the same problem, but with a windows-service. It runs fine from command-prompt with an exe. But as soon as we put it back in the service we get THE EXACT same message as you.&lt;BR /&gt;&lt;BR /&gt;Did you solve it? (Pleeease say you did...) &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes I did, after determining the problem was permissions on the service account (as related in the other post). But another issue I ran into was our security team - service accounts aren't allowed the necessary privileges here, and I am required to use a security account for scheduled jobs. So I re-wrote my app to use locator and map services instead of accessing the database directly. It might be a smidge slower but speed really isn't an issue in our use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad you got it fixed,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;April&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Feb 2013 23:20:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175166#M4538</guid>
      <dc:creator>AprilNunn</dc:creator>
      <dc:date>2013-02-24T23:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175167#M4539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes I did, after determining the problem was permissions on the service account (as related in the other post). But another issue I ran into was our security team - service accounts aren't allowed the necessary privileges here, and I am required to use a security account for scheduled jobs. So I re-wrote my app to use locator and map services instead of accessing the database directly. It might be a smidge slower but speed really isn't an issue in our use.&lt;BR /&gt;&lt;BR /&gt;Glad you got it fixed,&lt;BR /&gt;&lt;BR /&gt;April&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi April,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would you know the exact privileges the account need?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 12:39:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175167#M4539</guid>
      <dc:creator>JohanFredriksson</dc:creator>
      <dc:date>2013-02-25T12:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175168#M4540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not exactly, but something to do with logon. I was told very little by the security team. Maybe there are more details in the link on the other post???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;April&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2013 13:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175168#M4540</guid>
      <dc:creator>AprilNunn</dc:creator>
      <dc:date>2013-02-25T13:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175169#M4541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not exactly, but something to do with logon. I was told very little by the security team. Maybe there are more details in the link on the other post???&lt;BR /&gt;&lt;BR /&gt;Sorry,&lt;BR /&gt;&lt;BR /&gt;April&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem. Does anyone know the permissions required to run Python from a scheduled task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ana&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 07:34:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175169#M4541</guid>
      <dc:creator>AnaAlvarez2</dc:creator>
      <dc:date>2013-04-17T07:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175170#M4542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The Esri development team gave me a fix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue here is that the FLEXnet Licensing Service (which Esri now uses at 10.1, but was not used in 10.0) doesn�??t have the proper execution permissions set to it such that the �??Network Service�?� account can start it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri working on a patch, but in the meantime, there is a manual workaround:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Ensure that you are logged in as a user with administration privileges on the machine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. From the windows Start menu, select run and enter �??cmd�??. Right-click on �??cmd.exe�?� and select �??Run as Administrator.�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. In the command prompt, run the following command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sc sdshow "FLEXnet Licensing Service"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will print out the DACL permissions that are registered with that service:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;NU)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCLCSWRPLOCRRC;;;IU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We need to insert �??(A;;CCLCSWRPWPDTLOCRRC;;;WD)�?� into the permission string, such that it becomes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;NU)(A;;CCLCSWRPWPDTLOCRRC;;;WD)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCLCSWRPLOCRRC;;;IU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NOTE:&amp;nbsp; The user�??s DACL string may vary, and edits to the string should be done carefully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. To register the DACL with the service run the command:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sc sdset "FLEXnet Licensing Service" ${your original DACL string with the new permission string inserted}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the example above you would enter:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sc sdset "FLEXnet Licensing Service" D:(D;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;NU)(A;;CCLCSWRPWPDTLOCRRC;;;WD)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;SY)(A;;CCLCSWRPLOCRRC;;;IU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. You should see a [SC] SetServiceObjectSecurity SUCCESS. That's it. Network Service should now run without error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 01:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175170#M4542</guid>
      <dc:creator>JulieKub</dc:creator>
      <dc:date>2013-09-17T01:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175171#M4543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know why my last post added strange unhappy face characters.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please look at my other post at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://stackoverflow.com/questions/15051467/arcgis-10-1-net-windows-service"&gt;http://stackoverflow.com/questions/15051467/arcgis-10-1-net-windows-service&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the same information without the unhappy face symbols.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 02:56:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175171#M4543</guid>
      <dc:creator>JulieKub</dc:creator>
      <dc:date>2013-09-17T02:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175172#M4544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can avoid those symbols by putting the text in one of the wrappers such as CODE or QUOTE. The text interpreter transforms groups of characters such as : followed by ( as &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 12:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175172#M4544</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-09-17T12:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175173#M4545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to chime in here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was running a BAT script from Task Scheduler that called a python script. I could run it from Windows Explorer or the command line, but it was failing with the same error when running from Task Scheduler, "Faulting module name: AfCore_libFNP.dll_unloaded". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the BAT file, I was referencing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Drive&amp;gt;:\Python27\ArcGIS10.1\python.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I changed the path to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Drive&amp;gt;:\Python27\ArcGISx6410.1\python.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the Task ran successfully. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are running the app on a 64-bit server, try using the x64 directory path to python.exe instead. Worked for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 17:31:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175173#M4545</guid>
      <dc:creator>emelinerenz1</dc:creator>
      <dc:date>2014-03-17T17:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Product Licensing in Scheduled Batch</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175174#M4546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not using the LM service... my arcmap install on this box is stand-alone.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everything runs when the user has admin permissions, but I cannot determine where permissions need to be set so that I can run the sched task without admin permissions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know which folders are read to get the licensing for a stand-alone install?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using process monitor, but it's not raising any alarm bells.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did notice in my reg keys that FlexNetService was set to true.. i tried making this false and re-running but no luck.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2014 08:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/product-licensing-in-scheduled-batch/m-p/175174#M4546</guid>
      <dc:creator>MichaelBlom</dc:creator>
      <dc:date>2014-05-20T08:41:44Z</dc:date>
    </item>
  </channel>
</rss>

