Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2009

    Angry "Unable to execute the file for security reason(-46)"


    I try to open the link http://songs.galatta.com/music/langu...troduction.mp3using the web client engine. But while running the app i'm getting an panic "Unable to execute the file for security reason(-46)".
    When i saw my log file, the error was occurred in WebClientEngine.cpp's OpensessionL method.
    My code:
    void CWebClientEngine::OpenSessionL()
    	LOGTXT("In OPenSessionL Method");
        if (iSessionOpened) return;
        // Open RHTTPSession with default protocol ("HTTP/TCP")
        TRAPD( err, iSession.OpenL() );
        if( err != KErrNone ) {
            // Most common error; no access point configured, and session creation
            // leaves with KErrNotFound.
        	iObserver.ClientOpenSessionFailedL( *this, err );
            User::Leave( err );
        LOGTXT("User Session starts");
    	User::LeaveIfError(iConnection.Start());//Error occured Line//
    	LOGTXT("User Session ends");
    	RStringPool strP = iSession.StringPool();
    	RHTTPConnectionInfo connInfo = iSession.ConnectionInfo();
    	connInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketServ, RHTTPSession::GetTable() ), THTTPHdrVal (iSocketServ.Handle()) );
    	TInt connPtr = REINTERPRET_CAST(TInt, &(iConnection));
    	connInfo.SetPropertyL ( strP.StringF(HTTP::EHttpSocketConnection, RHTTPSession::GetTable() ), THTTPHdrVal (connPtr) );
    	LOGTXT("HTTP Socket Connection");
        // Install this class as the callback for authentication requests. When 
        // page requires authentication the framework calls GetCredentialsL to get 
        // user name and password.
        InstallAuthenticationL( iSession );
        iSessionOpened = true;

    Pls help me to sort the problem.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: "Unable to execute the file for security reason(-46)"

    you should already know that you get this error, because you are missing a capability for the API function call. So check documentations for the API, and make sure you have all required capabilities in your process.

Similar Threads

  1. Problem with GCCE build in Carbide.vs
    By raffaelbechara in forum Symbian
    Replies: 6
    Last Post: 2008-10-20, 16:06
  2. I can not execute on mobile phone a file .nth
    By docjohn in forum Digital Rights Management & Content Downloading
    Replies: 0
    Last Post: 2008-03-17, 03:08
  3. Replies: 6
    Last Post: 2006-08-29, 11:51
  4. Replies: 1
    Last Post: 2005-05-26, 14:22
  5. 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