Proxy error 401 HTTP_RESP_STATUS_CODE_NOT_OK

Hey, PI gurus,
We used ABAP proxy to send xml messages from our ECC server to our PI server.
After our PI server was upgraded to PI 7.11 from XI 3.0, I got an error "401 Unauthorized: HTTP_RESP_STATUS_CODE_NOT_OK" in the ECC SXMB_MONI when I tried to send a proxy message to PI.
  <SAP:Stack>HTTP response contains status code 401 with the description Unauthorized Authorization error while sending by HTTP (error code: 401, error text: Unauthorized)</SAP:Stack>
I got the user from PI->SXMB_IFR->Administration->xchange Profile and added the roles SAP_XI_IS_SERV_USER, SAP_XI_APPL_SERV_USER, SAP_XI_DEVELOPER_J2EE, SAP_XI_ADMINISTRATOR_J2EE to that user but I still got the same error.
Please help!
Thanks in advance!
Fisher

Koteswara,
I tested the connection from T code SM59 in ECC. ( LCRSAPRFC, SAPSLDAPI, H type RFC connection XI_INTERGRATION_SERVER).
Everything looked ok.
Whereelse can I test the system users if they are not used in the SM59?
Thanks!
Fisher

Similar Messages

  • Error code 401:"HTTP_RESP_STATUS_CODE_NOT_OK"

    Hi Experts,
    Messages are failed in SXMB_MONI with the Error code 401:"HTTP_RESP_STATUS_CODE_NOT_OK"
    Text message "Unauthorised".
    -->No users was locked & All users are maintaining perfect roles, no password problem.
    2.Messages are processing successfully from Adapter Engine to Integration Engine and after executing all the pipeline steps through XI adapter the messages are sending to receiver successfully (File to XI Adapter)
    3.But in the case of Integration Engine(After executing all the pipeline steps) to Adapter Engine the   messages are failed with the above error code (XI to File Adapter).
    and also can any body tell me what is the JRFC Function module which is executing in between these two.
    Can any body give me the solution ASAP.
    Thanks & Regards
    Sankar

    Hi,
    -->Aroan, I have gone through that OSS note already, we done not have any load on the J2EE engine only 4 interfaces are running.
    -->XIAPPLUSER is maintaining the role, it is J2EE port only. where can i check the port is locked or not.
      I think if port is locked then there is no messages will be processed for any interfaces.
    can any body give me the solution ASAP.
    Regards
    Sankar

  • Invalid Response Code: (502) Proxy Error

    I am getting following error when trying to consume a web service using a proxy .
    I have two Server, named A and B
    The wsdl file was generate at A by Function Module => Utilities => More Utilities => Create Web Service => From Function Module. And I can send data in Web Services Navigator(A Server ).
    So I import it in Web Dynpro as a model.But I deploy it in another J2EE engine(B Server).
    the Error log:
    java.rmi.RemoteException: Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (502) Proxy Error ( 找不到主机。 ). The requested URL was:"http://hqbd3.sinopec.com:8000/sap/bc/srt/rfc/sap/ZHQMRO_RP_RYJG_WS?sap-client=200"com.sinopec.bwbcs.wd.rpryjg.batchinput.medol.proxies.ZHQMRO_RP_RYJG_WSSoapBindingStub.bicCfzhqmroRpRyjg(ZHQMRO_RP_RYJG_WSSoapBindingStub.java:99) com.sinopec.bwbcs.wd.rpryjg.batchinput.medol.proxies.ZHQMRO_RP_RYJG_WSSoapBindingStub.bicCfzhqmroRpRyjg(ZHQMRO_RP_RYJG_WSSoapBindingStub.java:108) com.sinopec.bwbcs.wd.rpryjg.batchinput.medol.Request_ZHQMRO_RP_RYJG_WS_bicCfzhqmroRpRyjg.execute(Request_ZHQMRO_RP_RYJG_WS_bicCfzhqmroRpRyjg.java:87) com.sinopec.bwbcs.wd.rpryjg.batchinput.RpryjgBatchCreate.assignElementToRpryjgListData(RpryjgBatchCreate.java:387) com.sinopec.bwbcs.wd.rpryjg.batchinput.RpryjgBatchCreate.createRyjgData(RpryjgBatchCreate.java:320) com.sinopec.bwbcs.wd.rpryjg.batchinput.RpryjgBatchCreate.onActionBatchInput(RpryjgBatchCreate.java:217) com.sinopec.bwbcs.wd.rpryjg.batchinput.wdp.InternalRpryjgBatchCreate.wdInvokeEventHandler(InternalRpryjgBatchCreate.java:261) com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420) com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132) com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335) com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143) com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313) com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713) com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666) com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250) com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149) com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62) com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53) javax.servlet.http.HttpServlet.service(HttpServlet.java:760) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365) com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944) com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266) com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) java.security.AccessController.doPrivileged(Native Method) com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Whether it is because different Servers?
    Edited by: Cheney Cao on May 20, 2008 3:38 AM

    /****:/#

  • Execution failed: Transport error: 401 Error: Unauthorized

    Hi,
    I'm trying to communicate via a web services from the workspace and I SUP 2.2 generates the following error "Execution failed: Transport error: 401 Error: Unauthorized".
    Could someone guide me to solve this error.

    Hi Carlos,
    Sometime back I faced an error says "error executed on backend server: connection timeout" while creating mbo using one publicly available web service and after passing proxy settings in workspace, it worked.
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/05/14/how-to-bypass-proxy-settings-in-smp-workspace-for-connecting-any-public-web-service-being-in-a-corporate-network
    but error showing in the mentioned snapshot is much related to authorization. Btw are you able to access the web service URL in a browser? Asking any kind of authorization?
    Rgrds,
    JK

  • Proxy error while running the financial report in workspace.

    Hi,
    We are using the Hyperion financial reporting 9.3.1 with Essbase as a data source.
    While running a report in workspace, we are getting the 'Proxy error' meassage, which is following-
    "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    '<html><head>
    <title>502 Proxy Error</title>
    </head><body>
    Proxy Error
    <p>The proxy server received an invalid
    response from an upstream server.<br />
    The proxy server could not handle the request <em><a
    href="/hr/modules/com/hyperion/reporting/web/reportViewer/HRRunJob.jsp">GET /hr/modules/com/hyperion/reporting/web/reportViewer/HRRunJob.jsp</a></em>.<p>
    Reason: <strong>Error reading from remote server</strong></p></p>
    </body></html>"
    Do anybody have any idea on this? Any help will be appriciated on this.
    Thanks & Regards,
    Mohit Jain

    Hi Iain,
    We are using Microsoft Internet explorer 6.0. I am not sure about the 'proxy' (As we don't have any proxy setting in Tool--> Internet options--> connection--> LAN setting). We are accessing the Workspace and FR studio via Citrix application. How can I check the proxy.
    Also, I noticed one more point, Report has prompt for seleting 'Account hierarchy'.If we run the report only for one account hierarchy, report is returning the data but while running for multiple account hierarchy, it is throwing the 'Proxy error' as memtioned above.
    Please help us on this.
    Thank & Regards,
    Mohit

  • Error 401--Unauthorized when deployed on WL Managed server (10.3.3)

    Hi,
    I created & started a WL-Managed server on my window desktop machine. I deployed to this Managed server, an application which is running without problem on Admin Server. (The managed server is created in the same Domain as that of Admin Server)
    However, when I log on to the application on Managed server & enter the UID & PW I get the Error 401--Unauthorized page. The same security works perfectly well for Admin Server.
    Any clues what could be going wrong.
    Thanks in advance.
    Edited by: Prakash Chavan on Feb 28, 2011 4:57 PM

    Thanks Faisal,
    Here is the log after I add the 2 flags
    <Mar 1, 2011 8:59:30 AM EST> <Notice> <WebLogicServer> <BEA-000365> <Server stat
    e changed to RUNNING>
    <Mar 1, 2011 8:59:30 AM EST> <Notice> <WebLogicServer> <BEA-000360> <Server star
    ted in RUNNING mode>
    Mar 1, 2011 9:13:27 AM oracle.jbo.uicli.mom.CpxUtils$Visitor logMainApplicationC
    px
    INFO: zip:C:/JDev11g/Middleware/user_projects/domains/base_domain/servers/Svr0/t
    mp/_WL_user/TestTrackApp_V2.0/77qs7f/war/WEB-INF/lib/_wl_cls_gen.jar!/view/DataB
    indings.cpx
    [JpsAuth] Check Permission
    PolicyContext: [TestTrackApp#V2.0]
    Resource/Target: [view.pageDefs.ttsPageDef]
    Action: [view]
    Permission Class: [oracle.adf.share.security.authorization.RegionP
    ermission]
    Result: [FAILED]
    For more information on this failure, please set -Djps.auth.debug.verb
    ose=true
    I have emailed you the requested log & the config files.
    Edited by: Prakash Chavan on Mar 1, 2011 9:35 AM

  • Page leads to proxy error sometimes or taking too much time to load

    Hi All,
    APEX4.0
    Web server: Apache 1.3.9 (Oracle 9iAS 10.0.1.2.2)
    I am getting  the below error at first time when I try to open a page or the page takes 3 to 5 mins to load. From second time on wards, It takes 5 to 8 sec to open as normal. I debugged the page and checked the log. Logs and execution time are looking normal.  why the page takes too much time to load at first time or it leads to proxy error?? Is anybody got same experience before??
    Proxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request GET/pls/apex/f.
    Reason : Document contains no data
    Please guide me to find out and  resolve this issue....
    Thanks in Advance
    Lakshmi

    Hi this is what the solution given by your link
    A.1.6 Connection Timeouts Through a Stateful Firewall Affect System Performance
    Problem
    To improve performance the mod_oc4j component in each Oracle HTTP Server process maintains open TCP connections to the AJP port within each OC4J instance it sends requests to.
    In situations where a firewall exists between OHS and OC4J, packages sent via AJP are rejected if the connections can be idle for periods in excess of the inactivity timeout of stateful firewalls.
    However, the AJP socket is not closed; as long as the socket remains open, the worker thread is tied to it and is never returned to the thread pool. OC4J will continue to create more threads, and will eventually exhaust system resources.
    Solution
    The OHS TCP connection must be kept "alive" to avoid firewall timeout issues. This can be accomplished using a combination of OC4J configuration parameters and Apache runtime properties.
    Set the following parameters in the httpd.conf or mod_oc4j.conf configuration files. Note that the value of Oc4jConnTimeout sets the length of inactivity, in seconds, before the session is considered inactive.
    Oc4jUserKeepalive on
    Oc4jConnTimeout 12000 (or a similar value)
    Also set the following AJP property at OC4J startup to enable OC4J to close AJP sockets in the event that a connection between OHS and OC4J is dropped due to a firewall timeout:
    ajp.keepalive=true
    For example:
    java -Dajp.keepalive=true -jar oc4j.jar
    Please tell me where or which file i should put the option
    java -Dajp.keepalive=true -jar oc4j.jar ??????/

  • Error 401 while trying to connect SSRS via BIDS Report Designer to PowerPivot workbook hosted in SharePoint 2013

    I am having trouble connecting from BIDS 2012 to a PowerPivot workbook hosted in SharePoint 2013. I'm following this guide:
    http://technet.microsoft.com/en-us/library/gg413489.aspx but run into authentication problems (Error 401, access denied).
    I saw this issue comming up a number of times on this forum, but non of the proposed solutions really solve my issue. Also a lot of the solutions apply to SP2010. I verified the following items and they seem to be ok:
    All servers / clients are member of the same ad domain.
    The Excel PowerPivot file opens in SharePoint Excel Online and sliders and filters work (so connection SSAS / SharePoint is ok)
    I enabled Kerberos, and fiddler/ Kerberos auth tester (http://blog.michelbarneveld.nl/michel/archive/2009/12/05/kerberos-authentication-tester.aspx) are reporting kerberos is used when connecting to the sharepoint site.
    SPN for the sharepoint server is created and the sharepoint service account is allowed for delegation.
    When looking at fiddler when connecting to the PowerPivot document in BIDS, i see an ADOMD.net POST request to /_vti_bin/PowerPivot/redirector.svc/ failing with error 401, even the request containing the auth cookie.
    I updated the web.Config in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\PowerPivot to use CredentialType "Windows" instead
    of NTLM.
    In the sharepoint logs I find this error:
    03/28/2014 16:39:26.35 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Monitoring nasq Medium Entering monitored scope (Request (POST:http://spserver:80/_vti_bin/PowerPivot/redirector.svc/?DataSource=%2Fsites%2FAndreas%2FShared%2520Documents%2FRapportering%2520Resultaat%2520-%2520BalansV5.xlsx)). Parent No
    03/28/2014 16:39:26.35 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Runtime aep93 High Exception trying get context compatibility level: System.IO.FileNotFoundException: The site http://spserver:80/_vti_bin/PowerPivot/redirector.svc/?DataSource=%2Fsites%2FAndreas%2FShared%2520Documents%2FRapportering%2520Resultaat%2520-%2520BalansV5.xlsx could not be found in the Web application SPWebApplication Name=SharePoint - 80. at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSit...
    03/28/2014 16:39:26.35* w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Runtime aep93 High ...eDomainId, Uri& primaryUri) at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.GetContextCompatibilityLevel(Uri requestUri)
    03/28/2014 16:39:26.35 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (POST:http://spserver:80/_vti_bin/PowerPivot/redirector.svc/?DataSource=%2Fsites%2FAndreas%2FShared%2520Documents%2FRapportering%2520Resultaat%2520-%2520BalansV5.xlsx) 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.35 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Claims Authentication aip8h Medium Token Cache: Could not find SPSite for 'http://spserver/_vti_bin/PowerPivot/redirector.svc/?DataSource=%2Fsites%2FAndreas%2FShared%2520Documents%2FRapportering%2520Resultaat%2520-%2520BalansV5.xlsx'. Stack: ' at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSiteDomainId, Uri& primaryUri) at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean ... 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.35* w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Claims Authentication aip8h Medium ...swapSchemeForPathBasedSites, SPUserToken userToken) at Microsoft.SharePoint.IdentityModel.SPTokenCache.GetSubscriptionIdFromContext(String context)'. 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.37 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Runtime aep93 High Exception trying get context compatibility level: System.IO.FileNotFoundException: The site http://spserver:80/_vti_bin/PowerPivot/redirector.svc/?DataSource=%2Fsites%2FAndreas%2FShared%2520Documents%2FRapportering%2520Resultaat%2520-%2520BalansV5.xlsx could not be found in the Web application SPWebApplication Name=SharePoint - 80. at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSit... 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.37* w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Runtime aep93 High ...eDomainId, Uri& primaryUri) at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.GetContextCompatibilityLevel(Uri requestUri) 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.37 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Authentication Authorization agb9s Medium Non-OAuth request. IsAuthenticated=True, UserIdentityName=0#.w|myad\adasseville, ClaimsCount=21 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.37 w3wp.exe (0x1FE4) 0x0170 PowerPivot Service Request Processing 99 High Unable to retrieve SPUser. SPContext.Current.Web not available 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.37 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Runtime aep93 High Exception trying get context compatibility level: System.IO.FileNotFoundException: The site http://spserver:80/_vti_bin/PowerPivot/redirector.svc/?DataSource=%2Fsites%2FAndreas%2FShared%2520Documents%2FRapportering%2520Resultaat%2520-%2520BalansV5.xlsx could not be found in the Web application SPWebApplication Name=SharePoint - 80. at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSit... 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.37* w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Runtime aep93 High ...eDomainId, Uri& primaryUri) at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.GetContextCompatibilityLevel(Uri requestUri) 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.37 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (PreSendRequestHeaders). Execution Time=1.4166 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.37 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Micro Trace uls4 Medium Micro Trace Tags: 0 nasq,1 aep93,5 aip8h,7 aep93,0 agb9s,3 aep93,0 b4ly 55b8819c-6791-2052-bd23-f1c5b08a996c
    03/28/2014 16:39:26.37 w3wp.exe (0x1FE4) 0x0170 SharePoint Foundation Monitoring b4ly Medium Leaving Monitored Scope (Request (POST:http://spserver:80/_vti_bin/PowerPivot/redirector.svc/?DataSource=%2Fsites%2FAndreas%2FShared%2520Documents%2FRapportering%2520Resultaat%2520-%2520BalansV5.xlsx)). Execution Time=19.8324 55b8819c-6791-2052-bd23-f1c5b08a996c
    I tried all suggestions and have no longer a clue what the issue could be :(
    Is there someone who could give me a hint on what to try next?
    Thank you

    Hi Adam,
    Thanks for helping out.
    The web-app is set to Negotiate so that's ok. I've reset the web.config back to Windows, but without luck.
    I did see some strange log entries in the ULS logs:
    Token Cache: Could not find SPSite for 'http://spserver/_vti_bin/PowerPivot/redirector.svc/?DataSource=%2Fsites%2FAndreas%2FShared%2520Documents%2Ftestrapport_13012014.xlsx'. Stack: '   at Microsoft.SharePoint.SPSite.LookupSiteInfo(SPFarm farm, Boolean contextSite, Boolean swapSchemeForPathBasedSites, Uri& requestUri, Boolean& lookupRequiredContext, Guid& applicationId, Guid& contentDatabaseId, Guid& siteId, Guid& siteSubscriptionId, SPUrlZone& zone, String& serverRelativeUrl, Boolean& hostHeaderIsSiteName, Boolean& appWebRequest, String& appHostHeaderRedirectDomain, String& appSiteDomainPrefix, String& subscriptionName, String& appSiteDomainId, Uri& primaryUri)     at Microsoft.SharePoint.SPSite..ctor(SPFarm farm, Uri requestUri, Boolean contextSite, Boolean swapSchemeForPathBasedSites, SPUserToken userToken)     at Microsoft.SharePoint.IdentityModel.SPTokenCache.GetSubscriptionIdFromContext(String context)'.
    You mentioned the claims-to-windows token service. How do i check if it is configured correctly?
    Andreas

  • My iPhone gets a "web server proxy error" connecting to wifi @ home

    Ever since installing Comcast Xfinity with Motorola SB6121 and Apple Extreme 5th generation, my iPhone 4 gets a web server proxy error or similar message for any apps seeking to go online.  My iPod Touch 3rd generation works as does my MacBook Pro.
    I've reset the router, harangued Comcast (no help - it's your phone, sir), rebooted the iPhone, checked all my settings (VPN - what's that? it's not connected), Proxy in the VPN settings is set to off. The phone will show the signal and it will check Apple Mail but Safari, Google APP anything needing web access will either hang or give the proxy error message.  Apple Customer Care said call Comcast, Comcast said call Apple & I'm surprised to find little help on the web.
    Here's what I found to work on a MacForum sight from 2 years ago.
    1.
    Settings->WiFi->under choose a network, click the blue arrow (on the right of the network nameyou use)->DHCP
         *now check the IP address with the one on your iPod Touch or computer to see if they are in sequence
         *scroll down to HTTP Proxy & make sure it is off
         -> renew lease may work
    It was the making sure the IP address was correct/in sequence which I moved to the STATIC tab and input all the same information (use a screen shot to remember it - home button and on/off button at the same time, it will store in your pictures folder) and give that a shot.
    The problem appears to be where multiple machines or devices are using the same router. The iPhone 3GS assigned an IP Address in order of preference, therefore 192.175.1.1 and then 192.175.1.2 etc. The iPhone 4 will assign a strange IP address which the router will not accept. You therefore need to look at the other devices linked and see what number is next in the sequence. Then go to static on the top tab and type in the IP adress manually followed by the Subnet mask, router and DNS details. Once you have completed the info press the DHCP button and HTTP Proxy as off - this is important.
    2.
    This is how i fixed the wifi problem...(i used my mac)
    So basicly I created a new WiFi hotspot on my iMac, then I connected my iphone to it and it WORKS!
    1. open System Preferences (Apple -> System Preferences) and click Sharing.
    2. select Internet Sharing at the left side.
    3. Then check off AirPort.
    4. Then creat a newtwork name, and password
    5. VOILA! look at the Wifi connections on your iPhone and it should be there!
    (IF YOU HAD ANY PROBLEMS GO TO THIS LINK..
    http://maketecheasier.com/create-wif...s-x/2009/10/20
    THIS SITE SHOWS YOU HOW TO SET IT UP)
    3.
    reset Network
    Same problem, but none of the above worked for me. Finally went to Settings/ General/ Reset/ Reset network settings. Saw this in a different thread.
    Hope these help.
    Cheers,
    cs

    This has solved loads of people who have this issue and have used an alternate DNS setting.  Below are instructions for both iPhone OTA and on you Mac
    If you are getting the error message "Unable to check for update" when you try an OTA (over the air update)
    Change DNS Servers
    Settings -> Wi-Fi
    Click the blue arrow on your connected network
    Delete everything in DNS and replace it with 208.67.222.222, 208.67.220.220
    Try again
    If this works, you will probably want to remove the WiFi network using "Forget This Network" and then reconnect to it to get your original DNS servers back. Alternatively, make a note of the original DNS servers before deleting them and replace it after you are done.
    If you are getting the error message "Unable to check for update" when you try through iTunes
    On your Mac
    Choose Apple menu > System Preferences, and then click Network.
    Select the network connection service you want to use (such as Wi-Fi or Ethernet, unless you named it something else) from the list, and then click Advanced.
    Click DNS, and then click Add at the bottom of the DNS Servers list. Enter the IPv4 address for the DNS server.
    You can use OpenDNS
    208.67.222.222
    208.67.220.220
    or
    You can Google Public DNS if you want
    8.8.8.8
    8.8.4.4
    I have actually repointed my routers DNS so all my devices now point to OpenDNS servers

  • Provider-hosted Apps debug error: The remote server returned an error: (401) unauthorised

    Hi,
    Any help appreciated!!
    I'm getting this error: "The remote server returned an error: (401) unauthorised when I debug a provider-hosted app.  I get the error on this line:  
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    See code below
    I created a high trust development environment following the instructions provided here:
    http://msdn.microsoft.com/en-us/library/office/fp179901(v=office.15).aspx and
    http://msdn.microsoft.com/library/office/fp179923
    I created a provider-hosted app with the intent to:
    create a SharePoint list in the appweb
    Use self-signed certificate, tokenhepler.cs and sharepointcontext.cs to retrieve current user context and access on SharePoint.  (No changes were made to tokenhelper.cs and sharepointcontext.cs)
    retrieve list items from the SharePoint list in a button click event handler on a default.aspx of the remote web
    What happens:
    The app is deployed successfully to the Dev site
    The SharePoint feature is deployed and activated
    The default.aspx page of the remote web loads
    The error (see image) is returned on clicking of the button
    My environment is an on-premise SharePoint 2013 with AD and my dev box is standalone windows 8.1 running Visual Studio Professional 2013 Update 3.
    The code block below is a copy of the default.aspx code-behind
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using Microsoft.SharePoint.Client;
    using Microsoft.IdentityModel.S2S.Tokens;
    using System.Net;
    using System.IO;
    using System.Xml;
    using System.Data;
    using System.Xml.Linq;
    using System.Xml.XPath;
    namespace Idea.GeneratorWeb
    public partial class Default : System.Web.UI.Page
    SharePointContextToken contextToken;
    string accessToken;
    Uri sharepointUrl;
    protected void Page_PreInit(object sender, EventArgs e)
    Uri redirectUrl;
    switch (SharePointContextProvider.CheckRedirectionStatus(Context, out redirectUrl))
    case RedirectionStatus.Ok:
    return;
    case RedirectionStatus.ShouldRedirect:
    Response.Redirect(redirectUrl.AbsoluteUri, endResponse: true);
    break;
    case RedirectionStatus.CanNotRedirect:
    Response.Write("An error occurred while processing your request.");
    Response.End();
    break;
    protected void Page_Load(object sender, EventArgs e)
    //// The following code gets the client context and Title property by using TokenHelper.
    //// To access other properties, the app may need to request permissions on the host web.
    var spContext = SharePointContextProvider.Current.GetSharePointContext(Context);
    //var spContext = new ClientContext("MySPDevInstance");
    //spContext.Credentials = new NetworkCredential("username", "password");
    //using (var clientContext = spContext.CreateUserClientContextForSPHost())
    // clientContext.Load(clientContext.Web, web => web.Title);
    // clientContext.ExecuteQuery();
    // Response.Write(clientContext.Web.Title);
    string contextTokenString = TokenHelper.GetContextTokenFromRequest(Request);
    if (contextTokenString != null)
    // Get context token
    contextToken = TokenHelper.ReadAndValidateContextToken(contextTokenString, Request.Url.Authority);
    // Get access token
    sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
    accessToken = TokenHelper.GetAccessToken(contextToken, sharepointUrl.Authority).AccessToken;
    // Pass the access token to the button event handler.
    Button1.CommandArgument = accessToken;
    protected void Button1_Click(object sender, EventArgs e)
    // Retrieve the access token that the Page_Load method stored
    // in the button's command argument.
    string accessToken = ((Button)sender).CommandArgument;
    if (IsPostBack)
    sharepointUrl = new Uri(Request.QueryString["SPAppWebUrl"]);
    // REST/OData URL section
    string oDataUrl = "/_api/Web/lists/getbytitle('Diagrams In Idea Generator')/items?$select=Title,Diagram,SharingStatus";
    // HTTP Request and Response construction section
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + oDataUrl);
    request.Method = "GET";
    request.Accept = "application/atom+xml";
    request.ContentType = "application/atom+xml;type=entry";
    request.Headers.Add("Authorization", "Bearer " + accessToken);
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    // Response markup parsing section
    XDocument oDataXML = XDocument.Load(response.GetResponseStream(), LoadOptions.None);
    XNamespace atom = "http://www.w3.org/2005/Atom";
    XNamespace d = "http://schemas.microsoft.com/ado/2007/08/dataservices";
    XNamespace m = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
    List<XElement> entries = oDataXML.Descendants(atom + "entry")
    .Elements(atom + "content")
    .Elements(m + "properties")
    .ToList();
    var entryFieldValues = from entry in entries
    select new
    Character = entry.Element(d + "Title").Value,
    Actor = entry.Element(d + "Diagram").Value,
    CastingStatus = entry.Element(d + "SharingStatus").Value
    GridView1.DataSource = entryFieldValues;
    GridView1.DataBind();
    Any ideas what I might be doing wrong

    Hi ,
    Use the below code
    Public string GetAccessToken(){
    string sharePointSiteUrlHost =  Page.Request["SPHostUrl"].Tostring();
    string AccessToken = tokenHelper.GetS2SAccessTokenWithWindowsIdentity(sharePointSiteUrlHost, Request.LogonUserIdentity);
    return accessToken;
    Than initialize the ClientCOntext with the below Method
     private static ClientContext GetClientContextWithAccessTokenString(string targetUrl, object accessToken)
                ClientContext clientContext = new ClientContext(targetUrl);
                clientContext.AuthenticationMode = ClientAuthenticationMode.Anonymous;
                clientContext.FormDigestHandlingEnabled = false;
                clientContext.ExecutingWebRequest +=
                    delegate(object oSender, WebRequestEventArgs webRequestEventArgs)
                        webRequestEventArgs.WebRequestExecutor.WebRequest.UserAgent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)";
                        webRequestEventArgs.WebRequestExecutor.RequestHeaders["Authorization"] =
                            "Bearer " + accessToken;
                return clientContext;
    use this clientCOntext and it will work.
    Do not use
    SharePointContextProvider
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • The remote server returned an error: (401) Unauthorized

    We are attempting to upload a file to SharePoint on Office 365 and get the following error:
    The remote server returned an error: (401) Unauthorized.
    We also tried using NetworkCredentials and that got the following error: The remote server returned an error: (404) Not Found.
    The code is shown below.
    Any idea on to fix this error?
    public
    void uploadDocument(string
    siteurl, string username,
    SecureString securepassword,
    string domain,
    string filestreamPath =
    "NewDocument.docx",
    string serverRelativeUrl =
    "/Shared Documents/NewDocument.docx")
    ClientContext context =
    new
    ClientContext(siteurl);
            //context.Credentials = new NetworkCredential(username, securepassword, domain);
    context.Credentials = new
    SharePointOnlineCredentials(username, securepassword);
    using (FileStream
    fileStream =
    new
    FileStream(filestreamPath,
    FileMode.Open))
    ClientOM.File.SaveBinaryDirect(context,
    serverRelativeUrl, fileStream, true);

    Yes, it has access.  In fact, it has no problem getting the site properties using the code below.  It is just when I am uploading a file that the error occurs.
    public Web getProperties(string
    siteurl, string username,
    SecureString securepassword)
    Web web = null;
    // Starting with ClientContext, the constructor requires a URL to the
    // server running SharePoint.
    ClientContext context = new ClientContext(siteurl);
    // The SharePoint web at the URL.
    web = context.Web;
    // We want to retrieve the web's properties.
    context.Load(web);
    // Execute the query to the server.
    context.Credentials = new SharePointOnlineCredentials(username, securepassword);
    context.ExecuteQuery();
    return web;

  • Proxy Error while consuming backend web service

    Hello,
    I try to consume erp backend web services (generated on existing rfcs) with a web dynpro (java) application and get the following error:
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (502) Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL).  ). The requested URL was:"http://anyExampleUrl"
    The called backend service and the portal server reside in the network so no access through the ISA server is required. Consuming the same services by .NET applications works fine.
    Do you have any hints?
    Cheers, Dennis
    Edited by: Dennis Isaak on Sep 23, 2009 2:18 PM

    Hello there,
    Check the same webservice is working fine with a SOAP UI, especially the request and response are fine. Then try with the application.
    Regards,
    Vivek Nidhi.

  • Proxy Error When Invoking Web Service

    Hi all,
    i created a web service from a session bean,
    when i invoke the web service from my web browser it works great,
    but when i try to invoke it from a bpel process, i get the following error in the Invoke Activity:
    when invoking endpointAddress 'http://10.0.1.159:8989/EJB-Application2-Model-context-root/updatePayloadServiceSoapHttpPort', (502)Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL). )
    any idea what to do to resolve this issue?
    thanks

    It seems that your proxy server refuses serve requests for your private network (10.0.x.x).
    Try to turn off proxy server in your BPEL. In devel server turn off proxy (or add this address to exceptions) in <ORAHOME>\integration\orabpel\bin\obsetenv.bat
    and if you are using full AS, go to EM a change parameters for these server properties:
    -Dhttp.proxySet=true
    -Dhttp.proxyHost=yourproxy
    -Dhttp.proxyPort=proxyport
    -Dhttp.nonProxyHosts=10.0.1.159|and rest of your exceptions
    Peter

  • Proxy error when running reports in Infoview

    We are running XI 3.1 sp4 and are getting a Proxy error on some reports when running in PDF mode. Any ideas?
    Here's the error:
    Proxy Error
    The proxy server received an invalid response from an upstream server.
    The proxy server could not handle the request GET /AnalyticalReporting/ViewAsPDF/Disposition Analysis Report.pdf.
    Reason: Error reading from remote server
    Apache Server at preprod.nalts.com Port 443

    Hi Sylvia,
    It seems that the reverse proxy you are using: Apache could have problems with the sessions of the users. I have seen the same behaviour with other Load Balancers. If you have different WAS in the backend, make sure they stay with the same WAS (session affinity).
    Regards,
    Julian

  • Error 401 while sending SOAP Request to XI

    hi friend ..
    i am getting Error 401 while sending SOAP Request to XI..
    can u suggest me where may be the error?
    thanks..

    Hi,
    Refer these threads:
    Testing XI SOAP scenario via XMLSpy
    Re: SOAP Sender ADAPTER 401 No Authorisation
    Re: XI Web Service - Code: (401) Unauthorized.
    Try soap client https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9b16d790-0201-0010-4e9b-baa5f42830d8
    Regards
    Suraj

Maybe you are looking for

  • PSE 7 - ACR 5.5 - Can open Raw files but can't see in Organiser

    hi, I've just installed PSE 7 on my new Windows 7 (64 bit) Dell and have replaced the ACR with 5.5 and can open all images, including my CR2 files from my Canon 50d.  Although I can edit them with ACR from PSE the thumbnails are all just greyed out i

  • Having a problem downloading Adobe Reader to my computer.

    I don't understand why I cannot simply download Adobe Reader X to my computer from Firefox. It says I am missing a plugin, then when it searches it says its not available, takes me to download something and then a ZIP file appears. I don't even know

  • PSE 7 Organizer glitch

    I think the Organizer is easily corrupted.  In my situation it lost all the files in a Key Word Tag when I attempted to add them to another Key Word Tag.  I was able to go back to my Public Pictures folder and retrieve them but Organzier still will n

  • Why is my iphoto not working

    Can you pleas help me my iphoto is not showing up it appears on the dock my its not there in the applications

  • HT204380 is there a charge for facetime

    is there a charge for facetime