Thursday, March 15, 2012

Devart WCF Data Service "NET: Unknown error 1"

Problem :- Some time WCF Data Services running via Devart Data Driver Throws Exception  "NET: Unknown error 1"
<message>NET: Unknown error 1</message>
      <type>System.Exception</type>
      <stacktrace>at Devart.Data.Oracle.DirectUtils.b(Int32 A_0) at 

Solution : In My case root cause of this problem was out of memory problem , Increasing system memory and page file works for me.


Detailed Error Trace

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
  <code />
  <message xml:lang="en-US">An error occurred while processing this request.</message>
  - <innererror>
    <message>Exception has been thrown by the target of an invocation.</message>
    <type>System.Reflection.TargetInvocationException</type>
    <stacktrace>at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.Data.Services.Providers.BaseServiceProvider.InvokeServiceOperation(ServiceOperation serviceOperation, Object[] parameters)
    at System.Data.Services.RequestUriProcessor.CreateFirstSegment(IDataService service, String identifier, Boolean checkRights, String queryPortion, Boolean isLastSegment, Boolean& crossReferencingUrl)
    at System.Data.Services.RequestUriProcessor.CreateSegments(String[] segments, IDataService service) at System.Data.Services.RequestUriProcessor.ProcessRequestUri(Uri absoluteRequestUri, IDataService service)
    at System.Data.Services.DataService`1.ProcessIncomingRequestUri() at System.Data.Services.DataService`1.HandleRequest()</stacktrace>
    - <internalexception>
      <message>NET: Unknown error 1</message>
      <type>System.Exception</type>
      <stacktrace>at Devart.Data.Oracle.DirectUtils.b(Int32 A_0) at Devart.Data.Oracle.DirectUtils.a()
      at Devart.Data.Oracle.cd.a(Byte A_0) at Devart.Data.Oracle.cb.a(Byte A_0)
      at Devart.Data.Oracle.cp.a() at Devart.Data.Oracle.ao.a()
      at Devart.Data.Oracle.g.a()
      at Devart.Data.Oracle.u.a(Int32 A_0, bh A_1)
      at Devart.Data.Oracle.OracleCommand.InternalExecute(CommandBehavior behavior, IDisposable disposable, Int32 startRecord, Int32 maxRecords, Boolean nonQuery)
      at Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior behavior, Boolean nonQuery)
      at Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior behavior)
      at System.Data.Common.DbCommand.ExecuteReader()
      at System.Data.Objects.ObjectContext.ExecuteStoreQueryInternal[TElement](String commandText, String entitySetName, MergeOption mergeOption, Object[] parameters)
      at System.Data.Objects.ObjectContext.ExecuteStoreQuery[TElement](String commandText, Object[] parameters)
      at BUSS.ODS.HCOHCPAlternateIDDataService.HCOHCPAlternateIDs(String language, String country, String partytype) in Y:\src\BUSS\Service.cs:line 60</stacktrace>
    </internalexception>
  </innererror>
</error>

No comments:

Post a Comment