RetrieveEntityResponse : Service.Execute - Unexpected error occured

Hello,
I have build one solution for enabling the document management and while executing RetrieveEntityRequest, I am receiving below error message with exception.
System.ServiceModel.FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault> was caught
_HResult=-2146233087
_message=An unexpected error occurred.
HResult=-2146233087
IsTransient=false
Message=An unexpected error occurred.
RemoteStackTrace=
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
Source=mscorlib
Action=http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/ExecuteOrganizationServiceFaultFault
StackTrace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Execute(OrganizationRequest request)
at DocumentMgtEnable.EnableDocumentManagement.Run() in c:\Users\prashant.bhojani\Documents\Visual Studio 2013\Projects\ConsoleApplication1\ConsoleApplication1\Program.cs:line 90
InnerException:
Below is my code:
using(OrganizationServiceProxy _serviceProxy = new OrganizationServiceProxy(oUri,null,lclClientCredentials,null))
RetrieveEntityRequest entityRequest = new RetrieveEntityRequest
EntityFilters = EntityFilters.Attributes,
LogicalName = "contact",
// Retrieve only the currently published changes, ignoring the changes
// that have not been published.
//RetrieveAsIfPublished = false
RetrieveEntityResponse entityResponse = (RetrieveEntityResponse)_serviceProxy.Execute(entityRequest);
Console.WriteLine("Retrieved the contact entity.");
// Get the entity from the response.
EntityMetadata contactEntity = entityResponse.EntityMetadata;
// Enable document management for the retrieved entity.
contactEntity.IsDocumentManagementEnabled = true;
// Create an update request.
UpdateEntityRequest updateRequest = new UpdateEntityRequest
Entity = contactEntity
_serviceProxy.Execute(updateRequest);
Can anyone please help me here, as I am not getting any clue from exception details.

Hi,
    The error is thrown for at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
 So check the login details and user name and password for this. Examples for correct usage is given in the article attached here.
http://crm2011corner.blogspot.com.au/2012/12/sample-code-crm-using-organization.html
Hope this helps.
Minal Dahiya
blog : http://minaldahiya.blogspot.com.au/
If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

