Problem in creating iview programmatically

Dear EP friends,
I am trying to create an iView programmatically following the EP help doc.
At the code below
IiViews iViewSrv =(IiViews) PortalRuntime.getRuntimeResources().getService(IiViews.KEY);
i am getting errror recorded at log as
com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
what would be the problem,
i included the required jar i.e. com.sap.portal.ivs.api_iview_api.jar
any idea ??
thanx in advance.
regards
lakshmikantha

Hi Lakshmikantha,
I have seen some implementations that, instead of taking the current user, your component would get a reference t the PCD "service user" and use this user when doing the PCD lookup. This user has access to entire PCD.
The code to get this user is the following:
IUserManagementEngine ume =
    ManagementEngine) PortalRuntime
    .getRuntimeResources()
    .getService(IUserManagementEngine.KEY);
IServiceUserFactory sufactory = ume.getServiceUserFactory();
try {
    serviceUser = sufactory.getServiceUser(username);
} catch (UMException e) {}
You should read the PCD Javadocs, which has some more info (and slightly different method for getting the service user).
NOTE: For many, this is a major security hole.
For more info, check out this thread:
Hope this helps.
Daniel
P.S.: You can just call me Daniel.

Similar Messages

  • Problem in creating iViews.

    Hi,
       In Enterprise Portal Page I am not able to create iview. Previously it worked fine, if I right clicked folder under portal content it would show following options like New,New from PAR,open,refresh, change id, delete , copy and cut but now its shows following options like open,open in new window, Save target , Print target, cut ,copy , shortcut and properties.
    Can anyone tell what can be the problem?
    Thanks in advance.
    Suresh

    thanks a lot dudes
    I am using IE 6.0 new version
    I Uninstalled and reinstalled the IE Even i am facing same error. In bottom of IE message is like icon followed by  "done but with errors on page" if i double clicked that pop up box showing Error
    1.object expected in  
    URL:http://iscsapapp4w:50000/irj/portal
    URL:http://iscsapapp4w:50000/irj/servlet/prt/prtroot/pcd
    2._htmlbMessageBar is undefined
    Anyone help me out what settings i have to do in my IE.
    thanks in advance
    Regards
    Suresh

  • Problem in creating iview template in EP7.0

    Hi,
    I getting the below message even after creating the iview template in EP7.0
    "No templates to display. You are not assigned to any existing templates."
    Created through:
    content Admin --> portal content --> <folder>new --> iview --> seleting "Portal component - create an iView from a portal component contained in a deployed portal archive (PAR file)" <next> --> seleting "com.sap.portal.appintegrator.sap" <next> --> webdynpro <next> --> finish.
    Open object for editing...--> Object is a Template to Yes.
    Result :
    content Admin --> portal content --> <folder>new --> iview --> seleting "iview template- create an iView from an existing iView template" <next> which displays the same message.
    "No templates to display. You are not assigned to any existing templates."
    Rgrds,
    Suri.

    Hi,
    do have the right permissions? You can check this using the Permission Editor (Applications, PCD)
    What role are you assigned to? Content Administrator? System Administrator or even Super Administrator?
    Doesthe same error occur when you're logged in as Super Administrator?
    br,
    Tobias

  • Problem while creating URL iview (in EP7.0)

    Hi,
    I encountered a problem while creating URL iview (in EP7.0) as when I selected the iview template for creating the URL iview, the content area got displayed as
    "No templates to display. You are not assigned to any existing templates."
    please assist me in this regard.
    Thanks,
    Suri

    Hi Manoj,
    Thank you for your reply.
    I am still getting the same messages even after creating the iview template in EP7.0
    Created through:
    content Admin --> portal content --> <folder>new --> iview  --> seleting "Portal component - create an iView from a portal component contained in a deployed portal archive (PAR file)" <next> --> seleting "com.sap.portal.appintegrator.sap" <next> --> webdynpro <next> --> finish.
    Open object for editing...--> Object is a Template to Yes.
    Result :
    content Admin --> portal content --> <folder>new --> iview --> seleting "iview template- create an iView from an existing iView template" <next> which displays the same message.
    "No templates to display. You are not assigned to any existing templates."
    Rgrds,
    Suri.

  • Error While Creating Iview?

    Hi Everyone,
    I Got the error while creating iview in the portal.
    Just i went Portal COntent->Folder->New->Iview
    500   Internal Server Error
      SAP NetWeaver Application Server 7.00/Java AS 7.00 
    Failed to process request. Please contact your system administrator.
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    The initial exception that caused the request to fail, was:
       java.lang.NoClassDefFoundError
         at com.sap.security.core.server.csi.URLChecker._isValid(URLChecker.java:289)
         at com.sap.security.core.server.csi.URLChecker.isValidURL(URLChecker.java:1202)
         at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.checkURL(AbstractURLGenerator.java:697)
         at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.applyWSRPTemplate(AbstractURLGenerator.java:1235)
         at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.computeWebResourcePath(AbstractURLGenerator.java:945)
         at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.computeWebResourceURL(AbstractURLGenerator.java:1078)
         at com.sap.tc.webdynpro.serverimpl.core.url.AbstractURLGenerator.getWebResourceURL(AbstractURLGenerator.java:223)
         at com.sap.tc.webdynpro.services.sal.url.api.WDURLGenerator.getWebResourceURL(WDURLGenerator.java:377)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:407)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Thanks
    Subbarao

    Hi Subbarao,
    Is this a new installation. Check whether all post installation tasks (like patch upgrade) are completed.
    Also try restarting the server.
    Regards.
    Santhosh

  • Error while create iview in 6.2

    Dear EP friends
    I am getting below error while try to create the iview programmatically.
    Error:javax.naming.NoInitialContextException: java.lang.ClassNotFoundException: com.sapportals.portal.pcd.gl.PcdInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.sapportals.portal.pcd.gl.PcdInitialContextFactory]
    The version i am working here is
    6.0.2.33.0.Enterprise_Portal_Support_Package_2
    I included some of jar files of 6.4.
    any idea?
    plz reply
    thanx in advance
    with warm regards,
    S. Lakshmikanthaiah

    hi Detlev,
    thanx for ur response.
    I am following as the steps given in
    Browse Roles, Folders, Pages & iViews assigned to a user: EP6 SP2
    of Prakash Singh.
    His another one EP 6.4 worked fine.
    and libs i am using appropriated only,
    still i got that error.
    that is why posted my query
    thanx anyway
    Lakshmikantha

  • Creating portlet programmatically

    Hi dev2dev
    I want to create portlet programmatically
    if there is any hints or package related pls do mail me
    Thanks n Regards
    Surya
    [email protected]

    Hi,
    I am sure ( although without having testet it myself ) that the administrative EJBs behind the portal administration tool could be used here.
    consult the java - doc for theese classes.
    Are you sure this is the only solution to the problem ? If you could elaborate on the problem leading to you wanting to create portlets prgrammatically perhaps the community could provide you with another solution if there are any.
    - Anders M.

  • Creating ViewAcessor programmatically

    I have created ViewObject at runtime by providing sql query. Now i want to create ViewAccessor so that i can validate one of the fields in newly created ViewObject but i could not find any help regarding creating ViewAccessor programmatically. Any Help?????

    Hi,
    I am sure ( although without having testet it myself ) that the administrative EJBs behind the portal administration tool could be used here.
    consult the java - doc for theese classes.
    Are you sure this is the only solution to the problem ? If you could elaborate on the problem leading to you wanting to create portlets prgrammatically perhaps the community could provide you with another solution if there are any.
    - Anders M.

  • WDRuntimeException error creating iViews pages

    Hi All
    I´m not sure if this message I can put here but ...
    When I´m trying to create iviews on Portal 7.0, I´m having this error message (also occurs when choose User Administration inside portal):
    500 Internal Server Error
    Web Dynpro Container/SAP J2EE Engine/6.40
    Failed to process request. Please contact your system administrator.
    Error Summary
    While processing the current request, an exception occured which could
    not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and
    correct the cause of the problem, please contact your
    system administrator. To facilitate analysis of the problem, keep a
    copy of this error page. Hint: Most browsers allow to
    select all content, copy it and then paste it into an empty document
    (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed
    to create deployable object 'sap.com/pb' since it is
    not a Web Dynpro object.
    at
    com.sap.tc.webdynpro.serverimpl.core.deployment.AbstractDeployableObject.
    (DeployableObject.java:56)
    at
    com.sap.tc.webdynpro.serverimpl.wdc.deployment.DeployableObjectFactory.getDeployableObject(DeployableObjectFactory.java:95)
    at
    com.sap.tc.webdynpro.services.sal.deployment.core.DeployableObjectInternal.getDeployableObjectInternal(DeployableObjectIntern
    al.java:34)
    at
    com.sap.tc.webdynpro.clientserver.session.RequestManager.getApplicationDeployableObjectPart(RequestManager.java:380)
    ... 21 more
    See full exception chain for details.
    System Environment
    Client
    Web Dynpro Client Type HTML Client
    Server
    Web Dynpro Runtime Vendor: SAP, build ID: 7.0008.20060517125535.0000
    (release=645_VAL_REL,
    buildtime=2006-05-29:19:11:56[UTC], changelist=403424, host=pwdfm101),
    build date: Thu Jul 20 17:37:17 PMDT 2006
    J2EE Engine 7.00 patchlevel
    Java VM Classic VM, version:1.4.2, vendor: IBM Corporation
    Operating system AIX, version: 5.3, architecture: ppc64
    Session & Other
    Session Locale pt_BR
    Time of Failure Tue Aug 08 10:36:54 PMDT 2006 (Java Time:
    1155040614828)
    Web Dynpro Code Generation Infos
    Does somebody see something like this error????
    Thanks a lot !!!
    Daniela Godoi

    Thanks Steelman! I appreciate you.
    Yes, i have created the System object. (BD1CLNT100)
    But when i was following the steps you gave to me in creating the Crystal Enterprise Report :> Folder= (Crystal Report) ->iView->Crystal Enterprise Report> ( iView Name => “rptTest”/ iView ID => “rptTest” )&#61664;Standard Crystal Enterprise Report-->
    It is asking for the system, which i selected the system object i created (BD1CLNT100), then it is asking for (Crystal Enterprise Report ID, Application Parameters) and the (Viewer Application Page) is set to default "viewreport.csp"
    What should is the (Crystal Enterprise Report ID, Application Parameters) and should i leave (Viewer Application Page) set to default "viewreport.csp"?
    Thanks,
    Haffiz

  • How to create iView to run Web Service

    Hi,
    I need create iView on EP7 NW2004S SP12 portal to run Web Service provided on SRM 6.0 system.
    Here is how I have attempted to create the iView:
    1. Right click and select New =>iView.
    2. Select "iView Template" radio button.
    3. Select "Web Service iView" radio button to specify Web Service Template.
    4. Enter name and ID of iView.
    5. Select System Alias of System defined earlier.
    At this point, the portal attempts to connect to the ECC system, and it fails with this error, and I cannot finish the create of the iView.
    Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
    Here are the key parameters defined for the System referenced by the system alias:
    WSDL_URL:http://sap2.mycompany.com:50000/SRM-MDM/SRM_MDM
    Logon Method:UIDPW
    User Mapping Type:admin, user
    CodeLink:com.sap.portal.systems.webservices.webservice_system
    I've also created a usermapping for the Everyone group, and provided the userid and password for the system alias successfully.
    Thanks,
    Kevin

    Thank you for that information.  I had not previously seen a procedure on how to setup an iView to run a web service. 
    I had created the System just as described in this blog, but I still have a problem.  When creating the iView (on the last step of process when I click Finish), the portal attempts to connect to the SRM system, and it fails with the error highlighted below.
    Could not connect to back-end application. Check your system. The server may be down or there may be an error in a system parameter.
    I get an error in System Administration as well when I test the connectivity for the System object.
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
    Results:
    Retrieval of default alias successful
    Connection failed. Make sure that Single Sign-On is configured correctly
    How does the security need to be setup to make this work?  Or what could be causing this error?  I do have SSO configured between the portal and the target system.
    Thanks,
    Kevin

  • Showing iView programmatically

    Hi.
    Now I'm in research and I have such question:
    I know that it is posible to get such object as iView programmatically and modify it.
    And Is it posible to show this iView programmatically.
    For example.
    I know that there is an iView "myView" in Portal Content.
    but there is no delta-Link for it to any workSet/role/page.
    So no user can not see it.
    So I want to create such an application(and integrate it into portal) that will show this iView.
    Is it posible?
    If yes? - how to do it?
    Thanks for looking.

    Hi Alexander,
    Please see the following for how to create navigation links:
    http://help.sap.com/saphelp_nw04/helpdata/en/43/0029d0e7371aa2e10000000a422035/frameset.htm
    Can you explain your precise scenario:
    (*) Do you want to simply send a parameter to one iView (navigation target) and have that iView navigate to it? If so, you can simply send a request parameter (or maybe you get it as a parameter in an HTMLB control) and then do a redirect to the appropriate URL. But why not just navigate directly.
    Hope this helps.
    Daniel

  • Cannot create iView from PAR file

    I am trying to create an iView from PAR file. But when I select the option,
    "Portal component - create an iView from a portal component contained in a deployed portal archive (PAR) file"
    and click next, I get the following error.
    Error______________________________________
    Step 1:  Portal Archive Selection
    No templates to display. You are not assigned to any existing templates.
    I have portal_configurator and developer roles assignmed to myself. Which other role do I need? I cannot get admin role.
    Note: Other users with admin roles can create iViews.

    Hi
    What is your portal version details ?
    In EP 7.0 you do not have the option -- New From PAR.
    So to create IView from Par, you should select the option New --> IView and then there will be an option to select par file.
    Otherwise
    1.Check if your par file is deployed on server.
    2. Check the portalapp.xml, if you have configured your components properly.
    Cheers
    Chinmaya
    reward for helpful answers

  • I am having problems with creating my apple id. On the phone it is advising me that the ID is not created and then when i do it online it says that it has been created. Can you advise me on what to do please?

    I am having problems with creating my apple id. On the phone it is advising me that the ID is not created and then when i do it online it says that it has been created. Can you advise me on what to do please?

    Apple ID FAQ   http://support.apple.com/kb/HE37

  • Facing some problems in creating a custom tabs in CRMD_ORDER Transaction

    Hi Friends,
    I am facing some problems in creating a custom tabs in CRMD_ORDER Transaction code in Solution Manager of SAP.
    Actually my requirement is adding of two tabs(one is header & another is item tab) in the above Transaction, i was able to put one tab i.e header tab but i was not able to keep item tab. i found a badi CRM_CUSTOMER_I_BADI in which documentation was given & i processed in the same way.
    For information i used the Badi CRM_CUSTOMER_H_BADI for header tab which i was able to add the tab & all functions like change, save working Good.
    But i want how to add custom tab in which item details were to be attached.
    i was done with the necessary SPRO settings(or Tcode CRMV_SSV) & able to see the 2 tabs thats it, but the functionality save is not working for the second tab & not saving in table CRMD_CUSTOMER_I (in this table there is one CI include where we added our item fields).
    And also i had a doubt whether to use ALV or Table Control. And if possible can any one can sent me the screen design & the code for the above requirement in detail.
    can any one who have knoweldge in Solution Manager & in the above Badi implementation can give me a right solution which will help me a lot.
    Thanks a lot in advance.
    Thanks
    Ravi.
    can any one give the solution regarding to the above one.
    Edited by: ravikanth on Jul 23, 2008 8:13 AM

    Hello Priyanka,
    I have the same problem by using Service Ticket in SAP CRM 5.0.
    Did you already solved this issue? If so, can you please provide the solution!?
    How can I activate and check the transfer log?
    Thanks and regards
    Alex

  • Facing problem in creating socket in a method from an already deployed application exe while same method is working from another exe from same environment from same location.

    Dll Created In: - MFC VC
    6.0
    Application Exe Developed In:
    - VC 6.0, C# and VB.net (Applications which are using dll)
    OS: - Windows XP sp2 32bit
    / Windows Server 2008 64 bit
    Problem: - Facing problem in creating socket
    in a method from an already deployed application exe while same method is working from another exe from same environment from same location.
    Description: - We have product component which
    has an exe component and from exe we invoke a method, which is defining in dll, and that dll is developed in MFC VC6.0. In the dll we have a method which downloads images from another system after making socket connection. But every time we are getting Error
    code 7, it is not giving desire result while same method is working from another exe from same environment from same location. And also me dll is deployed on many systems and giving proper output from same application.
    Already Attempt: - Because error is coming on
    client side so what we did, we created a driver in C# which invokes same method from same environment(on client machine) using same dll and we are astonished because it worked fine there.
    Kindly Suggest: -
    We are not able to figure out root cause because nothing is coming in windows event logs but what I did, for finding the problem line, I wrote logs on each line and found the exact line in application exe which is not working,
    actually  it is not executing Create () method,
    I will give snippet of the code for understanding the problem because we are not finding any kind solution for it.
    Kindly assist us in understanding and fixing this problem.
    Code Snippet: -
    Int Initialize (LPTSTR SiteAddress, short PortId)
    try
    CClientTSSocket *m_pJtsSockto;
    m_pJtsSockto = new CClientTSSocket;
    LONG lErr = m_pJtsSockto->ConnectTS(csIPAddress,PortId);
    ErrorLog (0, 0, "--------ConnectTS has been called ------------","" );
    catch(...)
    DWORD errorCode = GetLastError();
    CString errorMessage ;
    errorMessage.Format("%lu",errorCode);
    ErrorLog (0, 0, "Image System", (LPTSTR)(LPCTSTR)errorMessage);
    return  IS_ERR_WINDOWS;
    Note: -
    CClientTSSocket extends CAsyncSocket
     IS_ERR_WINDOWS is a macro error code which value I found 7.
    LONG ConnectTS(CString strIP, UINT n_Port)
    ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
    if(!Create())
    ErrorLog(0,0,"ConnectTS is calling [Create not called successfully] ","");
     n_Err = GetLastError();
     ErrorLog(n_Err,0,"ConnectTS is calling1111111111111111Erorrrrrrrrrrrrr","");
    return NET_INIT;
    ErrorLog(0,0,"ConnectTS is calling2222222222222222222","");
    if(!AsyncSelect(0))
    n_Err = GetLastError();
    return NET_INIT;
    if(!Connect(strIP,n_Port))
    n_Err = GetLastError();
    ErrorLog(n_Err,0,"ConnectTS","");
    return SERVER_NOT_CONNECTED;
    Code description: -
    From
    int GETImage_MT() method we call Initialize() method and pass client machine IP and Port and there we call
    ConnectTS() method, In this method we Create() method and finally it returns the error code as mention in macro 7.
    Logs after running the program: -
    --------ConnectTS has been called ------------
    ConnectTS is calling Create [is going to call]
    Image System 
    0
    Note: - According to logs, problem is coming in Create method().
    Here 0 is errorMessage received in catch block. And from catch block it returns macro value 7. And when we run same method individually from same machine, same environment through same dll
    from different exe, it is working fine and we are facing any kind of problem. While same problem application was working properly earlier but now continuously it showing problem.
     Kindly assist us to resolve the issue.

    Pointer variable was already initialized; I have mention in code; kindly assist us.
    Dll Created In: - MFC VC 6.0
    Application Exe Developed In: - VC 6.0, C# and VB.net (Applications which are using dll)
    OS: - Windows XP sp2 32bit / Windows Server 2008 64 bit
    Problem: - Facing problem in creating socket
    in a method from an already deployed application exe while same method is working from another exe from same environment from same location.
    Description: - We have product component
    which has an exe component and from exe we invoke a method, which is defining in dll, and that dll is developed in MFC VC6.0. In the dll we have a method which downloads images from another system after making socket connection. But every time we are getting
    Error code 7, it is not giving desire result while same method is working from another exe from same environment from same location. And also me dll is deployed on many systems and giving proper output from same application.
    Already Attempt: - Because error is coming
    on client side so what we did, we created a driver in C# which invokes same method from same environment (on client machine) using same dll and we are astonished because it worked fine there.
    Kindly Suggest:
    - We are not able to figure out root cause because nothing is coming in windows event logs but what I did, for finding the problem line, I wrote logs on each line and found the exact line in application exe which is not
    working, actually it is not executing Create () method, I will give snippet of the code for understanding
    the problem because we are not finding any kind solution for it. Kindly assist us in understanding and fixing this problem.
    Code Snippet: -
    Int Initialize (LPTSTR SiteAddress, short PortId)
    try
    CClientTSSocket *m_pJtsSockto;
    m_pJtsSockto = new CClientTSSocket;
    LONG lErr = m_pJtsSockto->ConnectTS(csIPAddress,PortId);
    ErrorLog (0, 0, "--------ConnectTS has been called ------------","" );
    catch(...)
                       DWORD errorCode = GetLastError();
                       CString errorMessage ;
                       errorMessage.Format("%lu",errorCode);
                       ErrorLog (0, 0, "Image System", (LPTSTR)(LPCTSTR)errorMessage);
                       return  IS_ERR_WINDOWS;
    Note: - CClientTSSocket extends CAsyncSocket
     IS_ERR_WINDOWS is a macro error code which value I found 7.
    LONG ConnectTS(CString strIP, UINT n_Port)
              ErrorLog(0,0,"ConnectTS is calling Create [is going to call]","");
              if(!Create())
                       ErrorLog(0,0,"ConnectTS is calling [Create not called successfully] ","");
              n_Err = GetLastError();
              ErrorLog(n_Err,0,"ConnectTS is calling1111111111111111Erorrrrrrrrrrrrr","");
                      return NET_INIT;
              ErrorLog(0,0,"ConnectTS is calling2222222222222222222","");
              if(!AsyncSelect(0))
                       n_Err = GetLastError();
                       return NET_INIT;
              if(!Connect(strIP,n_Port))
                       n_Err = GetLastError();
                       ErrorLog(n_Err,0,"ConnectTS","");
                       return SERVER_NOT_CONNECTED;
    Code description: - From int GETImage_MT() method
    we call Initialize() method and pass client machine IP and Port and there we call ConnectTS() method, In
    this method we Create() method and finally it returns the error code as mention in macro 7.
    Logs after running the program: -
    --------ConnectTS has been called ------------
    ConnectTS is calling Create [is going to call]
    Image System  0
    Note: - According to logs, problem is coming in Create method(). Here
    0 is errorMessage received in catch block. And from catch block it returns macro value 7. And when we run same method individually from same machine, same environment through same dll from different exe, it is working fine and we are facing any kind of problem.
    While same problem application was working properly earlier but now continuously it showing problem.
     Kindly assist us to resolve the issue.

Maybe you are looking for

  • OS X Mavericks Won't download correctly, app is gray?

    I've been trying to download OS X Mavericks for about 3 hours now. It has been continously gray and unmoving. After reading several ways on how to download the update I tried every step offered. It also seems as though when downloading the X should b

  • Service Ticket "Priority" Field...

    I have a question about changing the Priorities in the Service Ticket Header Overview. The only place I have found so far that changes these is under: SPRO > CRM > Transactions > Settings For Activities > Maintain Categories, Goals, and Priorities >

  • JTable in Swing

    hi, Good Morning, I am using NetBeans and MS-Access to develop a simple project. I am using JTable to store all the records from my MS-Access Database. When I run the project all the records are stored in JTable .No Problem. But when I insert new rec

  • Opening PDF in IE "breaking" for loop

    Hi, I have a dynamic PDF that is uploaded to a website.  When the PDF opens, the user has to fill in certain fields before clicking the "Next" button.  Upon clicking the Next button, I have a JavaScript function that sets certain fields access to req

  • Read access to procedures,function,packages and triggers

    Hi, I created a user with CREATE SESSION,SELECT ANY TABLE privilege. My objective is to create a user with read only access to other schemas. But the newly created user is not able to read procedures,function,packages and triggers. The new user need