×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    14

    Device gives error: Unable to execute file for security reasons

    Hello,
    I am trying to develop an application that reads GPS data from external GPS device and print it to screen. I am using the libraries from
    http://wiki.forum.nokia.com/index.ph...60_3rd_Edition
    But I got a problem at this point.

    My application runs great on the emulator but gives the following error at device when I triger the gps function:
    [My application name]:
    Unable to execute file for security reasons

    I have develop a midp application like this it asks for permision and grants access to gps data. (I think my device runs good)

    I tried to sign my application via www.symbiansigned.com but i didnt made any good. I need some advice at this point should i sign my application with a legal certificate (if yes, how can i do that?)
    Last edited by mcadirci; 2009-03-16 at 15:49.

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Device gives error: Unable to execute file for security reasons

    Quote Originally Posted by mcadirci View Post
    Unable to execute file for security reasons
    It means that your application is lacking capabilities in accessing those APIs. You need to use Location capability in your .mmp file.
    Nokia Developer Wiki Moderation team

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    14

    Re: Device gives error: Unable to execute file for security reasons

    Quote Originally Posted by kiran10182 View Post
    It means that your application is lacking capabilities in accessing those APIs. You need to use Location capability in your .mmp file.
    Hello,
    Thanks for your answer since i am new can you please tell me how to do that?
    I have added my mmp file this line:
    LIBRARY lbs.lib

    Is that wrong or I do smt wrong? (I use carbide ide for developing)

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Device gives error: Unable to execute file for security reasons

    Quote Originally Posted by mcadirci View Post
    Hello,
    Thanks for your answer since i am new can you please tell me how to do that?
    I have added my mmp file this line:
    LIBRARY lbs.lib

    Is that wrong or I do smt wrong? (I use carbide ide for developing)
    No worries. You can add capabilities in your .mmp file using "CAPABILITY" keyword as follows:

    Code:
    CAPABILITY LOCATION
    After adding this capability, you need to build your application again.

    PS: You can open any existing example from SDK and can find this.
    Nokia Developer Wiki Moderation team

  5. #5
    Registered User
    Join Date
    Mar 2009
    Posts
    14

    Re: Device gives error: Unable to execute file for security reasons

    Quote Originally Posted by kiran10182 View Post
    No worries. You can add capabilities in your .mmp file using "CAPABILITY" keyword as follows:

    Code:
    CAPABILITY LOCATION
    After adding this capability, you need to build your application again.

    PS: You can open any existing example from SDK and can find this.
    Thanks alot I will try this I wish it helps.

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Smile Re: Device gives error: Unable to execute file for security reasons

    Some notes: First of all read this Wiki article for better understanding on what is capability and why do you need them. Capabilities

    Now your application is using RPositionServer and RPositioner APIs, which need Location capability in general. Hence you need to use that capability in your application.

    Location capability comes under extended set of capability(but from S60 3rd FP2, it is in the part of user-grantable set), so you need to use self-signed certificate or developer certificate.

    If your target phones are based on S60 3rd FP2 or later, then you can create and sign your application locally with self-signed certificate. Else, you need to sign your application with developer certificate; if you do not have publisher ID then you can use OpenSigned Online option.

    When you use OpenSigned Online option, make sure to select the capabilities you have used in your application in the Opensigned online form.

    I hope that helps.
    Nokia Developer Wiki Moderation team

  7. #7
    Registered User
    Join Date
    Mar 2009
    Posts
    14

    Re: Device gives error: Unable to execute file for security reasons

    Quote Originally Posted by kiran10182 View Post
    No worries. You can add capabilities in your .mmp file using "CAPABILITY" keyword as follows:

    Code:
    CAPABILITY LOCATION
    After adding this capability, you need to build your application again.

    PS: You can open any existing example from SDK and can find this.
    Hello,
    I have tried that but the problem still persist.
    First I tried adding
    Code:
    CAPABILITY LOCATION
    + build install application cant not be installed due to trust problem.
    After that I tried signing my application again. Signing solved the trust issue but the "Unable to file for security reasons" still persist.
    Is there a sample Location project that I can investigate? If yes where can i find that?

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Device gives error: Unable to execute file for security reasons

    You said it works on Emulator. Can you try this approach and see what are the necessary capabilities, you might be missing? Epocwind.out
    Nokia Developer Wiki Moderation team

  9. #9
    Registered User
    Join Date
    Mar 2009
    Posts
    14

    Re: Device gives error: Unable to execute file for security reasons

    Quote Originally Posted by kiran10182 View Post
    You said it works on Emulator. Can you try this approach and see what are the necessary capabilities, you might be missing? Epocwind.out
    Hello again,
    At my last attempt I build it for emulator usage. When I complie it with release setting, it worked (After signing)
    Thanks alot for your help.

  10. #10
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,347

    Re: Device gives error: Unable to execute file for security reasons

    Also you can use a "Capability Scanner". The Carbide.c++ includes a tool called "Capability Scanner" which scans through the source code for APIs which require capabilities. Using the Capability Scanner with the S60 emulator with the PlatSecDiagnostics set on will give a very likelyhood of all capabilities requirement being found.
    See this screencast for more information: http://tools.ext.nokia.com/video/cap...y_scanner.html

Similar Threads

  1. problem when importing from carbide c++ to vs 2003!
    By misfit.physics in forum Symbian Tools & SDKs
    Replies: 12
    Last Post: 2008-02-19, 09:45
  2. Replies: 1
    Last Post: 2005-05-26, 14:22
  3. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  4. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •