×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Feb 2006
    Location
    India,Pune
    Posts
    311

    Unable To Execute file for Security reason (-46)

    Hi All,
    I have developed on sample application for USB connection with PC.

    I used following module : csyModule- ECACM;Port Name: ACM::1


    After the installation of the application on target device I got the error
    Unable to exeute file for Security reason(-46)

    What it mean ????
    What are the possible reasons for this error?

    Thanks & Regards,
    Parag Pukar

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: Unable To Execute file for Security reason (-46)

    Check the APIs you are using, and add the required capabilities to your project...This error is standard way on telling that your executable doesn't have capabilities set for the requested operation.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81

    Re: Unable To Execute file for Security reason (-46)

    Another possible reason is that you've signed the sis with a certificate from symbiansigned (for example to grant "better" capabilities) and your app still have UID from unprotected range from playing with self-signed certificate.

    Damn, why is it not checked during instalation? The installer detects properly the other possibility (I.e. when UID is from protected range and your certificate is self-signed.)
    whatever happens happens

  4. #4
    Regular Contributor
    Join Date
    May 2007
    Posts
    463

    Re: Unable To Execute file for Security reason (-46)

    "Damn, why is it not checked during instalation? The installer detects properly the other possibility (I.e. when UID is from protected range and your certificate is self-signed.)"

    Erm, because you're totally making it up? There is no such check either at install time or at run time. As far as the loader is concerned, if it's installed then it's trusted.
    Get Resolvr - The Zeroconf framework for Symbian OS free today. Make your IP networking applications fun and easy to use. http://www.novelinteractions.com/resolvr/
    Proud to be the only autorickshaw owner in Cambridge - http://blog.novelinteractions.com/images/tuktuk.jpg

  5. #5
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81

    Re: Unable To Execute file for Security reason (-46)

    Aside from "making it up" (why would anybody make sth up here?) you seem to be right. Today I resigned the sis with unprotected UID with signed certificate and it works all right. So I guess I was mistaken yesterday. If that's the case, sorry for a false alarm.

    Nevertheless...
    When an application is to be Symbian Signed (either during development using a Developer Certificate or via the Symbian Signed program) it must use a UID from the protected range.
    http://forum.nokia.com/document/Foru...m_security.htm
    whatever happens happens

  6. #6
    Registered User
    Join Date
    Jul 2007
    Posts
    3

    Re: Unable To Execute file for Security reason (-46)

    I had the same problem when I tried to open the serial port..(see the sample below)
    My development environment was Carbide.vs 2.01 integrated on VS2003.

    TInt r = StartC32();

    if ( r != KErrNone && r != KErrAlreadyExists )
    {
    User::Leave ( r);
    }
    // Connect to CommServer
    RCommServ server;
    User::LeaveIfError( server.Connect() );
    User::LeaveIfError( server.LoadCommModule(_L("ECACM")) );

    TBuf16<KMaxPortName> portName;
    portName.Copy(_L("ACM::1"));

    // Open the comm. port

    RComm commPort;

    User::LeaveIfError( commPort.Open( server, portName, ECommShared ) );

    ///////////////////

    when I installed the app. and tried to open the port using one of the MenuItem. I got the message "Unable to execute file for Security Reasons"

    _______________________________________________________________

    FIX:

    Click on Project -> Edit Capabilities and enable "LocalServices" .

    -Kishor

Similar Threads

  1. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Symbian
    Replies: 35
    Last Post: 2008-01-17, 09:12
  2. unable to execute file for security reasons while calling iSIP = CSIP::NewL
    By mitesh_thakkar in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2007-03-18, 07:44
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. Replies: 0
    Last Post: 2002-06-10, 12:24
  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
  •