Error While calling getListItem Webservice : Server was unable to process request. --- Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

Hi All,
we are calling sharepoint webservice from our web application but we are getting below error while calling webservice.
Server was unable to process request. ---> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Our code is as below.
We used below 2 options but we got same error for both scenario,
1)
            ListService.Lists objLists = new ListService.Lists();
            NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
            objLists.Credentials = objNetworkCredential;
            System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
2)         ListService.Lists objLists = new ListService.Lists();
            objLists.Proxy = new WebProxy("proxyaddress",true);
            NetworkCredential objNetworkCredential = new NetworkCredential("username", "password");
            objLists.Credentials = objNetworkCredential;
            System.Xml.XmlNode objXmlNode = objLists.GetListItems("Tasks", null, null, null, null, null, null);
Please help me what is the problem while calling this service.
Thanks in advance.
Regards,
Kaivan Shah

Hi ,
Here is a similar case ,you can have a look at this .
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) -Accessing the sharepoint site:
http://social.msdn.microsoft.com/Forums/en-NZ/sharepointworkflow/thread/5eab2116-7d7c-4bf3-bfa1-48bd8992dded
Thanks,
Entan Ming

Similar Messages

  • Unable to load DLL access is denied (exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    I'm consuming a 32-bit native DLL from a c# web service. Everything works fine locally in VS with IIS express. However when I deployed the site to a shared hosting provider (Server 2012 R2, IIS 7) the calls to the DLL (using platform invoke) generated an exception:
    Unable to load DLL 'dll_name.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    I asked the hosting provider to make sure my process is running in 32-bit mode and they assured me it is.Do I need to do anything special to use native DLLs? Do I have to register native modules with the server before they can be used? Anything to be set on
    the server side to grant access to the DLL?
    Thanks

    Thanks for your reply.
    Tech support tried the following:
    Ran "tasklist /m Detection.dll" It didn't return any processes that would lock the dll.
    Checked the permissions on the dll. The Network Service and app pool identity both had read/write/execute permissions. Just to make sure it wasn't permissions, they added IIS_IUSRS
    with r/w/x. Still didn't work.
    When this exception occurs, the exception.Message reads:
    Unable to load DLL 'Detection.dll': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    However, the exception.HRESULT value is 0x80131524 which it seems to be DLL not found. I'm not sure why there's a difference.
    I recompiled the DLL with the  DetectObject() function removed (See code snippet below), that didn't seem to make any difference (same error codes)
    If I delete the DLL from the /bin folder, I get the following message:
    Unable to load DLL 'Detection.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
    The code that calls the DLL is as follows: 
    public class DllCalls
    [DllImport("kernel32.dll", SetLastError = true)]
    public static extern bool SetDllDirectory(string lpPathName);
    [DllImport("Detection.Dll")]
    public static extern int DetectObject(IntPtr array, int Rows, int Cols, string BaseFolder);
    public static class DetectionApis
    public static int[] DetectRectangle(int[] LumaImage, int LumaStride, Rectangle Rect)
    int DetPts = 0;
    string DstDll = System.Web.HttpContext.Current.Server.MapPath("~/bin");
    DllCalls.SetDllDirectory(DstDll);
    /*=================================================
    * Extract region of interest rectangle
    *================================================*/
    byte[] RoiRect = new byte[Rect.Width * Rect.Height];
    ImagePixels.ExtractRectToBytes(LumaImage, LumaStride, Rect, ref RoiRect);
    /*=================================================
    * Pass array ByRef
    *================================================*/
    int ArraySize = RoiRect.Length;
    byte OneByte = 0;
    IntPtr buffer = Marshal.AllocCoTaskMem(Marshal.SizeOf(OneByte) * ArraySize);
    Marshal.Copy(RoiRect, 0, buffer, RoiRect.Length);
    try
    string BaseFolder = System.Web.HttpContext.Current.Server.MapPath("~/cascades") + "\\";
    DetPts = DllCalls.DetectObject(buffer, Rect.Height, Rect.Width, BaseFolder);
    catch (Exception e)
    LogFile.WriteLogStrg("DetectObject() caused an exception: " + e.Message + "HRESULT = " + e.HResult.ToString("X8"));
    return (null);
    int[] DetPoints = null;
    if (DetPts == 8)
    DetPoints = new int[DetPts * 2];
    Marshal.Copy(buffer, DetPoints, 0, DetPts * 2);
    Marshal.FreeCoTaskMem(buffer);
    return (DetPoints);
    The imported DLL function is as follows:
    #ifdef __cplusplus
    extern "C" {
    #endif
    __declspec(dllexport) int __stdcall DetectObject (int *CharLumaBuf, int Rows, int Cols, char *BaseFolder)
    return(-100);
    #ifdef __cplusplus
    #endif
     Any ideas/suggestions?

  • Error in RWB i.e Server was unable to process request

    Dear Friends,
    I am working on File to SOAP scenario for multiple values.
    I have 20 Fields each field is having multiple values in sender side these multiple values I need to send to .Net system.
    From ECC it is picking successfully but posting to target system I am getting the problem.
    I have taken the sender side 0 to unbounded and target side they provided 0 to unbounded.
    For single  value it is working fine, but for multiple values I got the error like:
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.
    Please suggest me .
    Regards,
    Shalini Shah

    Check my response here: Re: Receiver SOAP Communication Channel  Error
    I have taken the sender side 0 to unbounded and target side they provided 0 to unbounded.
    For single value it is working fine, but for multiple values I got the error like:
    Are you sure that your WS actually supports 0..unbounded occurence......also verify that your mapping is generating required output
    Regards,
    Abhishek.

  • Soap:Server was unable to process request. --- Value does not fall within the expected range

    Brand spanking new Sharepoint 2010 RTM and Designer 2010 RTM install. Unable to edit any page whatsoever even when checking out. Error in SP Designer: soap:Server was unable to process request. ---> Value does not fall within the expected range.
    Like I said, this is a brand new RTM install with nothing altered yet. Why can't I edit any pages? I am using the highest credentials so there should be no permission issues. There isn't anything that is helping me on the Web for this.
    Why would I encounter a problem like this out of the box? This is not the beta - it is RTM!

    Go to :
    Site Collection Administration 
    SharePoint Designer Settings
    and Enable the following
    Enable Detaching Pages from the Site Definition
    Enable Customizing Master Pages and Page Layouts
    Enable Managing of the Web Site URL Structure
    This should resolve the SP Designer Edit Issues.

  • Error: Server was unable to process request. --- Object reference not set

    Hi All,
    I am using ALSB 2.6.
    In the project, i have requirement to do transformation of incoming request with CData Tag and getting a response from the remote service.
    I have configured the Proxy Service and Business Service with a message route in which transformation is happening using replace action and adding a XSLT there.
    While sending the request from ALSB Test Console , its doing the transformation correctly as follows:
    Transformed Request at ALSB
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <lif:MultipleTermLifeQuotePublic xmlns:lif="https://www.farmerslife.com/LifeNetWS/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <lif:xmlInput>
    <TERM_LIFE_RATE_QUOTE>
    <Quote_Request Quote_Sequence = "100">
    <Face_Amount>
    1000.00
    </Face_Amount>
    <Gender>
    male
    </Gender>
    <Age>
    100
    </Age>
    <Level_Term_Years>
    100
    </Level_Term_Years>
    <Type>
    string
    </Type>
    <Nicotine>
    true
    </Nicotine>
    <CIR_Amount>
    1000.00
    </CIR_Amount>
    <State>
    string
    </State>
    <Waiver_Premium>
    false
    </Waiver_Premium>
    </Quote_Request>
    </TERM_LIFE_RATE_QUOTE>
    </lif:xmlInput>
    </lif:MultipleTermLifeQuotePublic>
    </soapenv:Body>
    After transformation, when its passing through Business Service its giving the followin error at ALSB console
    <soap:Body xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>
    Server was unable to process request. ---> Object reference not set to an instance of an object. </faultstring>
    <detail/>
    </soap:Fault>
    </soap:Body>
    [b]When i am sending the same request through SOAP UI, I am getting a correct response.
    Can any one guide me what to do regarding this, where i am going wrong.
    Please try to reply as soon as possible. Its an urgent issue.

    That error you're getting is a typical error message from Windows web services. It simply means there was something unspecified that was wrong with your message. You'll need to find a way to extract the actual message being sent in both the "good" and "bad" cases and look at the differences. You can do that in ALSB with a "Log" action.

  • SOAP Parsing Error: Server was unable to process request

    Hia,
    We are working on ABAP Proxy --> SAP PI 7.1 --> SOAP (Asynchronous Scenario).
    (ECC -> PI -> Legacy CRM)
    System is getting connected and able to send asynchronous messages to legacy system. But getting following error while sending synchronous error:
    2010-05-10 13:15:05 Information Delivering to channel: CC_SOAP_SOReject_Out
    2010-05-10 13:15:05 Information SOAP: request message entering the adapter with user J2EE_GUEST
    2010-05-10 13:15:05 Information SOAP: completed the processing
    2010-05-10 13:15:05 Information SOAP: continuing to response message f33caa90-5c07-11df-c659-96d147c2ff0f
    2010-05-10 13:15:05 Error SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.
    2010-05-10 13:15:05 Error Adapter Framework caught exception: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.
    2010-05-10 13:15:05 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Server was unable to process request. ---> Object reference not set to an instance of an object.. Setting message to status failed.
    2010-05-10 13:15:06 Error The message status was set to FAIL.
    I have already checked Data Structure and it is fine.
    Regards
    In this scenarios we are using XSLT mapping using CDATA.
    Please suggest solution.

    Source structure;
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_SOR_test xmlns:ns0="http://MTSINDIA/TEST/SingleValue">
       <ITEM>
          <sSlsOrderCode>100</sSlsOrderCode>
          <sDlrCode>200</sDlrCode>
          <sRejectReason>300</sRejectReason>
          <nCircleCode>400</nCircleCode>
       </ITEM>
    </ns0:MT_SOR_test>
    Final Target strucutre accept Web Service
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:SalesOrderReject xmlns:ns1="http://tempuri.org/"><ns1:SalerOrderRejXML>&lt;ITEM&gt;&lt;sSlsOrderCode&gt;100&lt;/sSlsOrderCode&gt;&lt;sDlrCode&gt;200&lt;/sDlrCode&gt;&lt;sRejectionReason&gt;300&lt;/sRejectionReason&gt;&lt;nCircleCode&gt;400&lt;/nCircleCode&gt;&lt;/ITEM&gt;</ns1:SalerOrderRejXML></ns1:SalesOrderReject>
    The above result is the test result which I got from using CONCAT and CONSTANT function si graphical mapping which is not a feasible solutin. It works in small strucutres but where the data structure is big (lets say 40 nodes) and coplex structure than it will fail.
    Cannot use XSLT as CDATA will come in picture. Any other options?

  • SOAP Error : Server was unable to process request.   Key cannot be null.#

    HI, When I process SOAP call from ABAP using class csoaptransporthttp->request_response, I am getting following error message:
    "Server was unable to process request.   > Key cannot be null.##Parameter name: key"
    Is anybody as the clue to resolve this error ?

    Hi,
    if you're doing a SOAP client - did you compare with this example:
    http://help.sap.com/saphelp_47x200/helpdata/en/2d/64d053e74911d6b2e400508b6b8a93/content.htm
    Regards,
    Michal Krawczyk

  • Bugs in BC CRM web service need to be fix (Server was unable to process request ERROR: A server error has occured)

    I'm using the following code to retrieve order list is working fine but it give me an error Server was unable to process request ERROR: A server error has occurred when I trying to retrieve order total paid with same code: and the output when retrieve order total paid is [object Object]
    var wsUrl = "https://mysite.worldsecuresystems.com/CatalystWebService/CatalystCRMWebservice.asmx?WSDL";
                          var RetrieveTotalPaidXML =
                          '<?xml version="1.0" encoding="utf-8"?>\
                          <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">\
                          <soap12:Body>\
                          <Order_RetrieveTotalPaid xmlns="http://tempuri.org/CatalystDeveloperService/CatalystCRMWebservice">\
                          <username>user</username>\
                          <password>pass</password>\
                          <siteid>111222</siteid>\
                          <orderId>112345</orderId>\
                          </Order_RetrieveTotalPaid>\
                          </soap12:Body>\
                          </soap12:Envelope>';
                           $.ajax({
                            type: "POST",
                            url: wsUrl,
                            Host: "mysite.worldsecuresystems.com",
                            contentType: "application/soap+xml; charset=utf-8",
                            data: RetrieveTotalPaidXML,
                            dataType: "xml",
                            success: processSuccess,
                            error: function(){alert("Error: Something went wrong");}
                           function processSuccess(ResData) {
                           var RetrieveTotalPaidParse = $.parseXML(ResData);
                           var $xmlRetrieveTotalPaidParse = $(RetrieveTotalPaidParse);
                           var $Order_RetrieveTotalPaidResult = $xmlRetrieveTotalPaidParse.find('Order_RetrieveTotalPaidResult');
                                   $Order_RetrieveTotalPaidResult = $(this).find('Order_RetrieveTotalPaidResult').text();
                                   $('#RetrieveTotalPaidResult').text(Order_RetrieveTotalPaidResult);
    I think there a bug in BC CRM Web Service when trying to make a request for Order_RetrieveTotalPaid using soap need to be fix

    Perhaps it would be good to update the sample request as shown on the  Developer reference page for this method (and, actually ALL of the SOAP samples)
    The sample shows siteid (all lower case)

  • Server was unable to process request. --- ERROR: This site is not hosted on this data center C#

    I am working with the API for the first time, and I am currently trying to figure out how to pull a list of products from a cat using the Product_ListRetrieve, I keep getting this error
    Server was unable to process request. ---> ERROR: This site is not hosted on this data center

    Okay so if anyone else is having these issues I found an answer for MVC3 C#:
    Go into the Web Config and look at the Application Settings, by editing the URL there you can find a value containing the service url. add the subdomain there:
    Example-
      <applicationSettings>
        <ITCatExtend.Properties.Settings>
          <setting name="ITCatExtend_CRM_CatalystCRMWebservice" serializeAs="String">
            <value>https://Add the Sub Domain Here.worldsecuresystems.com/CatalystWebService/CatalystCRMWebservice.asmx</value>
          </setting>
          <setting name="ITCatExtend_Ecom_CatalystEcommerceWebservice"
            serializeAs="String">
            <value>https://Add the Sub Domain Here.worldsecuresystems.com/catalystwebservice/catalystecommercewebservice.asmx</value>
          </setting>
        </ITCatExtend.Properties.Settings>
      </applicationSettings>

  • Sharepoint 2013 : Server was unable to process request. --- Site is not configured for Claims Forms Authentication.

    In our java web application trying  establish the connection for sharePoint 2013
    using  Windows claims authentication (NTLM ), I am getting error message "Server was unable to process request. ---> Site is not configured for Claims Forms Authentication". But In the Sharepoint 2013 our Site is is configured for Windows
    claims only.
    In the Sharepoint 2013 server in the IIS manager settings for authentication it is  enabled for both Windows claims and Forms authentication,
    but if I disable Forms authentication that I will be able to connect it through my application but with the direct access i.e., by running the URL in the browser I am not able to connect getting error message "sorry this site has not been shared with
    you" in the browser  Kindly help me on this.

    Hi,
    This issue is always caused that you had missed FBA configuration in web config of your web application.
    You can configure the FBA authentication then check whether it works.
    http://technet.microsoft.com/en-us/library/ee806890(v=office.15).aspx
    http://chrisbarba.com/2013/07/16/sharepoint-2013-forms-based-authentication-fba/
    more reference:
    http://stackoverflow.com/questions/5686378/sharepoint-2010-claim-base-authentication-error
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/2d82dcd4-0e57-4de5-81bc-60ffc3cb9a9f/sharepoint-2010-claim-authentication-and-authenticationasmx?forum=sharepointgeneralprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Claims authentication: "Server was unable to process request. --- Index was outside the bounds of the array"

    Hi there,
    I recently got a peculiar error when users tried to log-in into a SP 2010 portal using claims based authentication.
    The following error is logged in the event viewer of the SP server in question:
    Event ID 8306 - Claims authentication
    An exception occurred when trying to issue security token: Server was unable to process request. ---> Index was outside the bounds of the array.
    I also found an IIS warning entry with a similar message:
    Event ID 1309 - Web Event
    Exception type: FaultException
    Exception message: Server was unable to process request. ---> Index was outside the bounds of the array.
    I simply could not find an answer to why this happened, but an iisreset seemed to have fixed the issue. I was wondering if anyone here would know a possible root cause for this issue?
    Thanks in advance for your help.
    Regards,
    P.

    Hi,
    Thanks for posting your issue, Kindly browse below mentioned URLs to fix this issue
    http://underthehood.ironworks.com/2011/05/sharepoint-2010-an-exception-occurred-when-trying-to-issue-security-token-the-server-was-unable-to-p-1.html
    http://nearbaseline.com/blog/2011/01/claims-exception-occurred-issuing-a-security-token/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Server was unable to process request.

    Server was unable to process request. ---> Unable to generate a temporary class (result=1). error CS2001: Source file 'C:\Windows\TEMP\agbstcm0.0.cs' could not be found error CS2008: No inputs specified

    Please repost in a more appropriate forum - Windows Community would be a good start...
    http://answers.microsoft.com/en-us/windows
    Noel Paton | Nil Carborundum Illegitemi
    CrashFixPC |
    The Three-toed Sloth
    No - I do not work for Microsoft, or any of its contractors.

  • STSADM Restore error : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

    Hi all,
    I've been struggling figuring out what permission I need to make this restore work. I've successfully restored site collection on the same web app with the following restore command from the same DAT file before.
    stsadm -o restore -url
    http://siteurl -filename
    \\UNCpath –overwrite\filename.dat
    Log file error:
    stsadm: Running restore
    Initializing the configuration database connection
    Starting restore of site collection: 'http://sitename/', requested by: domain\user, source: \\UNCpath\filename.dat
    Deleting the site at http://sitename and not deleting AD accounts.
    Unknown SPRequest error occurred. More information: 0x80070005
    stsadm: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Callstack:   
    at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex)    
    at Microsoft.SharePoint.Library.SPRequest.DeleteSite(String bstrUrl, Boolean bDeleteADAccounts)    
    at Microsoft.SharePoint.SPSite.Delete(Boolean bDeleteADAccounts)    
    at Microsoft.SharePoint.SPSite.Delete()    
    at Microsoft.SharePoint.Administration.SPSiteCollection.Restore(String strSiteUrl, String strFilename, Boolean bOverwrite, Boolean hostHeaderAsSiteName)    
    at Microsoft.SharePoint.StsAdmin.SPAdminRestore.RunSiteCollectionRestore(StringDictionary keyValues)    
    at Microsoft.SharePoint.StsAdmin.SPAdminRestore.Run(StringDictionary keyValues)    
    at Microsoft.SharePoint.StsAdmin.SPStsAdmin....
    ...RunOperation(SPGlobalAdmin globalAdmin, String strOperation, StringDictionary keyValues, SPParamCollection pars)
    Now terminating ULS (STSADM.EXE, Microsoft.Office.Server.Native.dll)
    I've made sure I have rights:
    1. Either primary/ secondary site collection administrator on the associated web app
    2. Made myself owner on the related dbs
    3. I'm part of the local admin group on the server running CA and DB.
    I know I may have given too much privilege - but I'm sick of seeing this access denied error. As far as I'm concerned permission-wise nothing has been changed from my last successful restore except the fact that I'm overwriting the site collection this time.
    I also tried with a fresh DAT file to restore with no luck. 
    If someone can give me some other thoughts I would very much appreciate that.
    Many thanks in advance -
    Blue Sky

    Thanks for your reply...
    Now we are trying to restore the minsite first ...
    Only my content database is at the server2 because of the disk space problem...
    Other data bases are at the server1(original) where the website host ...
    now, we run the stsadm restore for minisite
    at that time error occur,
    No content databases are available for this operation. Create a content database, and then try the operation again. To create a content database, click "Content databases" on the Application Management page, select the Web application to use, and then click
    "Add a content database". Callstack:    at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.FindBestContentDatabaseForSiteCreation(Guid siteIdToAvoid, Guid webIdToAvoid)     at Microsoft.SharePoint.Administration.SPSiteCollection.Restore(String
    strSiteUrl, String strFilename, Boolean bOverwrite, Boolean hostHeaderAsSiteName)     at Microsoft.SharePoint.StsAdmin.SPAdminRestore.RunSiteCollectionRestore(StringDictionary keyValues)     at Microsoft.SharePoint.StsAdmin.SPAdminRestore.Run(StringDictionary
    keyValues)  
    we set
    Central Administration >
    Operations >
    Default Database Server  to server1 (original)
    Central Administration >
    Application Management >
    Content Databases   to server2\WSS_Content
    can we separte the servers like that ??
    Thanks ...
    M

  • Error while creating task: The server was unable to save the form at this time. Please try again. (SharePoint 2013)

    I get the following error while saving a task inside task list:
    "The server was unable to save the form at this time. Please try again."
    I tried restarting "search service host controller".
    The server has 8 GB RAM and according to task manager, 6.67 GB is being used.
    I logged into the site with user which is the owner of the site. I tried creating tasks from client as well as the SharePoint server itself. Same error is shown in both the cases.
    How do I find information on the exact problem that is causing the error? What are possible solutions?

    Hi robikshrestha,
    This error message often shows when there is low memory that can be used, the workaround restart the “SharePoint Search Hosting Controller” service is to release some memory, and make it work. Whether restart the service release memory
    in your situation?
    Would you please check whether this issue happens all the time in task list, or happens sometimes when the memory is lower to use. If it doesn’t have a large impact, you can restart the server, check the result. have a look at the event
    log and ULS log, see whether there is related information.
    If it happens all the time, would you please use other browsers, whether the results are same? This may be caused by some add-ons in IE, like Free Download Manager I have seen.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • The server was unable to process the request due to an internal error.

             
    Properties set in my project are below
    namespace EmployeeService
            public class Employee
                private int _Id;
                private string _Name;
                private string _Gender;
                private DateTime _DateofBirth;
                public int Id
                    get { return _Id; }
                    set { _Id = value; }
                public string Name
                    set { _Name = value; }
                    get { return _Name; }
                public string Gender
                    set { _Gender = value; }
                    get { return _Gender; }
                public DateTime DateofBirth
                    set { _DateofBirth = value; }
                    get { return _DateofBirth; }
    This is the service i have developed in my project 
    namespace EmployeeService
        // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in both code and config file together.
        public class EmployeeService : IEmployeeService
            public Employee GetEmployee(int Id)
                Employee objemp = new Employee();
                string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
                using (SqlConnection con = new SqlConnection(cs))
                    SqlCommand cmd = new SqlCommand("spGettblEmployeewcf", con);
                    cmd.CommandType = CommandType.StoredProcedure;
                    SqlParameter Idparameter = new SqlParameter();
                    Idparameter.ParameterName = "@Id";
                    Idparameter.Value = Id;
                    cmd.Parameters.Add(Idparameter);
                    con.Open();
                    SqlDataReader dr = cmd.ExecuteReader();
                    while (dr.Read())
                        objemp.Id = Convert.ToInt32(dr["Id"]);
                        objemp.Name = dr["Name"].ToString();
                        objemp.Gender = dr["Gender"].ToString();
                        objemp.DateofBirth = Convert.ToDateTime(dr["DateofBirth"]);
                return objemp;
            public void SaveEmployee(Employee objemp)
                string cs = ConfigurationManager.ConnectionStrings["DBCS"].ConnectionString;
                using (SqlConnection con = new SqlConnection(cs))
                    SqlCommand cmd = new SqlCommand("spInsertEmployeewcf", con);
                    cmd.CommandType = CommandType.StoredProcedure;
                    SqlParameter ParameterId = new SqlParameter()
                        Value = objemp.Id,
                        ParameterName = "@Id"
                    cmd.Parameters.Add(ParameterId);
                    SqlParameter ParameterName = new SqlParameter()
                        Value = objemp.Name,
                        ParameterName = "@Name"
                    cmd.Parameters.Add(ParameterName);
                    SqlParameter ParameterGender = new SqlParameter()
                        Value = objemp.Gender,
                        ParameterName = "@Gender"
                    cmd.Parameters.Add(ParameterGender);
                    SqlParameter ParameterDateofBirth = new SqlParameter()
                        Value = objemp.DateofBirth,
                        ParameterName = "@DateofBirth"
                    cmd.Parameters.Add(ParameterDateofBirth);
                    con.Open();
                    cmd.ExecuteNonQuery();
    The Service Contract  code is
    namespace EmployeeService
        // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
        [ServiceContract]
        public interface IEmployeeService
            [OperationContract]
            Employee GetEmployee(int Id);
            [OperationContract]
            void SaveEmployee(Employee objemp); 
            // TODO: Add your service operations here
        // Use a data contract as illustrated in the sample below to add composite types to service operations
    and i deployed the EmployeeService in iis and consuming the service in my web application the code is below
     protected void btnsave_Click(object sender, EventArgs e)
                EmployeeService.EmployeeServiceClient client = new EmployeeService.EmployeeServiceClient("basicHttpBinding");
                EmployeeService.Employee employee = new EmployeeService.Employee();
                employee.Id = Convert.ToInt32(txtid.Text);
                employee.Name = txtname.Text;
                employee.Gender = txtgender.Text;
                employee.DateofBirth = Convert.ToDateTime(txtdob.Text);
                client.SaveEmployee(employee);
            protected void btnget_Click(object sender, EventArgs e)
                EmployeeService.EmployeeServiceClient client = new EmployeeService.EmployeeServiceClient("basicHttpBinding");
                EmployeeService.Employee employee = client.GetEmployee(Convert.ToInt32(txtid.Text));
                txtname.Text = employee.Name;
                txtgender.Text = employee.Gender;
                txtdob.Text = employee.DateofBirth.ToShortDateString();
    and  when i am entering the details of employee Id,Name,Gender,DateofBirth and clicking save button iam getting the following error 
    The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior)
    on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.
    Code in web.config file in Webapplication(Client) is the following
    <?xml version="1.0"?>
    <!--
      For more information on how to configure your ASP.NET application, please visit
      http://go.microsoft.com/fwlink/?LinkId=169433
      -->
    <configuration>
        <system.diagnostics>
            <sources>
                <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing">
                    <listeners>
                        <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                            <filter type="" />
                        </add>
                        <add name="ServiceModelMessageLoggingListener">
                            <filter type="" />
                        </add>
                    </listeners>
                </source>
                <source name="System.ServiceModel" switchValue="Warning, ActivityTracing"
                    propagateActivity="true">
                    <listeners>
                        <add type="System.Diagnostics.DefaultTraceListener" name="Default">
                            <filter type="" />
                        </add>
                        <add name="ServiceModelTraceListener">
                            <filter type="" />
                        </add>
                    </listeners>
                </source>
            </sources>
            <sharedListeners>
                <add initializeData="C:\Users\HEMANTH\Desktop\Client\Client\Web_messages.svclog"
                    type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                    name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp">
                    <filter type="" />
                </add>
                <add initializeData="C:\Users\HEMANTH\Desktop\Client\Client\Web_tracelog.svclog"
                    type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
                    name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
                    <filter type="" />
                </add>
            </sharedListeners>
            <trace autoflush="true" />
        </system.diagnostics>
        <system.web>
            <compilation debug="true" targetFramework="4.0" />
        </system.web>
        <system.serviceModel>
            <diagnostics>
                <messageLogging logEntireMessage="true" logMalformedMessages="true"
                    logMessagesAtTransportLevel="true" />
            </diagnostics>
            <bindings>
                <basicHttpBinding>
                    <binding name="basicHttpBinding" />
                </basicHttpBinding>
                <wsHttpBinding>
                    <binding name="mexHttpBinding">
                        <security mode="None" />
                    </binding>
                </wsHttpBinding>
            </bindings>
            <client>
                <endpoint address="http://localhost/EmployeeWebServices/EmployeeService.svc/basic"
                    binding="basicHttpBinding" bindingConfiguration="basicHttpBinding"
                    contract="EmployeeService.IEmployeeService" name="basicHttpBinding" />
                <endpoint address="http://localhost/EmployeeWebServices/EmployeeService.svc/mex"
                    binding="wsHttpBinding" bindingConfiguration="mexHttpBinding"
                    contract="EmployeeService.IEmployeeService" name="mexHttpBinding" />
            </client>
        </system.serviceModel>
    </configuration>
    Things i have tried till now are 
    1)changed the name of the name of the endpoint address basicHttpBinding to  basicHttpBinding_IEmployeeService but still get the save error.
    2)Opened the Message Log Trace. Got the error as follows
    <MessageLogTraceRecord>
    <HttpResponse xmlns="http://schemas.microsoft.com/2004/06/ServiceModel/Management/MessageTrace">
    <StatusCode>InternalServerError</StatusCode>
    <StatusDescription>Internal Server Error</StatusDescription>
    <WebHeaders>
    <Content-Length>730</Content-Length>
    <Cache-Control>private</Cache-Control>
    <Content-Type>text/xml; charset=utf-8</Content-Type>
    <Date>Sat, 03 Jan 2015 12:12:24 GMT</Date>
    <Server>Microsoft-IIS/7.5</Server>
    <X-AspNet-Version>4.0.30319</X-AspNet-Version>
    <X-Powered-By>ASP.NET</X-Powered-By>
    </WebHeaders>
    </HttpResponse>
    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header></s:Header>
    <s:Body>
    <s:Fault>
    <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher" xmlns="">a:InternalServiceFault</faultcode>
    <faultstring xml:lang="en-US" xmlns="">The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute
    or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.</faultstring>
    </s:Fault>
    </s:Body>
    </s:Envelope>
    </MessageLogTraceRecord>
    Try to understand but could not understand because i'am new to wcf services. Please help me to find the error details.
    Thanks in advance
    Regards
    rax227 
                           

    Hi Mohan,
    I didn't use Fiddler before, I just download and use it but how to see the request message from this software?
    I have logged the request to event log before send to web service and copy this request from event log to testing with soapUI, so I don't think have between the actual messages being sent to your client via orchestration and soapui. In the log Response shape
    I see the fault response in event log.
    You can see
    this link to know how to use fiddler. As I suggested above the error you need to check is at the server side who is hosting the service( your party ) because you are getting fault response properly from them. The webservice you are calling seems to look
    like WCF service too. Your life would have been so easier if you could ask them to have firewall open from your dev box to their dev server so that you can use use "Add Service Reference" wizard, that even they have .NET wcf service too. 
    Did you by any chance manage to talk to them what they are getting or if they can increase the exception details in the fault message for you?
    If this answers your question please mark it as Answer and if this post is helpful, please vote as helpful. Thanks !

Maybe you are looking for

  • Emails have another name in the To box

    Some Emails sent to me have another name in the To: section. If I click on this name all my contacts appear in the drop down box. Also if I try and send an email to these contacts the other name is attached. In other words the recipient of the email

  • Photoshop Elements 13 for Mac

    I have an old version of Photoshop Elements (8) for Mac. I have installed this version 8 on a iMac and a Macbook. Can I install version 13 (the 1 license version) also on my iMac and Macbook and use it alternate?

  • Problem with data integration when using KCLJ

    Hello, For a project, I had to integrate a new field using transaction KCLJ. For this I extented the DDIC structure of the sender structure, and after that, I updated the corresponding transfer rules. When I execute transaction KCLJ I have no error,

  • Axis - NEWBIE question - arrays

    I have a basic question with arrays and Axis. Let's say I have the following interface: public ComplexObject[] testArrayMethod( ComplexObject[] arrayCO, String myString); If I use the Axis 1.3 Java2WSDL I get something that contains: <element name="t

  • MOVED: k9a2-cf ps/2 mouse not working in vista x86/x64

    This topic has been moved to Vista problems. https://forum-en.msi.com/index.php?topic=114992.0