Access Exchange Service From SharePoint 2013 Custom Web part getting The request failed with HTTP status 401: Unauthorized.

I want to Fill a drop down with Outlook Meeting of Current log-in user in SharePoint 2013 web part for default credentials I am using the following code
 ExchangeServiceBinding binding = new ExchangeServiceBinding();
            ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, sslPolicyErrors) => true;
            binding.RequestServerVersionValue = new RequestServerVersion();
            binding.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2010_SP2;
            binding.PreAuthenticate = true;
            binding.UseDefaultCredentials = true;
            binding.Credentials = CredentialCache.DefaultCredentials ; 
            string server = "https://*********/ews/Exchange.asmx";
            binding.Url = server;
I Am Getting the Error "The request failed with HTTP status 401: Unauthorized."
but when I Replace  the line  
binding.Credentials = CredentialCache.DefaultCredentials ; 
with 
 binding.Credentials = new NetworkCredential(userName, password, domain);
Its run fine.  Is there any way I could able to use default credential.
  

Hi,
As this question is more relate to Exchange development, I suggest you post it to the corresponding forum, you will get more help and confirmed answers from there.
http://social.msdn.microsoft.com/Forums/office/en-US/home?category=exchangeserver
Best regards
Patrick Liang
TechNet Community Support

Similar Messages

  • Service Clients failing with "The request failed with HTTP status 401: Unauthorized"

    Hello,
    We have implemented a solution using the SSRS web service clients as produced by the WSDLs.  We have deployed the application on one server, and via the code we are calling the SSRS on another server (i.e., not using ReportViewer, etc.).  We do
    know that the user signed in has permissions since from the same staging server the Report Manager and Reports can both be accessed and viewed.  However, it's only when we run the application and attempt to execute a report on the remote SSRS server that
    we get the following error:
    The request failed with HTTP status 401: Unauthorized. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
    methodName, Object[] parameters) at AMC.AssetTracker.Reporting.ReportExecution.ReportExecutionService.LoadReport(String Report, String HistoryID) at AMC.AssetTracker.Reporting.Report.GetReportByteArray() at AMC.AssetTracker.Reporting.Report.get_ReportStream()
    at AMC.AssetTracker.Reporting.Report.get_GetWebUIDisplay() at AMC.AssetTracker.UserControls.AssetTrackerMain.btnGenerate_Click(Object sender, EventArgs e)
    The credentials we have tried are the DefaultCredentials.  One question I have is how do you use custom credentials if neither the DefaultCredentials or the DefaultNetworkCredentials work?  Also, this service call does have to go through an ISA
    server before reaching the SSRS server.
    Any ideas?
    Thanks.

    It sounds like Kerberos authentication is needed in your situation since it's not on the same box.
    There is a one-hop limit with NTLM authentication.
    For more info please see the link below:
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/452e9627-cd8e-4709-bdd0-fbafcf9fd719
    Hope this helps!
    Thanks, Michael Mei

  • SQL Server Reporting Service 2008 R2 - The request failed with HTTP status 401: Unauthorized.

    I got the error "The request failed with HTTP status 401: Unauthorized." when I call the Reporting Service Web Service.
    The code is very simple:
    // Initialise the reporting service Web Service
    this.RSWebService = new ReportingService2010();
    // Pass windos authentication credentials to Web Service
    this.RSWebService.Credentials = System.Net.CredentialCache.DefaultCredentials;
    // List children
    List<CatalogItem> reports = this.RSWebService.ListChildren(folder, false).ToList();
    The SQL Server is installed on a different machine (say server A) from the Web server (say server B). We are using Windows Server 2003.
    The code work fine for all the scenario below:
    i) Run locally (XP) to call the web service on the sql server
    ii) Provide the Network Credentials with the username, password, and domain when calling the web service
    iii) If the web server and sql server is using same server (i.e. not distributed)
    I'm using windows authentication and impersonation. Any idea?

    Hi Raymond,
    If I understand correctly, the issue only happens in the environment that the web server is different with the SQL Server Reporting Services server. This means the web server is a remote server of the Report Server. Windows Integrated authentication is used
    in this case. When running the web page, the 401 error occurs.
    If so, it is actually a double hop issue. The double-hop problem will usually only be an issue to those of you who write some sort of web-based code (a web application or web service) that uses impersonation.
    To fix the issue, we can configure kerberos authentication for the web application and the SQL Server Reporting Services.
    Below is a great article that has delivered many solutions to fix the issue you met:
    http://odetocode.com/articles/216.aspx
    Additionally, you can read the following article to know more about double-hop:
    http://blogs.technet.com/b/askds/archive/2008/06/13/understanding-kerberos-double-hop.aspx
    http://blogs.msdn.com/b/knowledgecast/archive/2007/01/31/the-double-hop-problem.aspx
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT
    Thanks Jin. I believe this is the cause of the problem as well.
    I tried to register the SPN but unfortunately it still doesn't work. I'm not sure whether I'm using the correct SPN name.
    I have 3 reporting server instance on the SQL box. So the Web Service URL is like
    http://Server:80/VirtualDirectoryDev,
    http://Server:80/VirtualDirectoryTest  and
    http://Server:80/VirtualDirectoryStaging .
    What's the SPN I need to register?
    I tried
    Setspn -a http/Server:80/VirtualDirectoryDev domain\account
    and
    Setspn -a http/aerver:80 domain\account.
    But both of them are not working :(

  • SMS_WSUS_CONFIGURATION_MANAGER - MessageID 6600 - The request failed with HTTP status 503: Service Unavailable

    Hi all,
    knowning that there are already a lot of posts concerning above message, I have to write an additional one as I could not find a solution on the web yet.
    Situation:
    Windows Server 2008 forest including empty root and two child domains, one child domain does have SCCM SP1 (central primary site WND) installed on W2k8 x64 machine including WSUS 3.0 SP1 => everything is working fine.
    Second child domain also contains a SCCM SP1 server  (primary site HUN) running on W2k8 x64 and is defined as child site of central site WND => everything is working fine too - except Software Updates.
    WSUS 3.0 SP1 installed on both SCCM servers by creating additional web site (not using "defautl web site") and configured ports 8530 and 8531 (SSL not used!). No proxy necessary/used. All WSUS 3.0 requirements for W2k8 are installed (IIS roles)
    Error:
    SMS_WSUS_CONFIGURATION_MANAGER - MessageID 6600:
    SMS WSUS Configuration Manager failed to configure upstream server settings on WSUS Server "xxxx0003".
    Possible cause: WSUS Server version 3.0 SP1 and above is not installed or cannot be contacted.
    Solution: Verify that the WSUS Server version 3.0 SP1 or greater is installed. Verify that the IIS ports configured in SMS are same as those configured on the WSUS IIS website.
    wsusutil checkhealth =>OK
    downloading updates from WSUS at central site (SUSDB and WSUS folder equal in size) =>OK
    wsus admin console able to connect and configuration possible => OK
    IIS ports configured within SMS are equal to those configured for WSUS website
    SCCM config (using Configuration Manager Console) does look correct - ConfigMgr Software Update Point role properties and Software Update Point Component properties
    wcm.log does report an error: (SCCM Log files at the end.)
    "The request failed with HTTP status 503: Service Unavailable"
    IIS log files of both websites (default web site and WSUS Administration website) do not show any errors.
    Questions:
    What else should I look at? (registyr, SUSDB content,..)
    What exactly does happen during the attempt to configure the upstream server by the SMS_WSUS_Configuration_Manager component? I guess a SMS process tries to contact a webservice - would it be possible to debug in more detail ?
    And finally - Who does know the solution ?
    wcm.log:
    Found WSUS Admin dll of assembly version Microsoft.UpdateServices.Administration, Version=3.0.6000.273, Major Version = 0x30000, Minor Version = 0x17700111 SMS_WSUS_CONFIGURATION_MANAGER 16.07.2008 12:49:47 4468 (0x1174)
    Found WSUS Admin dll of assembly version Microsoft.UpdateServices.Administration, Version=3.1.6001.1, Major Version = 0x30001, Minor Version = 0x17710001 SMS_WSUS_CONFIGURATION_MANAGER 16.07.2008 12:49:47 4468 (0x1174)
    The installed WSUS build has the valid and supported WSUS Administration DLL assembly version (3.1.6001.65) SMS_WSUS_CONFIGURATION_MANAGER 16.07.2008 12:49:47 4468 (0x1174)
    System.Net.WebException: The request failed with HTTP status 503: Service Unavailable.~~   at Microsoft.UpdateServices.Administration.AdminProxy.CreateUpdateServer(Object[] args)~~   at Microsoft.UpdateServices.Administration.AdminProxy.GetUpdateServer(String serverName, Boolean useSecureConnection, Int32 portNumber)~~   at Microsoft.SystemsManagementServer.WSUS.WSUSServer.ConnectToWSUSServer(String ServerName, Boolean UseSSL, Int32 PortNumber) SMS_WSUS_CONFIGURATION_MANAGER 16.07.2008 12:49:47 4468 (0x1174)
    Remote configuration failed on WSUS Server. SMS_WSUS_CONFIGURATION_MANAGER 16.07.2008 12:49:47 4468 (0x1174)
    STATMSG: ID=6600 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_CONFIGURATION_MANAGER" SYS=xxxx0003 SITE=HUN PID=2424 TID=4468 GMTDATE=Mi Jul 16 10:49:47.758 2008 ISTR0="xxxx0003" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_WSUS_CONFIGURATION_MANAGER 16.07.2008 12:49:47 4468 (0x1174)
    Waiting for changes for 59 minutes SMS_WSUS_CONFIGURATION_MANAGER 16.07.2008 12:49:47 4468 (0x1174)
    wsusctrl.log (looks fine to me - is able to connect to local WSUS !):
    SMS_EXECUTIVE started SMS_WSUS_CONTROL_MANAGER as thread ID 6156 (0x180C). SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 2732 (0x0AAC)
    This is a WSUS Role as WSUS registry key exists. SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Found WSUS Admin dll of assembly version Microsoft.UpdateServices.Administration, Version=3.0.6000.273, Major Version = 0x30000, Minor Version = 0x17700111 SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Found WSUS Admin dll of assembly version Microsoft.UpdateServices.Administration, Version=3.1.6001.1, Major Version = 0x30001, Minor Version = 0x17710001 SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    The installed WSUS build has the valid and supported WSUS Administration DLL assembly version (3.1.6001.65) SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Successfully connected to local WSUS server SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Local WSUS Server Proxy settings are correctly configured as Proxy Name  and Proxy Port 80 SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Waiting for changes for 0 minutes SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Timed Out... SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Found WSUS Admin dll of assembly version Microsoft.UpdateServices.Administration, Version=3.0.6000.273, Major Version = 0x30000, Minor Version = 0x17700111 SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Found WSUS Admin dll of assembly version Microsoft.UpdateServices.Administration, Version=3.1.6001.1, Major Version = 0x30001, Minor Version = 0x17710001 SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    The installed WSUS build has the valid and supported WSUS Administration DLL assembly version (3.1.6001.65) SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Successfully connected to local WSUS server SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Local WSUS Server Proxy settings are correctly configured as Proxy Name  and Proxy Port 80 SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Successfully connected to local WSUS server SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    There are no unhealthy WSUS Server components on WSUS Server xxxx0003 SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:01 6156 (0x180C)
    Successfully checked database connection on WSUS server xxxx0003 SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:02 6156 (0x180C)
    Waiting for changes for 57 minutes SMS_WSUS_CONTROL_MANAGER 16.07.2008 12:04:02 6156 (0x180C)
    wsyncmgr.log (as a result of being not able to configure upstream server I guess):
    STATMSG: ID=6701 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_SYNC_MANAGER" SYS=xxxx0003 SITE=HUN PID=2424 TID=4476 GMTDATE=Mi Jul 16 10:03:51.481 2008 ISTR0="" ISTR1="" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_WSUS_SYNC_MANAGER 16.07.2008 12:03:51 4476 (0x117C)
    Sync failed: WSUS server not configured. Source: CWSyncMgr:oSync SMS_WSUS_SYNC_MANAGER 16.07.2008 12:08:51 4476 (0x117C)
    STATMSG: ID=6703 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_SYNC_MANAGER" SYS=xxxx0003 SITE=HUN PID=2424 TID=4476 GMTDATE=Mi Jul 16 10:08:51.636 2008 ISTR0="CWSyncMgr:oSync" ISTR1="WSUS server not configured" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0 SMS_WSUS_SYNC_MANAGER 16.07.2008 12:08:51 4476 (0x117C)

    I just experienced the exact same scenario.  After much digging I found that csakg6so posted a fix at
    Windoows-Noob
    Run Internet Explorer as the SYSTEM account (psexec -s -d -i cmd.exe & C:\Program Files\Internet Explorrer\iexplore.exe)
    Go to internet options
    Go to conections
    Go to LAN settings
    Uncheck all boxes
    The original post said to reboot, but that wasn't necessary for me.
    After initiating a manual Software Update sync the WCM.log and WSyncMgr.log errors do not return and new updates are synchronized.

  • The request failed with HTTP status 503: Service Unavailable.

    hello all,
    I have a SQL server 2008 r2 installed . and i have configured ssrs successfully in it.  
    have not prompted any error while configuring but when click to view web service URl and Report manager URL
    it is erroring .. 
    Serched so far on web but not finds solution.
    Dilip Patil..

    Hi Dilip,
    According to your description, the 503 error is thrown out when you access the report server.
    In your scenario, please verify that the SSRS service is running. You can check it’s status in SQL Server Configuration Manager or Servcies.msc. Then you should review the HTTP.SYS log file for information about what is causing the error. For more information,
    please refer to this article:
    HTTP 503 Service is Unavailable.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Access Exchange 2013 Calendar from Sharepoint 2013 OWA Web Part

    Hi,
    For the moment I have five User
    Mailboxes on Exchange 2010 whose
    calendars that appear in a SharePoint
    2013 using Outlook Web App Web Part.
    In Exchange 2010, IIS has created a new
    WebSite with OWA, ECP
    and some more Virtual Directories,
    where OWA is Windows Integrated
    and Basic Auth. enabled (not
    FBA).
    This makes so users do not have additional
    logins in SharePoint when they look at
    the calendars.
    I now want to move these mailboxes to an Exchange
    2013. I must then create a new WebSite
    with Win.Integrated etc, but have
    heard it is unsupported. Is there
    any other way to solve this?
    Best Regards

    Hello,
    Sorry for delayed response.
    I recommend you check the Outlook Hotfix and version number again via Control Panel.
    Please check the version number via outlook 2010 "File".
    If the outlook version number is 14.0.7113.5000, please try my above suggestion to specify the SSL certificate principal name. Because XP system is not always to look for the next lines on a SAN certificate.
    If you have any feedback on our support, please click
    here
    Cara Chen
    TechNet Community Support

  • Configuring Reporting Service Add-in for sharepoint - HTTP status 401: Unauthorized.

    I have the following setup
    Machine 1
    WSS 3.0
    Installed Reporting Service Add-in
    Machine 2
    Reporting Service
    Sharepoint Object Model
    SQL Server
    Sharepoint and Report Server DB
    I have congigured Reporting Service for Sharepoint Integrated Mode adn Created new Reprot Server DB
    Sahre Point Integration is Green and verified link
    In Sharepoint Central Administration
    Manage Reporting Service Integratio i have selected the URL and "Trusted Account" as my web applications use "Windows Integration - NTLM".
    All services, DB access everything running under one domain user account.
    I am logged into sharepoint with same account. When clieck on set server defaults i get following error
    An unexpected error occurred while connecting to the report server. Verify that the report server is available and configured for SharePoint integrated mode. --> Server was unable to process request. ---> The request failed with HTTP status 401: Unauthorized.
    Same error when i try to add a report to a sharepoint webapplication
    The domain account is part of "Farm Administration", "site colletion administrato" and local administrator also on both servers.
    Can someone let me know how to fix this.

    jpmartop,
    were you able to get this to work?
    We have a 4 server topolgy.
    moss
    wfe
    sql
    ssrs
    and are using Kerberos.
    I've installed the wfe on the ssrs and am using a domain user for services, web and pools.
    I get all green dots in the ssrs config.
    in Central Admin, Grant access seems to work with the domain user, but set defaults gives me:
    HTTP status 401: Unauthorized.
    What should my web security on the default web site and reports and reports server look like? Integrated Security
    Should the SSRS WFE entry in MOSS have Web application service turned on?
    I've checked that my SPNs are good.I've installed sql server sp2 and a did windows update on all servers..
    Could it be the user I log into the Central Admin with.. it's got server administrator and Farm administrator?
    Thanks for any help or information.

  • Error when accessing BHOLD Self Service (HTTP status 401: Unauthorized)

    Hi,
    I have started looking at the BHOLD suite and installed it on a server running FIM2010R2. The installation of the BHOLD suite seemed to be completed without problems and the BHOLD service are up and running under the B1User account and all BHOLD
    products can be started with my Administrator user.
    However when I click on the link "BHOLD Self Service" in the FIM portal, the silverlight plugin starts and after a short while shows the following error message:
    "UserViewModel.GetAuthenticatedUserCompleted 'http://IMCDBS301A:5151/BHOLD/RoleExchangePoint/BHOLDRoleExchangePoint.svc'
    System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
    Arguments: NotFound
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See
    http://go.microsoft.com/fwlink/?linkid=106663&Version=4.1.10329.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer ---> System.Net.WebException: [HttpWebRequest_WebException_RemoteServer]
    Arguments: NotFound
    Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See
    http://go.microsoft.com/fwlink/?linkid=106663&Version=4.1.10329.0&File=System.Windows.dll&Key=HttpWebRequest_WebException_RemoteServer
       at System.Net.Browser.BrowserHttpWebRequest.InternalEndGetResponse(IAsyncResult asyncResult)
       at System.Net.Browser.BrowserHttpWebRequest.<>c__DisplayClass5.<EndGetResponse>b__4(Object sendState)
       at System.Net.Browser.AsyncHelper.<>c__DisplayClass4.<BeginOnUI>b__1(Object sendState)
       --- End of inner exception stack trace ---
       at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
       at System.Net.Browser.BrowserHttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
       at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
    When I look in Application log (event log) I see:
    Error in function call GetInfo fn:objectsbyattributep1:IDMDEMO\Administratorp2:3p3:25 Exception The request failed with
    HTTP status 401: Unauthorized. StackTrace at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
    methodName, Object[] parameters) at BholdSvrProxy.BHOLDsvc.B1ScriptService.GetInfo(String functionName, String parameter1, String parameter2, String parameter3) in d:\_Bld\10\16\Sources\main\src\samples\BHOLD\2011 R2\Common\BholdSvrProxy\Web References\BHOLDsvc\Reference.cs:line
    700 at BholdSvrProxy.BHOLDproxy.GetInfo(String fn, String p1, String p2, String p3) in d:\_Bld\10\16\Sources\main\src\samples\BHOLD\2011 R2\Common\BholdSvrProxy\BHOLDproxy.cs:line 115
    Note that IDMDEMO\Administrator is my FIM and Domain administrator that I use in the portal.
    I have ensured that the webhome containing 'http://IMCDBS301A:5151/BHOLD/RoleExchangePoint/BHOLDRoleExchangePoint.svc' has windows authentication enabled and that the user B1User is member of the BHOLDApplicationGroup and ISS_IUSRS groups.
    I would really appreciate if someone is able to point me in the right direction so I get the BHOLD Self Service working.
    thanks and best regards
    Søren Aamand

    Could it be that the spn of the servername is already registered by the service account of FIM? A workaround that worked in the past was to
    remove the spn from the fim service account and adding it to the b1user service account.
    I've also seen it happening that the IPv6 hostname was different from the IPv4 hostname which causes the
    HTTP status 401: Unauthorized issue.
    I hope this helps.
    Regards,
    Remy
    Remy de Vries - BHOLD Expert - Technical Consultant - Elephant Security

  • 401 Unauthorized Error When calling a SharePoint REST web service from SharePoint 2013 Workflow

    We have our Workflow Manger installed on the same server as our SharePoint 2013 WFE development environment. When creating a SharePoint 2013 Workflow all Calls to a SharePoint 2013 REST web service results in a 401 Unauthorized error.
    As an example I created a simple workflow that should return a JSON result. The REST Url returns the results in the browser without error.
    Set Variable:webServiceUrl to https://<hostnamedsitecollection>/_vti_bin/client.svc/web/lists/getbytitle('ISR%20Approvers')/Items?$select=Title&$filter=Title%20eq%20%27General%27
    then Build{...} Dictionary (Output to Variable:requestHeaders)
    then Call [%Variable:webServiceUrl%] HTTP web service with request (ResponseContent to Variable:responseContent |ResponseHeaders to responseHeaders | ResponseStatusCode to Variable:responseCode)
    The RequestHeader is set to the requestHeaders variable though the web service call properties
    then Log Variable:responseCode to the workflow history list
    After manually running the workflow in SharePoint on a list item in the ISR Approvers list it Logs "Unauthorized" in the Workflow History Log. It does this with every SharePoint REST web service call that I have tried through the workflow.
    It doesn't have anything to do with the Workflow Manger being installed on the same machine as the SharePoint WFE does it?
    Thank You for any insight

    Hi,
    According to your post, my understanding is that you had 401 Unauthorized Error when calling a SharePoint REST web service from SharePoint 2013 Workflow.
    Please make sure you use the ‘Call HTTP Web Service’ correctly.
    You can enter the URL into the brower to check whether it is correctly.
    You need to
    create the Request header requestHeaders
    using a Dictionary:
    Accept : application/json;odata=verbose
    Content-Type : application/json;odata=verbose
    To associate the
    requestHeaders variable, select the Call action
    property, set the RequestHeaders property to
    requestHeaders.
    Please refer to the following articles:
    Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013
    Calling the SharePoint 2013 Rest API from a SharePoint Designer
    Workflow
    In addtion, you need to make sure you install the workflow manager correctly.
    More information:
    Install and configure workflow for SharePoint Server 2013
    Known Issues in Workflow Manager 1.0
    Troubleshooting Workflow Manager 1.0 Management and Execution
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SharePoint 2013 Visual Web Part Custom Property.

     How to create drop down control to display existing libraries in current web site using a custom web part property?i want to show this control on web part configuration.then users can select the relevant library without typing.(SharePoint
    2013 Visual Web Part).
    Thanks 

    This has been answered for SP 2010 at SP:SO. Things wont change much in SP 2013 as far as VWP is concerned. Basically you will need to implement Custom Web Part Editor.
    http://stackoverflow.com/questions/6946153/edit-webpart-properties-with-dynamic-dropdownlist
    Here is an example.
    http://sptechbytes.blogspot.ca/2013/02/sharepoint-2010-creating-custom-editor.html
    Amit

  • Sharepoint 2013 - InfoPath Web Part Errors

    There may be a better way to accomplish what I'm doing so I will explain the idea first.  I'm putting together a PMO Sharepoint Site which contains drill down project information from 4 groups to over 500 projects.  I would like to display the
    data in a more dynamic way than just in lists so I am attempting to use an InfoPath form to display dynamic data in a more friendly text view.
    After creating a form view in InfoPath 2010, I loaded it into Sharepoint 2013.  I went through "Connections" and selected "Get Form From" and chose a web part list.  After choosing the view and saving I receive this error.  Sometimes
    it saves correctly but when I go back to edit the web part this error appears.

    This has been answered for SP 2010 at SP:SO. Things wont change much in SP 2013 as far as VWP is concerned. Basically you will need to implement Custom Web Part Editor.
    http://stackoverflow.com/questions/6946153/edit-webpart-properties-with-dynamic-dropdownlist
    Here is an example.
    http://sptechbytes.blogspot.ca/2013/02/sharepoint-2010-creating-custom-editor.html
    Amit

  • 2013 Custom Web Parts in Page Layouts not showing for users

    Custom Web Parts in Page Layouts not showing for users
    I have created a master page in the root site collection for a subsite I am developing. I created content types and custom page layouts for the pages within the subsite.
    I used the snippet tool in the design manager to create web parts and page field markup which I copied into the custom layout HTML pages in the root site collection. For instance I have an image viewer web part that I place there to serve as a section title.
    The problem is that I can see all these customer layout page parts no problem but my users cannot. This leads me to believe its permissions, I am site owner of both the subsite and root site collection.
    The users that cannot see the web parts are site members of the site and restricted read users on the root site collection (where the layouts are stored).
    What gives I'm finding it hard to understand why a snipet generated web part wouldn't show in all pages created from that layout page.
    Any help would be appreciated, Havent found anything on this issue online. weird.

    It is a permission issue indeed. Fix is simple, make sure you check out the page layout page, then check it back in as published version.
    John Architect

  • Internet Explorer 11 and SharePoint 2013 Standard - Web Parts and Calendar Don't Display/Render Correctly

    Hello everyone.
    I am currently running a fully patched (Service Pack 1) version of SharePoint Standard 2013 On Premises. I am having 2 problems that are reproducible on both Windows 7 and Windows 8.1 on multiple computers when running Internet Explorer 11 (fully updated
    through Windows Update). The issues are "fixed" when running compatibility view in the browser or using Chrome/Firefox.
    The issues are as follows:
    Issue 1 Calendar view does not display correctly
    Issue 2 Web parts do not display correctly when editing a page.
    Picture of calendar
    Webpart "edit menu dropdown" in upper right corner is replaced with 2 up arrows. Clicking minimizes web part.
    Is there any word on a fix for this? Is this something only I am experiencing? Is there an issue with my SharePoint server? I would hate to have to uninstall IE11 from 300 machines and install IE10.
    Thanks

    There are a few critical issues
    Pages will not enter edit mode. You will click Settings > Edit Page and the page will simply refresh but will not change over into edit mode. Seems to only affect pages with
    Web Part Zones.
    Calendar will not enter edit mode.
    Web Part Properties cannot be modified. If you are able to get into edit mode (you can edit wiki pages) you will not be able to modify existing Web Parts by using the Web Part
    Properties panel. Instead you will see a really weird collapse button that looks like it is coming from the mobile view but you cannot modify web part properties… even through the ribbon controls.
    I cannot use the import spreadsheet app, the error says it is not supported with the current browser.
    When I hoover over a “people” field I cannot see their information.
    I had all these capabilities with IE9
    This suggestion I found online appears to fix issues 1-3.
    http://windowsitpro.com/windows-7/fixing-most-not-all-ie11-compatibility-problems
    To run in compatibility mode
    Press ALT + T when viewing your      SharePoint page
    Click Compatibility View Settings      in the menu that appears
    Click Add to add the current      SharePoint site to your list of compatibility view pages
    Click Close

  • How to Add a User Control to a SharePoint 2013 Visual Web Part ?

    Hi,
    1.I have created SharePoint 2013 Farm Solution through VS 2012.
    2.Added visual Web part
    3.Created a User control (Farm Solution ) and added some Control From tool Box.
    4.Drag and drop user control from solution explorer to visual web part.
    so its  Register tag and with prefix tag user controls automatically added on visual web part source. when i try to build solution it throws Exception:
    Exception :The name 'InitializeControl' does not exist in the current context.
    Please Provide solution after try/or proper workaround.
    Thanks,
    Siddheshwar

    Site name=http://sitename:22222/
    Visual Web part:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Src="~/_controltemplates/15/SP2013Controls/SPControls.ascx" TagPrefix="uc1" TagName="SPControls" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SPWebpart.ascx.cs" Inherits="SP2013Controls.SPWebpart.SPWebpart" %>
    <uc1:SPControls runat="server" id="SPControls" />
    User Control Code:
    <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
    <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
    <%@ Import Namespace="Microsoft.SharePoint" %>
    <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SPControls.ascx.cs" Inherits="SP2013Controls.ControlTemplates.SP2013Controls.SPControls" %>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" Text="Button" />
    Deployement Location:{SharePointRoot}\Template\ControlTemplates\SP2013Controls\
    After User controls added on webpart .g.cs file getting blank.
    After 1st Build:
    'InitializeControl' does not exist in the current context
    The file '/_controltemplates/15/SP2013Controls/SPControls.ascx' does not exist.
    after 2nd Build Try:
    'InitializeControl' does not exist in the current context

  • Send Email to Anonymous user thoruhg Sharepoint online custom web part

    Hi All
    Can you please suggest me how we can send Email to anonymous user?
    I have create the custom contact us web part as a sandbox solution (For SharePoint Online public facing site) with following fields
    Name: txtName
    Email: txtEmail
    Phone No: txtPhoneNo
    Company Name: txtCompany
    Message: txtMessage
    Now I want to send the Email (txtEmail) to anonymous user which have fill the contact us form.
    Note:  I am using SharePoint Online public facing site
    Thanks
    Deepak Chauhan
    SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI Design

    Hi Mokhtar
    I have solved my problem Email send properly but i am using SharePoint online site when
    we log In and then fill the contact us form so that mail send properly but when anonymous user fill the contact us form without log In so
    that Email not send can you please suggest me how workflow work for anonymous user 
    Thanks
    Deepak
    Chauhan
    SharePoint 2010 & 2013 and Office-365 Branding and Front End Customization, UI Design

Maybe you are looking for

  • Error while refreshing webi report

    SAP BO XI 3.1, when i am trying to refresh data in a webi report, its giving error, Invalid prompt definition contact BO admin WI 00005. Though i deleted all filters in Bex query, save the query, import universe, refresh univerese, save universe, exp

  • Calling a Report from another Report.....URGENT

    Hi, I am calling a report from another report using hyperlink. I want that this new report should come in a new page. Can any body help me where i can set this property, so that the new report will open in a new page. Thanks in advance Regards Kamal

  • How to add new fields for FB01 transaction both at Header and Line item

    Hi Guys, I would like to add the new fields at header and item level in FB01 transaction. Can I acheive this by using transaction EEWB....please help me on this. Thanking you

  • My touchscreen doesn't work, what happened? how can I fix it?

    Everything else works, the volume, the home button, the sleep/wake, etc. but the touchscreen doesn´t

  • Picture in Picture or the like of, possible?

    I have the latest version of both iMovie and Final Cut Express HD. I enjoy making videos and often do so for my church, school, etc. I was using Cyberlink PowerDirector on Windows and Pinnacle 8. On those programs you can layer videos and photos to c