×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    41

    unable to execute file for security reasons while calling iSIP = CSIP::NewL

    Hi friends,

    i have developed application which register on sip server using profile.
    i have set capabilities : NetworkServices WriteDeviceData ReadUserData
    it is working fine on emulator.

    but on devices (N93 and N80) it creating problem. when i am calling following function it gives error: unable to execute file for security reasons

    TBool CSIPEngine::ExecuteL() {
    iSIP = CSIP::NewL(iUid, *this);
    }

    i have tryed two way

    1)signed my application with developer certificate having capabilities NetworkServices WriteDeviceData ReadUserData

    2)signed my application with developer certificate having all capabilities.

    what would be the problem? please help me.....

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: unable to execute file for security reasons while calling iSIP = CSIP::NewL

    Hi,

    You might need some other capabilities that are not documented. Did you also add the capabilities to the project (MMP file or Carbide project properties) when you signed with a certificate having all capabilities?

    Also, when you say "all" capabilities, do you actually have a certificate for that, or just the ones you can get easily?

    I note that a couple of the CSIPConnection methods require NetworkControl, which I think requires permission from Nokia?

    Sorcery

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    41

    Re: unable to execute file for security reasons while calling iSIP = CSIP::NewL

    thanks,

    That error is comming when i am calling function

    TBool CSIPEngine::ExecuteL() {
    iSIP = CSIP::NewL(iUid, *this);
    }

    here CSIP::NewL(iUid, *this) is not using other than following capabilities: NetworkServices WriteDeviceData ReadUserData

    i have tried following ways:
    1) MMP file : NetworkServices WriteDeviceData ReadUserData
    developer certificate with capabilities:
    NetworkServices WriteDeviceData ReadUserData

    2) MMP file : all capabilities
    Note: all means following 13 capabilities:
    NetworkServices WriteDeviceData ReadUserData LocalServices Location PowerMgmt ProtServ ReadDeviceData SurroundingsDD SwEvent TrustedUI UserEnvironment WriteUserData
    developer certificate with capabilities:all capabilities

    both way gives me same error. i have putted capabilities in MMP file i dont know how to configure in Carbide project properties, please let me know.

    CSIPConnection:
    i have putted CSIPConnection method in comment. right now i am using only above mentationed function "CSIPEngine::ExecuteL()". so i think, i dont need NetworkControl capability.

  4. #4
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: unable to execute file for security reasons while calling iSIP = CSIP::NewL

    Are you using Carbide.c++? Carbide doesn't use the MMP file for the build. If you select Project->Properties from the menu then you get a dialog box. If you select "C/C++ Build" on the left then you should be able to see a text entry field somewhere on the right hand side that says Capability next to it. You can enter capabilities there.

    If you aren't using Carbide.c++ this is irrelevant.

    I hope you don't need NetworkControl - you shouldn't. However, other developers have found that not all the documentation on which capabilities are needed for certain APIs is correct (although most of it is).

    Sorcery

  5. #5
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    135

    Re: unable to execute file for security reasons while calling iSIP = CSIP::NewL

    Why don't you use the capabilities of the SIP example:
    NetworkServices LocalServices Location ReadUserData \
    WriteUserData WriteDeviceData SwEvent ProtServ

    I am using them and a fairly complete SIP application without problem on a E70 (third edition). So you don't need the network control capability for that.

    There is no problem to get a certificate for these capabilities

    Good luck
    Jean-philippe

  6. #6
    Registered User
    Join Date
    Jan 2007
    Posts
    41

    Re: unable to execute file for security reasons while calling iSIP = CSIP::NewL

    thanks friends

    i am using Carbide.c++. now i have putted capabilities in the properties of project. problem is solved!!!

  7. #7
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    71

    Re: unable to execute file for security reasons while calling iSIP = CSIP::NewL

    Dear mitesh,

    Could you inform us how did you include the capabilities in the project properties,

    Thanks

  8. #8
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    71

    Re: unable to execute file for security reasons while calling iSIP = CSIP::NewL

    Sorry Found it

Similar Threads

  1. Replies: 1
    Last Post: 2005-05-26, 14:22
  2. Replies: 2
    Last Post: 2004-01-03, 09:38
  3. unable to merge two sis file on device .
    By amardeep in forum Symbian
    Replies: 0
    Last Post: 2003-04-25, 08:08
  4. Unable to open a newly created text file?
    By yuva69 in forum Symbian
    Replies: 1
    Last Post: 2002-06-06, 14:09
  5. Unable to save document to file?
    By yuva69 in forum Symbian
    Replies: 1
    Last Post: 2002-06-06, 13:30

Posting Permissions

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