Error KErrPermissionDenied while connecting to gprs.

Login to reply to this topic.
Wed, 2008-01-02 12:05
Joined: 2006-12-18
Forum posts: 42

Hi Friends,

I made a GPRS manager dll through which one of my applications gets connected to GPRS successfully.
My second application is also running on the same device and at the same time while first one is executing.
I am using the same GPRS manager dll in my second application and search for any active connecton
if yes then use the same else create a new connecton.

Because my first application is using GPRS manager dll so i GPRS dll in it's pkg file.
but my second application is also running on the same device and at the same time so in second application's pkg file i did n't place GPRS dll.

TConnectionInfo iConnectionInfo;
TPckg iConnectionInfoPkg(iConnectionInfo);
lResult = iConnection.GetConnectionInfo(1,iConnectionInfoPkg);

if (KErrNone == lResult)
{
lResult = iConnection.Attach(iConnectionInfoPkg, RConnection::EAttachTypeNormal);
iConnection is an object of RConnectio.
i get the value of lResult is KErrPermissionDenied.
if (lResult == KErrNone)
{
iState = EGPRSConnected;
iCallbackPtr->HandleCallback(EGPRSConnectionEstablished,lResult);
StartNotification();
lResult = KErrAlreadyActive;
}

Please help me .
It's urgent.


Wed, 2008-01-02 18:20
Joined: 2007-09-23
Forum posts: 159
Re: Error KErrPermissionDenied while connecting to gprs.

Check you have any necessary capabilities required to call Attach()

Thu, 2008-01-03 15:04
Joined: 2006-12-18
Forum posts: 42
Re: Error KErrPermissionDenied while connecting to gprs.

Thanks dear,
This was certainly issue with capabilities.

  • Login to reply to this topic.