strange IWeb Error | developer.brewmp.com strange IWeb Error | developer.brewmp.com

Developer

strange IWeb Error

I am using brew MP 7.2 Beta + VS2008 (Simulation Environment).
I am using IWEB interface as following,
//create IWEB interface
boolean OnLineLib_InitAppData(OnLineLib * pMe)
{
// Insert your code here for initializing or allocating resources...
if(ISHELL_CreateInstance(pMe->piShell,AEECLSID_WEB,(void **)&pMe->pIWeb) != SUCCESS) {
pMe->pIWeb = NULL;
DBGPRINTF("OnLineLib_InitAppData - ISHELL_CreateInstance(IWeb) Error");
return FALSE;
} else {
//Set up the callback function to receive response from server
CALLBACK_Init(&pMe->WebCBStruct, IWebCallBack, pMe); //out, in, in

pMe->finalDestination = (char *)MALLOC(MaxBufferData);
return TRUE;
}

}

//Query
IWEB_GetResponse(pMe->pIWeb,(pMe->pIWeb, &pMe->pIWebResponse,&pMe->WebCBStruct,"http://11.24.13.21:8080/examples/servlets/servlet/HelloWorldExample",WEBOPT_CONNECTTIMEOUT,5000,WEBOPT_END));
//the http://11.24.13.21:8080 is my computer webserver IP.
return;

//CallBack

static void IWebCallBack(OnLineLib * pMe) {
int errorCode = 1;
//Get info about the response
pMe->pWebRespInfo = IWEBRESP_GetInfo(pMe->pIWebResponse);
//Check error code
errorCode = WEB_ERROR_SUCCEEDED(pMe->pWebRespInfo->nCode);

if(!errorCode) {
DBGPRINTF("Error in IWebCallBack - WEB_ERROR_SUCCEEDED() return false, errorCode:%d.",pMe->pWebRespInfo->nCode);
return;
}

I always got !errorCode branch hitted. the errorcode of pMe->pWebRespInfo->nCode is -21.
(#define EPRIVLEVEL 21 // Security violation)

Could someone give help on this? thanks a lot.

EPRIVLEVEL error code is because application is not having web access priviledges, open the MIF file and go to proviledges tab and check the web access check button.

EPRIVLEVEL error code is because application is not having web access priviledges, open the MIF file and go to proviledges tab and check the web access check button.