Similar Messages

  • Picture services failed to load - An unexpected error occurred

    Just uninstalled Desktop 5.0 and installed Desktop 6.0.
    Everything else seems to be working fine.  It's just that when I try to access "Media Sync-->Pictures". I get the following message:
    "Picture services failed to load  - An unexpected error occurred"
    I especially need to access my pics b/c my media card is out of room.(perhaps itself a clue?)
    I have a Curve 8350i  from Nextel/Sprint
    I would happily post the "log" entry, but I don't know how to find it and/or turn logging on.
    Please help.
    Gerard Marra

    This is a portion of the Desktop Log.   It is strange because the Blackberry Desktop Software 6.0 works fine on my laptop but not on my desktop computer....
    14:48:30.075|INFO |9|Rim.Desktop.Media|0|TASK: [Load_Picture_Library], STATE: Failed, TRANSITION: none, OPERATION: none, DURATION: 5304
    14:48:30.079|ERROR|9|Rim.Desktop.Media|18005|EXCEP​TION: Rim.Desktop.Services.Tasks.Exceptions.TaskFailedEx​ception -- MESSAGE: Load_Picture_Library -- STACK:    at Rim.Desktop.Services.Tasks.Task.get_Result(){CRLF}​   at Rim.Media.Source.Pictures.PictureDataSource.GetLib​raryResultFromTask(Task task){CRLF}   at Rim.Media.Source.Pictures.PictureDataSource.LoadLi​braryUsingTask(){CRLF}   at Rim.Media.Source.Pictures.PictureDataSource.LoadOr​iginalDataSource(){CRLF}   at Rim.Media.Source.DataSource.LoadDataSource(IDataSo​urceSnapshot snapshot){CRLF}   at Rim.Media.Sync.BBMusicSyncAPI.<>c__DisplayClass12.​<GetLoadDataSourceTask>b__e(){CRLF}   at Rim.Desktop.Services.Tasks.Task.RunOneOperation()
    14:48:30.079|ERROR|9|Rim.Desktop.Media|18005|INNER EXCEPTION: System.IO.IOException -- MESSAGE: The device is not ready.{CRLF} -- STACK:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath){CRLF}   at System.IO.__Error.WinIODriveError(String driveName, Int32 errorCode){CRLF}   at System.IO.DriveInfo.get_VolumeLabel(){CRLF}   at Rim.Media.Source.Pictures.PictureList.GetFriendlyN​ame(IFolderPath path){CRLF}   at Rim.Media.Source.Pictures.PictureList..ctor(IPictu​reLibrary owner, ILibraryFolder folderPath){CRLF}   at Rim.Media.Source.Pictures.PictureLibrary.GetLibrar​y(IFolderLibrarySession folderLibrarySessionData, ICancelable task){CRLF}   at Rim.Media.Source.Pictures.PictureDataSourceLoader.​LoadLibrary(ICancelable task){CRLF}   at Rim.Media.Source.Pictures.PictureDataSource.<>c__D​isplayClass1.<LoadLibraryUsingTask>b__0(){CRLF}   at Rim.Desktop.Services.Tasks.Task.RunOneOperation()
    14:48:30.079|ERROR|9|Rim.Desktop.Media|18005|EXCEP​TION: Rim.Desktop.Services.Tasks.Exceptions.TaskFailedEx​ception -- MESSAGE: Load_Picture_Library -- STACK:    at Rim.Desktop.Services.Tasks.Task.get_Result(){CRLF}​   at Rim.Media.Source.Pictures.PictureDataSource.GetLib​raryResultFromTask(Task task){CRLF}   at Rim.Media.Source.Pictures.PictureDataSource.LoadLi​braryUsingTask(){CRLF}   at Rim.Media.Source.Pictures.PictureDataSource.LoadOr​iginalDataSource(){CRLF}   at Rim.Media.Source.DataSource.LoadDataSource(IDataSo​urceSnapshot snapshot){CRLF}   at Rim.Media.Sync.BBMusicSyncAPI.<>c__DisplayClass12.​<GetLoadDataSourceTask>b__e(){CRLF}   at Rim.Desktop.Services.Tasks.Task.RunOneOperation()
    14:48:30.080|ERROR|9|Rim.Desktop.Media|18005|INNER EXCEPTION: System.IO.IOException -- MESSAGE: The device is not ready.{CRLF} -- STACK:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath){CRLF}   at System.IO.__Error.WinIODriveError(String driveName, Int32 errorCode){CRLF}   at System.IO.DriveInfo.get_VolumeLabel(){CRLF}   at Rim.Media.Source.Pictures.PictureList.GetFriendlyN​ame(IFolderPath path){CRLF}   at Rim.Media.Source.Pictures.PictureList..ctor(IPictu​reLibrary owner, ILibraryFolder folderPath){CRLF}   at Rim.Media.Source.Pictures.PictureLibrary.GetLibrar​y(IFolderLibrarySession folderLibrarySessionData, ICancelable task){CRLF}   at Rim.Media.Source.Pictures.PictureDataSourceLoader.​LoadLibrary(ICancelable task){CRLF}   at Rim.Media.Source.Pictures.PictureDataSource.<>c__D​isplayClass1.<LoadLibraryUsingTask>b__0(){CRLF}   at Rim.Desktop.Services.Tasks.Task.RunOneOperation()
    14:48:30.080|INFO |9|Rim.Desktop.Media|0|TASK: [API_LOAD_DATASOURCE_PicturesDesktop], STATE: Progressing, TRANSITION: Progressing -> Finishing, OPERATION: Void <GetLoadDataSourceTask>b__e(), ERROR: Rim.Desktop.Services.Tasks.Exceptions.TaskFailedEx​ception: Load_Picture_Library ---> System.IO.IOException: The device is not ready.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.__Error.WinIODriveError(String driveName, Int32 errorCode)
       at System.IO.DriveInfo.get_VolumeLabel()
       at Rim.Media.Source.Pictures.PictureList.GetFriendlyN​ame(IFolderPath path)
       at Rim.Media.Source.Pictures.PictureList..ctor(IPictu​reLibrary owner, ILibraryFolder folderPath)
       at Rim.Media.Source.Pictures.PictureLibrary.GetLibrar​y(IFolderLibrarySession folderLibrarySessionData, ICancelable task)
       at Rim.Media.Source.Pictures.PictureDataSourceLoader.​LoadLibrary(ICancelable task)
       at Rim.Media.Source.Pictures.PictureDataSource.<>c__D​isplayClass1.<LoadLibraryUsingTask>b__0()
       at Rim.Desktop.Services.Tasks.Task.RunOneOperation()
       --- End of inner exception stack trace ---
       at Rim.Media.Sync.BBMusicSyncAPI.DataSourceFailedToLo​ad(Exception exception)
       at Rim.Desktop.Services.Tasks.Task.RunOneOperation()
       at Rim.Desktop.Services.Tasks.Task.Run()
       at Rim.Media.Sync.BBMusicSyncAPI.LoadDataSource(Media​Source mediaSource, ICancelable parentTask)
       at Rim.Media.Sync.SyncService.<>c__DisplayClasse.<Sta​rtUp>b__a()
       at Rim.Desktop.Services.Tasks.Task.RunOneOperation()

  • Music services failed to load an unexpected error occurred

    Hi!
    Till the last Day, the WiFi and/ore the USB-Sync with iTunes runs perfectly.
    But at this moment, it doens't work anymore and i got this message on my DM6 "Music services failed to load an unexpected error occurred"
    I don't know why, cause i didn't change anything on my DM6, iTunes ore Torch.
    This ist my Desktop.log
    13:05:54.907|INFO |12|Rim.Desktop.Media|39001|Got Request POST http://192.168.2.105:4481/mediasync/music/17afe97cfe9d52d6
    13:05:54.910|INFO |12|Rim.Desktop.Media|39001|gzip requested
    13:05:54.992|FATAL|12|Rim.Desktop.Shell|0|Fatal Application Error
    System.FormatException: The input yields a number greater than 4 bytes.
       bei Rim.Common.Utilities.JavaBinaryReader.ReadCompressedInt()
       bei Rim.Media.Sync.SyncProviders.Device.Destination.DeviceChanges.ReadChanges(Stream changeStream)
       bei Rim.Media.Sync.Listener.HttpMediaServer.OnUpdatesProvided(Object sender, UpdatesProvidedEventArgs e)
       bei Rim.Common.Utilities.Events.Eventer.Raise[THandlerArgs,TArgs](Object sender, EventHandler`1 handler, TArgs e)
       bei Rim.Media.Sync.Listener.MediaHttpListener.Request(IAsyncResult result)
       bei System.Net.LazyAsyncResult.Complete(IntPtr userToken)
       bei System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
       bei System.Net.ListenerAsyncResult.WaitCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
       bei System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    13:05:54.994|FATAL|12|Exception|0|Fatal Error
    System.FormatException: The input yields a number greater than 4 bytes.
       bei Rim.Common.Utilities.JavaBinaryReader.ReadCompressedInt()
       bei Rim.Media.Sync.SyncProviders.Device.Destination.DeviceChanges.ReadChanges(Stream changeStream)
       bei Rim.Media.Sync.Listener.HttpMediaServer.OnUpdatesProvided(Object sender, UpdatesProvidedEventArgs e)
       bei Rim.Common.Utilities.Events.Eventer.Raise[THandlerArgs,TArgs](Object sender, EventHandler`1 handler, TArgs e)
       bei Rim.Media.Sync.Listener.MediaHttpListener.Request(IAsyncResult result)
       bei System.Net.LazyAsyncResult.Complete(IntPtr userToken)
       bei System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken)
       bei System.Net.ListenerAsyncResult.WaitCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
       bei System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    13:05:58.439|INFO |12|Rim.Desktop.Media|39001|HttpMediaServer status update: ServerOn
    What can i do, to fix the problem?
    Tank you!
    Sorry for my bad english
    Greetings from Germany
    Kalorie99

    I found the answer, here in the forum from a user:
    Here is the solution that worked for me, based on antoniovtorres post (I resisted the urge to get PO'd and tried to figure out what he must have done):
    With desktop manager closed, using Blackberry user tools, navigate to 'Blackberry\system\' (make sure that hidden files are shown or you won't see the 'system' folder).
    Move or delete the folders 'Media Sync' and 'media' from the system directory.
    Re-open desktop manager.
    Click yes to any dialog that appears.
    You should now be able to sync music again.
    Note that your device may want to double up on your synced pictures and videos, so you may want to delete your pictures and videos off of the device before your next picture or video sync. Hope it works for y'all.
    Scott
    It works again!
    Yeah!
    BlackBerry rocks!

  • The underlying connection was closed: An unexpected error occurred on a receive..Exception.Message - while executing powershell command for sharepoint online site

    " +The underlying connection was closed: An unexpected error occurred on a receive..Exception.Message " OR sometimes
    "The remote server returned an error: (503) Server Unavailable..Exception.Message"
    Getting exception above when performing various operation (site coll creating, group creation, adding users to group) for sharepoint online (Office 365) site using powershell script.
    I want to create 3500 site collections using PS script. In-between getting above exception so it will skip one site collection creating and working again. for eg. after creating 11 site coll, script will through above exception and so 12th site coll will
    not be create but working fine from 13 and so on...

    Remote server seems working to me...any additional check?
    if problem with remote server then may be loop to create site provisioning should not start again..Right?
    any idea?

  • The underlying connection was closed: An unexpected error occurred on a receive

    Hi,
    We have a requirement where we need to create a custom workflow code activity which will download the current uploaded document to a shared network drive. We have created a code activity using client object model  to achieve this. But intermittently
    below exception is being occured at ctx.ExecuteQuery();
    Can anyone help me in resolving the issue?
    Exception :
    :-The underlying connection was closed: An unexpected error occurred on a receive.The underlying connection was closed: An unexpected error occurred on a receive.   at System.Net.HttpWebRequest.GetResponse()
       at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
       at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
       at CustomActivity.CustomCodeActivity.Execute(CodeActivityContext context)
    The underlying connection was closed: An unexpected error occurred on a receive.The underlying connection was closed: An unexpected error occurred on a receive.   at System.Net.HttpWebRequest.GetResponse()
       at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
       at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
       at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
       at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
       at CustomActivity.CustomCodeActivity.Execute(CodeActivityContext context)
    Below is the code written.
    using (ClientContext ctx = new ClientContext(strSiteUrl))
    // ctx.ExecutingWebRequest += clientContext_ExecutingWebRequest;
    LogMessage("In Using");
    ctx.FormDigestHandlingEnabled = true;
    Web web = ctx.Web;
    LogMessage("In Using1");
    ctx.Load(web);
    LogMessage("In Using2");
    ctx.FormDigestHandlingEnabled = true; //Issue occurring while executing below line
    ctx.ExecuteQuery();
    LogMessage("Exceute Query 1");
    //foreach (ListItem item in GetAllListItems(web.Url, strListName,strItemId))
    ListItem item = GetAllListItems(web.Url, strListName, strItemId);
    LogMessage("in loop1"+item.DisplayName);
    foreach (Microsoft.SharePoint.Client.File file in GetListItemAttachments(web.Url, item, strListName))
    LogMessage("in loop2");
    SaveAttachmentToDisk(file, strFilePath, web.Url);
    string fileExt = System.IO.Path.GetExtension(file.Name);
    string newName = file.Name.Substring(0, file.Name.IndexOf('.'));
    newName = newName + "-" + curDate;

    Hi,
    According to the error message, it usually occurs when server or network device unexpectedly closes an existing Transmission Control Protocol connection.
    This problem may occur when time-out value on the server or network is set too low.
    To resolve this issue, I suggest you do as the followings:
    1. Configure the Web site that hosts the Web services not to use keep-alive connections.
    2. Override the HttpWebRequest method in the Reference.cs file that is generated by Microsoft Visual Studio .NET for the Web client proxy.
    protected override WebRequest GetWebRequest(Uri uri)
    HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);
    webRequest.KeepAlive = false;
    return webRequest;
    More Reference:
    http://support.microsoft.com/kb/819450
    http://stackoverflow.com/questions/21728773/the-underlying-connection-was-closed-an-unexpected-error-occurred-on-a-receiv
    Best regards,
    Zhengyu Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • An unexpected error occurred while the job was running. (ID 104 Details: The parameter is incorrect (0x80070057))

    We are using DPM Version: 4.1.3465.0 with System Center 2012 Service Pack 1 to back up VMs in our Hyper V Cluster. We have a total of 37 VMs with a combination of 2008r2 servers and 2012 servers. One of our 2012 servers will not backup, and we consistently
    get the message "An unexpected error occurred while the job was running. (ID 104 Details: The parameter is incorrect (0x80070057))". I have seen this error message when I Googled it, but cannot get past it. I have deleted the Protection Group and
    data and tried to re-create, but get the same errors. I also thought the the server might be mis-reporting the data size, but I expanded that to cover the replication data. I have also tried to perform consistancy checks multiple times with no luck. I have
    not seen a difinitive answer from my Google searches, so was hopeful someone has seen this also, and have had success in resolving. Currently this server has no backup recovery points, so I am worried if it does crash. I think I have the rollups installed
    as well.

    Hi Kelly,
    does the issue still persists?

  • Error in Remote Web Access - "An unexpected error occurred. Please try again. If the problem continues, contact the person who manages your server."

    I have set up the RWA and I can log in to the web console with my server account. However when I click on any of the shared folders I get this error:
    An unexpected error occurred.  Please try again.  If the problem continues, contact the person who manages your server.
    Does anyone know how to troubleshoot this?
    Regards,
    Maciek

    I had this very same issue with one of our customer's servers that was running Windows Server Essentials. I ended up calling Microsoft about the issue. I hope this helps someone. This originally appeared on my blog: http://techspeeder.com/2014/01/14/remote-web-access-error-an-unexpected-error-occurred/
    Troubleshooting Steps:
    1.  We were getting unexpected errors while accessing shared folders remotely
    2.  The tech found IIS handlers were missing
    3.  She went to IIS > server level ( parent level) and added managed handler mapping  :
    Name: svc-Integrated-4.0
    Request path: *.svc
    Executable: System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
    4. Added script mapping:
    Name: svc-ISAPI-4.0_64bit
    Request path: *.svc
    Executable: windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
    Name: svc-ISAPI-4.0_32bit
    Request path: *.svc
    Executable: windir%\Microsoft.NET\Framework32\v4.0.30319\aspnet_isapi.dll
    5. Ran IISreset.
    6. We were able to access resources in Remote access, then.

  • OLAP Error:The underlying connection was closed: An unexpected error occure

    We have recently installed BPC 51 (SP2). This been working fine for months until yesterday. Now we are getting errors on OLAP Database. Following is the problem description. Any help would be appreciated.
    Received error "The underlying connection was closed:  An unexpected error occurred on a send." while processing dimension. This message appears during 'Create Dimension' sub step( step 2/5). After this BPC server crashes.
    The same error appears while deleting appset during 'Delete OLAP Database' sub step (step 2/4). We are also not able to restore an appset since the process hangs during OLAP Database stage.
    Software version: BPC Version 5.0.102 SP2
    MS SQL Server 2005
    Microsoft SQL Server Management Studio      9.00.3042.00
    Microsoft Analysis Services Client Tools      2005.090.3042.00
    Microsoft Data Access Components (MDAC)      2000.086.3959.00 (srv03_sp2_rtm.070216-1710)
    Microsoft MSXML      2.6 3.0 4.0 5.0 6.0
    Microsoft Internet Explorer      6.0.3790.3959
    Microsoft .NET Framework      2.0.50727.1433
    Operating System      5.2.3790
    Thanks

    Yes we did that several time, but did not solve the problem.
    Finally, we processed all the dimensions, applications, appsets within SQL server studio and the problem is resolved. I am not sure if this would surface again.
    Thanks
    Edited by: Sankaranarayanan Janakiraman on Jun 19, 2008 8:34 AM

  • An unexpected error occurred in Report Processing. (rsInternalError)

    Hi ,
    An unexpected error occurred in Report Processing. (rsInternalError)
    Get Online Help
    The type initializer for 'Microsoft.ReportingServices.Library.RSLocalCacheManager' threw an exception.
    The type initializer for 'Microsoft.ReportingServices.Diagnostics.MemoryAuditCollection' threw an exception.
    Exception of type 'System.OutOfMemoryException' was thrown.
    I get the above error message when i click to see the cube status on SSRS home page under admin reports .
    probably all the  TFS 2012  reports  shows the same error message.
    Please advice...
    No space issue is seen  for the Tfs report server DB or temp db.
    Below is  what i find in the  reporting service Logs..
    processing!ReportServer_0-78!179c!04/30/2014-09:41:07:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred
    in Report Processing. ---> System.TypeInitializationException: The type initializer for 'Microsoft.ReportingServices.Library.RSLocalCacheManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.ReportingServices.Diagnostics.MemoryAuditCollection'
    threw an exception. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
       at Microsoft.ReportingServices.Diagnostics.MemoryAuditCollection..cctor()
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.Diagnostics.MemoryAuditCollection.Register(MemoryAuditProxy map)
       at Microsoft.ReportingServices.Library.RSLocalCacheManager..ctor()
       at Microsoft.ReportingServices.Library.RSLocalCacheManager..cctor()
       --- End of inner exception stack trace ---
       at Microsoft.ReportingServices.Library.SegmentCache.TryGetCache(Guid segmentId, Byte[]& buffer)
       at Microsoft.ReportingServices.Library.CacheStorageLayer.Read(SegmentChunkDbInterface storage, ReadWriteParameters parameters, ReadWriteStatistics& statistics)
       at Microsoft.ReportingServices.Library.SegmentedChunkStorage.Read(Int64 position, Byte[] buffer, Int32 offset, Int32 length)
       at Microsoft.ReportingServices.Library.StorageStream.Read(Byte[] buffer, Int32 offset, Int32 count)
       at Microsoft.ReportingServices.Library.BufferedReadWriteStream.FillBuffer(Int32& bytesRead)
       at Microsoft.ReportingServices.Library.BufferedReadWriteStream.ReadByte()
       at System.IO.BinaryReader.ReadByte()
    An unexpected error occurred in Report Processing. ---> Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.Exception: For more information about this
    error navigate to the report server on the local server machine, or enable remote errors
       at Microsoft.ReportingServices.Library.ReportingService2005Impl.GetProperties(String Item, Property[] Properties, ItemNamespaceEnum itemNamespace, Property[]& Values)
       at Microsoft.ReportingServices.WebServer.ReportingService2010.GetProperties(String ItemPath, Property[] Properties, Property[]& Values)
       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)
    Thanks,
    Manish

    Hi,
    1. Are you using the NLB? If possible, please turn off the NLB temporally to see whether the is gone.
    2. Try to enlarge the execution timeout value in the web.config.
    a. Backup the web.config first. Then, open the web.config from the report server folder, located at c:\Program Files\Microsoft SQL Server\MSRS11.<instance name>\Reporting Services\ReportServer\ by default.
    b. Find out the following line in the file.
    <httpRuntime executionTimeout="9000" />
    c. Modify the attribute value from 9000 to 36000. Save the web.config file and restart the reporting service.
    3. Restart the reporting service and then you need reproduce this issue, and collect the new reporting service logs.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • SSRS Reporting manages goes down frequently. ERROR: The underlying connection was closed: An unexpected error occurred on a send.

    We have been experiencing issues with SSRS over the past 5 weeks, the service goes down frequently. And it comes up only on reboot of the server.
    We had also disabled the On Access scan in Mcafee.
    The service is in use for about two years, and the below error started occuring over the last few days. Please advise on this.
    ui!ReportManager_0-2!24e8!08/14/2014-18:13:45:: e ERROR: The underlying connection was closed: An unexpected error occurred on a send.
    ui!ReportManager_0-2!24e8!08/14/2014-18:13:45:: e ERROR: HTTP status code --> 500
    -------Details--------
    System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException:
    An existing connection was forcibly closed by the remote host
       at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
       at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       --- End of inner exception stack trace ---
       at System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size)
       at System.Net.ConnectStream.WriteHeaders(Boolean async)
       --- End of inner exception stack trace ---
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.GetSecureMethods()
       at Microsoft.ReportingServices.UI.Global.RSWebServiceWrapper.GetSecureMethods()
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.IsSecureMethod(String methodname)
       at Microsoft.SqlServer.ReportingServices2005.RSConnection.ValidateConnection()
       at Microsoft.ReportingServices.UI.Global.SecureAllAPI()
       at Microsoft.ReportingServices.UI.ReportingPage.EnsureHttpsLevel(HttpsLevel level)
       at Microsoft.ReportingServices.UI.ReportingPage.ReportingPage_Init(Object sender, EventArgs args)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Web.UI.Control.OnInit(EventArgs e)
       at System.Web.UI.Page.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    ui!ReportManager_0-2!24e8!08/14/2014-18:13:46:: e ERROR: Exception in ShowErrorPage: System.Threading.ThreadAbortException: Thread was being aborted.
       at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg) at    at System.Threading.Thread.AbortInternal()
       at System.Threading.Thread.Abort(Object stateInfo)
       at System.Web.HttpResponse.End()
       at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
       at Microsoft.ReportingServices.UI.ReportingPage.ShowErrorPage(String errMsg)
    library!ReportServer_0-1!1c90!08/14/2014-18:13:51:: Call to ListParentsAction(/Data Sources).
    library!ReportServer_0-1!1c90!08/14/2014-18:13:51:: Call to ListParentsAction(/Data Sources).
    library!ReportServer_0-1!1c90!08/14/2014-18:13:51:: Call to ListChildrenAction(/Data Sources, False).
    webserver!ReportServer_0-1!1c90!08/14/2014-18:13:51:: i INFO: Processed folder '/Data Sources'
    library!ReportServer_0-1!68c!08/14/2014-18:13:56:: Call to GetItemTypeAction(/).
    library!ReportServer_0-1!68c!08/14/2014-18:13:56:: Call to ListParentsAction(/).
    library!ReportServer_0-1!68c!08/14/2014-18:13:56:: Call to ListChildrenAction(/, False).
    webserver!ReportServer_0-1!68c!08/14/2014-18:13:56:: i INFO: Processed folder '/'

    Hi SThiyag,
    Based on your error message, it may be related to the “SecureConnectionLevel” in the RSReportServer.config file. Please go to C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer, use Notepad to open the RSReportServer.config,
    modify <Add Key="SecureConnectionLevel" Value="0"/>, change the value into "1" or "2".
    (Note: Please backup the file before modify it.)
    Acceptable values are: 
    3 Most secure—Use SSL for absolutely everything.
    2 Secure—Use SSL for rendering and methods that pass credentials but don't insist on it for all SOAP calls.
    1 Basic Security—Accepts http but rejects any calls that might be involved in the passing of credentials.
    0 Least Secure—Don't use SSL at all
    Here is a blog for error message "The underlying connection was closed...", please refer to the link below:
    http://blogs.msdn.com/b/engelsr/archive/2005/11/29/the-underlying-connection-was-closed.aspx
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Unexpected Error Occurred (error code -600) after Leopard Installation

    Installed Leopard for the second time.
    Everything seems to work fine, but after opening and then closing Mail, I'm unable to open it via the dock. Tried to open by selecting from the applications menu, and get the following message:
    The operation could not be completed.
    An unexpected error occurred (error code -600)
    Same thing with Backup, Parallels too.
    Shutdown behavior is odd. From the apple icon, shutdown doesn't work, everything goes away on the desktop, then the spinning wheel (not beach ball), then nothing. Have to power off to quit, can't be good for the hardware.
    Any suggestions, or am I doomed to a clean install and reinstalling all of my applications? Thankfully I have a drive backed up with SuperDuper with 10.4!
    Thanks for the help.

    OK, I've got ContentBarrier X4 installed and this was the cause of my error codes and it looks like several - if not all of my installation issues with Leopard.
    Apparently, perhaps with Login KeyChain update, it wiped out the ContentBarrier administration name, and on launch, it was likely blocking the applications.
    First, install the Login KeyChain update (see Apple software download page).
    Reinstalled ContentBarrierX4 http://www.intego.com/services/updates.asp (make sure to select ContentBarrierX4).
    Open ContentBarrierX4 - you'll have to sign in as the administer. You may have to go into Preferences > Accounts > to make sure that you've got admin rights.
    Once you logged in, exit, then reboot.
    For the first time since installing Leopard, I can shutdown without a hard power off.
    Salvation...

  • XSQL-017: Unexpected Error Occurred with fo:list-block

    I will create a list in a pdf-file. I'm using:
    <fo:list-block>
    <fo:list-item>
    <fo:list-item-label>
    <fo:block>&bull;</fo:block>
    </fo:list-item-label>
    <fo:list-item-body>
    <xsl:apply-templates select="PARAGRAPH"/>
    </fo:list-item-body>
    </fo:list-item>
    </fo:list-block>
    This makes following error:
    Oracle XSQL Servlet Page Processor 9.0.2.0.0 (Beta)
    XSQL-017: Unexpected Error Occurred
    java.lang.RuntimeException: java.lang.NullPointerException
    at oracle.xml.xsql.serializers.XSQLFOPSerializer.serialize(XSQLFOPSerializer.java:80)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:273)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
    at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:484)
    If I create the list without the xsl:apply-templates, works it fine.
    If I only use the xsl:apply-templates without fo:list, works it fine.
    Is this a bug in the servlet?

    Forget about it. I found the error: I forgot to use the fo:block tag surrounding the xsl:apply-templates-tag.
    Sorry!

  • An Unexpected error occurred.(Error: WIJ 44444)

    Hi
             I am using BO 6.5.1 whilst accessing Webi reports from Infoview I am getting below error message.
    u201CAn Unexpected error occurred.contact your administrator with details of actions you performed before the error occrred.(Error: WIJ 44444)u201D
    I am using data in my universe from Teradata. and my application server and business objects are installed on UNIX box. can any body advise me what is the root cause and what kind of check can explain me the root cause of the same.
    Cheers,
    Jacks Arunkumar LouisMartin

    Hi Arun,
    Following solution might help you to resolve the issue.
    In case the solution doesn't works for you then test the issue on SP2 under test environment as some of the WIJ44444 errors are resolved in SP2.
    Apache web server does not start after "./wserversctl start" command on UNIX.
    WebIntelligence version 6.5
    UNIX
    Apache web server
    Tomcat application server
    You execute "./wserversctl start" and Tomcat starts, but Apache fails to start. You look for the web server process with the following command, but get no results:
    ps -ef | grep httpd
    You execute "./wserversctl stop" and receive the following response:
    httpd (pid ?) not running
    You change directories to "$APACHE/bin" and execute the "./httpd" command, and you receive an error similar to the following:
    ld.so.1: ./httpd: fatal: libaprutil-0.so.0: open failed: No such file or directory
    Killed
    *********CAUSE*************
    The default configuration for Apache is not correct for this server.
    The "httpd.conf" configuration file has the wrong entry for Group.
    Here are the steps to follow:
    1.Change directories to "$APACHE/conf".
    2.Open the file "httpd.conf" in a text editor such as vi.
    3.Locate the following line in the configuration file:
    Group # -1
    4.Modify this line to read as the following:
    Group nobody
    5.Save the file and exit the editor.
    6.Rerun "./wserversctl start" command to restart the processes.
    Regards,
    Sarbhjeet Kaur

  • Unexpected error occurred in method 'Put' , usage 'SPViewStateCache' - Exception

    I am getting below error when I am trying to upload a document to SP 2013 using CSOM (Of BizTalk)
    Unexpected error occurred in method 'Put' , usage 'SPViewStateCache' - Exception 'Microsoft.ApplicationServer.Caching.DataCacheException: ErrorCode<ERRCA0018>:SubStatus<ES0001>:
    The request timed out.. Additional Information : The client was trying to communicate with the server :net.tcp://XXXX:22233  
    at Microsoft.ApplicationServer.Caching.DataCache.ThrowException(ResponseBody respBody, RequestBody reqBody)    
    at Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, 
    DataCacheTag[] tags, String region, IMonitoringListener listener)  
    Somewhere down the logs then another following error is recorded:
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Warning"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Channels.SocketConnectionAbort.aspx</TraceIdentifier><Description>SocketConnection
    aborted</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Source>System.ServiceModel.Channels.SocketConnection/15268232</Source></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    I/O operation has been aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Obje...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ct sender, SocketAsyncEventArgs eventArgs)     at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError socketError, Int32 bytesTransferred, SocketFlags flags)     at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32
    errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)  </StackTrace><ExceptionString>System.Net.Sockets.SocketException
    (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.SocketConne...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ction.EndRead()     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.HandleIO(IConnection connection)     at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object state)    
    at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError socketError, Int32 bytesTransferred, SocketFlags
    flags)     at System.Net.Sockets.SocketAsyncEventArgs.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode,
    UInt32 numBytes, NativeOverlapped* pOVERLAP)  </StackTrace><ExceptionString>System.TimeoutEx...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ception: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException:
    The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object
    sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    I/O opera...  
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...tion has been aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object
    sender, SocketAsyncEventArgs eventArgs)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.StreamConne...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ction.EndRead()     at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)     at System.Runtime.Fx.AsyncThunk.UnhandledExceptionFrame(IAsyncResult result)     at System.Net.LazyAsyncResult.Complete(IntPtr
    userToken)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     at System.Runtime.AsyncResult.Complete(Boolean completedSynchronously)     at System.ServiceModel.Channels.ConnectionStream.IOAsyncResult.OnAsyncIOComplete(Object
    state)     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAsyncFailure(SocketError socketError, Int32 bytesTransferred,
    SocketFlags flags)     at System.Net.Sockets.SocketAsyncEv...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...entArgs.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)     at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
     </StackTrace><ExceptionString>System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion
    of a longer timeout. ---&amp;gt; System.IO.IOException: The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted
    timeout of 00:01:00. The time allotted to this operation may have b...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...een a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---
        at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at Syst...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...em.ServiceModel.Channels.StreamConnection.EndRead()     --- End of inner exception stack trace ---</ExceptionString><InnerException><ExceptionType>System.IO.IOException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    read operation failed, see inner exception.</Message><StackTrace>   at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at System.ServiceModel.Channels.StreamConnection.EndRead()</StackTrace><ExceptionString>System.IO.IOException:
    The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException: The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may
    have been a port...  
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---
        at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at System.Service...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...Model.Channels.StreamConnection.EndRead()</ExceptionString><InnerException><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</StackTrace><ExceptionString>System.TimeoutException:
    The socket was aborted because an asynchronous receive fr...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...om the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because
    of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs
    eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)  
      at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</ExceptionString>...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...<InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The I/O operation has been aborted because of either a thread
    exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs
    eventArgs)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Ob...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ject sender, SocketAsyncEventArgs eventArgs)</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></InnerException></InnerException></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    System.ServiceModel Error: 131075 : 
    06/25/2014 08:29:23.88  w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error"><TraceIdentifier>http://msdn.microsoft.com/en-US/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier><Description>Throwing
    an exception.</Description><AppDomain>/LM/W3SVC/2/ROOT/81d12ab944d94c29a629fae7508ad28b-1-130481510403888701</AppDomain><Exception><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.ServiceModel.Channels.StreamConne...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ction.EndRead()     at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)</StackTrace><ExceptionString>System.TimeoutException: The socket was aborted because an asynchronous receive from the
    socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.IO.IOException: The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException:
    The socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException:
    The I/O operation has been aborted because of ei...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ther a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs
    eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)  
      at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---     at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)     at System.ServiceModel.Channels.StreamConnection.EndRead()
        --- End of inner exception stack trace ---     at System.ServiceModel.Chann...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...els.StreamConnection.EndRead()     at System.ServiceModel.Channels.SessionConnectionReader.OnAsyncReadComplete(Object state)</ExceptionString><InnerException><ExceptionType>System.IO.IOException, mscorlib, Version=4.0.0.0,
    Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The read operation failed, see inner exception.</Message><StackTrace>   at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncResult)    
    at System.ServiceModel.Channels.StreamConnection.EndRead()</StackTrace><ExceptionString>System.IO.IOException: The read operation failed, see inner exception. ---&amp;gt; System.TimeoutException: The socket was aborted because an asynchronous
    receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this oper...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)     --- End of inner exception stack trace ---
        at System.Net.Security.NegotiateStream.EndRead(IAsyncResult asyncRes...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...ult)     at System.ServiceModel.Channels.StreamConnection.EndRead()</ExceptionString><InnerException><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The
    socket was aborted because an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout.</Message><StackTrace>   at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult
    result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult)</StackTrace><ExceptionString>System.TimeoutException:
    The socket was aborted because ...  
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...an asynchronous receive from the socket did not complete within the allotted timeout of 00:01:00. The time allotted to this operation may have been a portion of a longer timeout. ---&amp;gt; System.Net.Sockets.SocketException: The I/O operation
    has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object sender,
    SocketAsyncEventArgs eventArgs)     --- End of inner exception stack trace ---     at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)     at System.ServiceModel.Channels.ConnectionStream.ReadAsyncResult.End(IAsyncResult
    result)     at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transpor...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...tResult)</ExceptionString><InnerException><ExceptionType>System.Net.Sockets.SocketException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>The I/O operation has been
    aborted because of either a thread exit or an application request</Message><StackTrace>   at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()     at System.ServiceModel.Channels.SocketConnection.OnReceiveAsync(Object
    sender, SocketAsyncEventArgs eventArgs)</StackTrace><ExceptionString>System.Net.Sockets.SocketException (0x80004005): The I/O operation has been aborted because of either a thread exit or an application request     at System.ServiceModel.Channels.SocketConnection.HandleReceiveAsyncCompleted()
        at System.ServiceModel.Channels.SocketCo...
    06/25/2014 08:29:23.88* w3wp.exe (0x1A24)                       
    0x1600 SharePoint Foundation         
    Service Connections           
    ev2x Verbose 
    ...nnection.OnReceiveAsync(Object sender, SocketAsyncEventArgs eventArgs)</ExceptionString><NativeErrorCode>3E3</NativeErrorCode></InnerException></InnerException></InnerException></Exception></TraceRecord>
    06/25/2014 08:29:23.88  w3wp.exe (0x2308)                       
    0x20BC SharePoint Foundation         
    Monitoring                    
    nasq Verbose 
    Entering monitored scope (SPFileStreamManager.GetStreamInfo). Parent SPSqlClient
    183e9e9c-5ed6-e0aa-f49d-829231a7c856
    06/25/2014 08:29:23.88  w3wp.exe (0x2308)                       
    0x20BC SharePoint Foundation         
    Monitoring                    
    b4ly Verbose 
    Regards
    Ritu Raj
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    Problem with distributed cache connection, Check below
    http://www.dmcinfo.com/latest-thinking/blog/id/8657/fix-sharepoint-2013-distributed-cache-timeouts
    http://habaneroconsulting.com/insights/SharePoint-2013-Distributed-Cache-Bug#.U6p506Nn01s
    http://social.technet.microsoft.com/forums/sharepoint/en-US/fd3bca97-5d75-4a67-87ca-aac7bb5f6352/setup-spn-for-appfabric-distributed-cache-in-sharepoint-2013
    http://social.msdn.microsoft.com/Forums/en-US/317ef084-1174-4c4e-8d23-d1c56bd0db73/sharepoint-2013-workflows-keep-crashing-due-to-distributed-logon-token-cache-timeouts-cache-keeps?forum=sharepointadmin
    If this helped you resolve your issue, please mark it Answered

  • An unexpected error occurred. Error 46645

    I get the same error when trying to export a PerformancePoint dashboard item to Excel.
    Microsoft.PerformancePoint.Scorecards.BpmException: An unexpected error occurred. Error 46645. Additional details have been logged for your administrator.
    at Microsoft.PerformancePoint.Scorecards.BIMonitoringServiceApplicationProxy.ExecuteOnChannel(CodeBlock codeBlock)
    at Microsoft.PerformancePoint.Scorecards.BIMonitoringServiceApplicationProxy.ExportScorecard(ExportSettings exportSettings, RepositoryLocation scorecardLocation, WebPartContext webPartContext)
    at Microsoft.PerformancePoint.Scorecards.WebControls.ScorecardWebPart.Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.IOfficeExportWebControl.ExportOfficeDocument(ExportSettings exportSettings)
    at Microsoft.PerformancePoint.Scorecards.WebControls.OfficeExportPage.OnLoad(EventArgs e)
    PerformancePoint Services error code 20402.
    An unexpected error occurred. Error 46645.
    Exception details:
    System.ServiceModel.FaultException: 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 3.0 SDK documentation and inspect the server trace logs.
    Server stack trace:
    at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
    at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
    at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at Microsoft.PerformancePoint.Scorecards.IBIMonitoringServiceApplication.ExportScorecard(String exportSettings, RepositoryLocation scorecardLocation, WebPartContext webPartContext)
    at Microsoft.PerformancePoint.Scorecards.BIMonitoringServiceApplicationProxy.<>c__DisplayClassca.<ExportScorecard>b__c9(IBIMonitoringServiceApplication channel)
    at Microsoft.PerformancePoint.Scorecards.BIMonitoringServiceApplicationProxy.ExecuteOnChannel(CodeBlock codeBlock)
    An unexpected error occurred. Error 63833.
    Exception details:
    System.NullReferenceException: Object reference not set to an instance of an object.
    at Microsoft.PerformancePoint.Scorecards.BIMonitoringServiceApplication.ExportScorecard(String exportSettings, RepositoryLocation scorecardLocation, WebPartContext webPartContext)
    at SyncInvokeExportScorecard(Object , Object[] , Object[] )
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
    An unexpected error occurred while trying to export.
    System.NullReferenceException: Object reference not set to an instance of an object.
    at Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.Engine.GridFactory.AddGridCell(Int32 absoluteRow, Int32 absoluteColumn, GridCell cell, GridHeaderItem rowGridHeaderItem, GridHeaderItem columnLeafItem, GridFormatInfo format, Int32 maxDisplayElements)
    at Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.Engine.GridFactory.AddGridCell(GridHeaderItem rowHeader, Int32& currentRowOffset, Int32 absoluteColumn, GridHeaderItem colLeafItem, Int32 maxDisplayElements)
    at Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.Engine.GridFactory.TraverseRowHeaders(Int32 absoluteColumn, GridHeaderItem colLeafItem, Int32 maxDisplayElements)
    at Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.Engine.GridFactory.TraverseColumnTree(GridHeaderItem colItem, Int32 rowThreshold, Single& colHeaderWidth, Single& colHeaderOffset)
    at Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.Engine.GridFactory.TraverseColumnTree(GridHeaderItem colItem, Int32 rowThreshold, Single& colHeaderWidth, Single& colHeaderOffset)
    at Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.Engine.GridFactory.ProcessScorecard(ExportFormat exportFormat, GridViewData viewData, DataTable filterTable, Boolean filterMode, DictionaryWrapper`2 clientViewState)
    at Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.Engine.GridFactory.CreateGridFromScorecard(ExportFormat exportFormat, IExportModel exportModel, RelatedInfo relatedInfo, GridViewData currentGridViewData, PrimitiveGrid& primitiveGrid, String[]&
    tempFileCleanupLog, DataTable filterTable, Boolean filterMode, DictionaryWrapper`2 clientViewState)
    at Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.Engine.GridFactory.CreateGridFromScorecard(ExportFormat exportFormat, IExportModel exportModel, RelatedInfo relatedInfo, PrimitiveGrid& primitiveGrid, String[]& tempFileCleanupLog, DataTable
    filterTable, Boolean filterMode, DictionaryWrapper`2 clientViewState)
    at Microsoft.PerformancePoint.Scorecards.ServerCommon.Export.NativeExport.ExportToOfficeDocument(ExportFormat exportFormat, RelatedInfo relatedInfo, IExportModel exportModel, DataTable filterTable, Boolean filterMode, DictionaryWrapper`2 clientViewState)
    PerformancePoint Services error code 20400.
    g

    Found a solution for my problem.
    I just recreate the service application - not choosing a special App Pool account but the Farm Account. I now thats not the right way but now it is possible to locate the problem.
    It seems that SharePoint have a problem to setup the right permissons on the database,  if you create the service Application on another Account than the Farmaccount. Some other people get the same issue with Word or Excel
    Services.
    If somebody knows proper permissions on the database - please post it 

Maybe you are looking for