×

Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 44
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Location
    India
    Posts
    170

    Unhappy Unable to execute files for security reasons

    I am dealing with contacts db & reading IMEI no in my application.I inclided all capabilities which we get with developer cert in .mmp. My app has successfully installed on E61, but when i run it ,it gave me Error Unable to execute files for security reasons. Pl help me out...
    Here are contains of .mmp & .pkg files for your reference.

    //.mmp

    TARGET MyApp.exe
    TARGETTYPE exe
    UID 0x100039CE 0x00272D43

    EPOCSTACKSIZE 0x5000

    macro __S60_BUILD__

    SOURCEPATH ..\src
    SOURCE MyAppApp.cpp
    SOURCE MyAppAppUi.cpp
    SOURCE MyAppDocument.cpp
    SOURCE MyAppContainer.cpp
    SOURCE MyAppEngine.cpp
    SOURCE MyAppContact.cpp
    SOURCE ContactManager.cpp
    SOURCE GlobalFunction.cpp
    ..
    ..

    SOURCEPATH ..\data

    START RESOURCE MyApp.rss
    HEADER
    TARGETPATH \resource\apps
    END //RESOURCE

    START RESOURCE MyApp_reg.rss
    #ifdef WINSCW
    TARGETPATH \private\10003a3f\apps
    #else
    TARGETPATH \private\10003a3f\import\apps
    #endif
    END //RESOURCE



    //USERINCLUDE .
    USERINCLUDE ..\inc

    SYSTEMINCLUDE \epoc32\include

    LIBRARY euser.lib apparc.lib cone.lib eikcore.lib
    LIBRARY eikcoctl.lib avkon.lib
    LIBRARY gdi.lib
    LIBRARY ecom.lib
    LIBRARY estor.lib
    LIBRARY eikdlg.lib
    LIBRARY fbscli.lib
    LIBRARY bafl.lib
    LIBRARY eikctl.lib
    LIBRARY efsrv.lib
    LIBRARY InetProtUtil.lib
    LIBRARY http.lib
    LIBRARY cntmodel.lib
    LIBRARY MediaClientImage.lib
    LIBRARY HLPLCH.LIB ws32.lib
    LIBRARY Etel3rdParty.lib


    LANG SC 01

    VENDORID 0

    CAPABILITY ReadUserData WriteUserData NetworkServices ReadDeviceData WriteDeviceData Location LocalServices SwEvent UserEnvironment TrustedUI SurroundingsDD ProtServ PowerMgmt

    // End of File


    //.pkg


    ;
    ; Installation file for MyApp application
    ;
    ;Languages
    &EN
    ;
    ; UID is the app's UID
    ;
    #{"MyApp"}, (0x00272D43), 1, 0, 0
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"ABC"

    ;
    ;Supports Series 60 v 3.0
    ;This line indicates that this installation is for the Series 60 platform v2.0
    ;This line must appear _exactly_ as shown below in the sis file
    ;If this line is missing or incorrect, the sis file will not be able
    ;to be installed on Series 60 v2.0 platforms
    [0x101F7961], 0, 0, 0, {"S60ProductID"}


    "\Symbian\9.2\S60_3rd_FP1\Epoc32\release\GCCE\UREL\MyApp.exe"-"!:\sys\bin\MyApp.exe"
    "\Symbian\9.2\S60_3rd_FP1\Epoc32\Data\z\resource\apps\MyApp.RSC"-"!:\resource\apps\MyApp.rsc"

    "\Symbian\9.2\S60_3rd_FP1\Epoc32\Data\z\private\10003a3f\import\apps\MyApp_reg.RSC"-"!:\private\10003a3f\import\apps\MyApp_reg.RSC"
    "\finaSync2app\S60\IMAGES\BITMAPFRAMES\AppGifFrames.mbm"-"!:\resource\apps\AppGifFrames.mbm"
    "\finaSync2app\S60\IMAGES\AppImages.mbm"-"!:\resource\apps\AppImages.mbm"
    "\finaSync2app\S60\help\MyApp.hlp"-"!:\resource\help\MyApp.hlp"

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Unable to execute files for security reasons

    1. Have you tried your application on emulator? Is it working? Do you see any *PlatSec* warnings in the log file ?
    2. Having to many capabilities can be as bad as not having enough capabilities. If you do not know what capabilities you need you should start by removing them all, then run your application in emulator and after that you can compose you capabilities list based on the logged error/warning messages.
    3. Do not post the same question randomly throughout this boards. It helps nobody ...
    Last edited by ltomuta; 2006-12-14 at 22:15.

  3. #3
    Regular Contributor
    Join Date
    Nov 2006
    Location
    India
    Posts
    170

    Re: Unable to execute files for security reasons

    Quote Originally Posted by ltomuta
    1. Have you tried your application on emulator? Is it working? Do you see any *PlatSec* warnings in the log file ?
    2. Having too many capabilities can be as bad as not having enough capabilities. If you do not know what capabilities you need you should start by removing them all, then run your application in emulator and after that you can compose you capabilities list based on the logged error/warning messages.
    3. Do not post the same question randomly throughout this boards. It helps nobody ...
    it is working fine on emulator.
    Last edited by ltomuta; 2006-12-15 at 08:17.

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

    Re: Unable to execute files for security reasons

    I think the important question was:

    Do you see any *PlatSec* warnings in the log file ?

    So have you checked that one..

    yucca

  5. #5
    Regular Contributor
    Join Date
    Feb 2004
    Location
    Budapest, Hungary, Europe
    Posts
    168

    Re: Unable to execute files for security reasons

    It's very easy to leave your emulator settings untouched so that platsec enforcement is switched off (as it is by default). Please, check it out if it's switched on or not.

    Otherwise having too many capabilities should not hurt you except that it's difficult to hunt down errors caused by insufficient capabilities.

    Tote

  6. #6
    Registered User
    Join Date
    Dec 2006
    Location
    Hyderabad,India
    Posts
    591

    Re: Unable to execute files for security reasons

    previsly its not in enable position,now enable it,got error also in emulator that unable to execute file for security reason -46

    also i check *PlatSec*sir in epocwind,there shows only that
    33.355 *PlatSec* ERROR - Capability check failed - A Message (function number=0x00000005) from Thread SipServer.EXE[101f5d36]0001::SipServer, sent to Server !CentralRepository, was checked by Thread centralrepositorysrv.EXE[10202be9]0001::!CentralRepository and was found to be missing nothing. (An 'always fail' policy check). Additional diagnostic message: CenRep: CServerSession::GetIntL - Attempt made to read a setting
    Thanks and Regards
    -Chandan Singh

    ReBirth due to GOD so too much believe in GOD- C Singh

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

    Re: Unable to execute files for security reasons

    that looks weird on first, but then if you check that it is SipServer.EXE that gives it, you could basically assume that it means that you are failing the custom security check. Basically without knowing what the custom security check expects, you can nto do nothing on it. could indeed be that it only allows specific process to access the fuctionality, or it could be something else.

  8. #8
    Registered User
    Join Date
    Dec 2006
    Location
    Hyderabad,India
    Posts
    591

    Re: Unable to execute files for security reasons

    every time i get *PlatSec* ERROR - Capability check failed,what can i do sir??? u suggest me plz?i m using sip api related,
    2 files are :=
    sipprofileregistryobserver.h and sipprofileregistry.h
    Thanks and Regards
    -Chandan Singh

    ReBirth due to GOD so too much believe in GOD- C Singh

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

    Re: Unable to execute files for security reasons

    Check the was found to be missing and see whther it reports any capability. and if it does, then you need to add the capability. And see teh previous post for special case on the security where a server could also fail you on its own custom security check.

  10. #10
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: Unable to execute files for security reasons

    If you have "Unable to execute file for security reasons", it is not related to runtime problems, your application can not be started at all. SipServer.exe is not your code, its problem is probably intentional because of the emulator.
    Check for warning messages related to your own code.

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

    Re: Unable to execute files for security reasons

    Quote Originally Posted by wizard_hu_ View Post
    If you have "Unable to execute file for security reasons", it is not related to runtime problems, your application can not be started at all. .
    I would say that is a bit confusing way on saying the thing. Surely the application can be started, and can get -46 on runtime as well, provided that teh fucntion that causes the -46 is not called on construction time.

  12. #12
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,694

    Re: Unable to execute files for security reasons

    "Unable to execute files for security reason" is a message of the OS, appearing when it can not create a process. It is true that -46 has a wider usage, but I have not said anything about -46.
    Technically SIP works in the emulator (to some extent), so checking the logfile again may worth a try.

  13. #13
    Registered User
    Join Date
    Dec 2006
    Location
    Hyderabad,India
    Posts
    591

    Re: Unable to execute files for security reasons

    Quote Originally Posted by wizard_hu_ View Post
    If you have "Unable to execute file for security reasons", it is not related to runtime problems, your application can not be started at all. SipServer.exe is not your code, its problem is probably intentional because of the emulator.
    Check for warning messages related to your own code.
    i got no warning.just create a new app sipsettings and use code for profile settings,code i got from wikki that link is:-
    http://http://wiki.forum.nokia.com/i...ogrammatically
    Thanks and Regards
    -Chandan Singh

    ReBirth due to GOD so too much believe in GOD- C Singh

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

    Re: Unable to execute files for security reasons

    I would go and add all of the capabilities that are required for different functions with the API, so chekc the library: http://library.forum.nokia.com/, search for CSIPManagedProfileRegistry, and open the "Security policies for component: SIP Framework" from there, and add all of the capabilities defined in there, and see whther it helps.

  15. #15
    Registered User
    Join Date
    Dec 2006
    Location
    Hyderabad,India
    Posts
    591

    Re: Unable to execute files for security reasons

    ok.inform u sir after checking as u say.
    Thanks and Regards
    -Chandan Singh

    ReBirth due to GOD so too much believe in GOD- C Singh

Similar Threads

  1. Unable to locate .bmp files
    By markfrai in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-05-09, 10:27
  2. Unable to create sis file in Carbide.C++ Express, error with .o files
    By razas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 7
    Last Post: 2006-04-25, 07:05
  3. Unable to deploy .JAD .JAR files to Nokia 3650
    By cs01rrd4 in forum Mobile Java General
    Replies: 2
    Last Post: 2004-03-15, 15:07
  4. Unable to send files via Bluetooth
    By msingerman in forum Bluetooth Technology
    Replies: 3
    Last Post: 2003-11-19, 14:02
  5. Unable to load files into MIDP default phone
    By alan_stewart in forum Mobile Java General
    Replies: 0
    Last Post: 2003-03-03, 17:49

Posting Permissions

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