Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. WCF Service is giving faulted Exception

WCF Service is giving faulted Exception

Scheduled Pinned Locked Moved ASP.NET
architecturehelpcsharpasp-netwcf
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    simpledeveloper
    wrote on last edited by
    #1

    Hi friends, My WCF Service that's deployed is giving me the faulted Exception as below:

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Loggedin User: DHSINTRA\AAleemMo
    Error Message: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
    Error Source: mscorlib
    Error InnerException Message:
    Error TargetSite: Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
    Error StackTrace:
    Server stack trace:
    at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)

    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 System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout)
    at System.ServiceModel.ClientBase`1.System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout)
    at DHCS.BH.Provider.WebApp.Common.WebAppLogger.LogError(String applicationName, String version, Exception exception, Nullable`1 dateTS, String appUsername, String nameSpace, String class, String method, Int32 enumPriority)
    at DHCS.BH.Provider.WebApp.Filters.BHPRVAuthorizeAttribute.LoadUserAuthorizationDetails(AuthorizationContext filterContext, String userName)
    at DHCS.BH.Provider.WebApp.Filters.BHPRVAuthorizeAttribute.OnAuthorization(AuthorizationContext filterContext)
    at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor)
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.b__0(AsyncCallback asyncCallback, Object asyncState)
    Error Controller: LegalEntity
    Error Action: ListLegalEntities

    I read online, they are suggesting to implement the WCF Extension class, but I am not in a stage to change the whole process or architecture again, is there any other solution that can help me please or is it really failing because of the timeout, any help a code snippet, a link or even a suggestion helps me a lot - thanks in advance my friends.

    A 1 Reply Last reply
    0
    • S simpledeveloper

      Hi friends, My WCF Service that's deployed is giving me the faulted Exception as below:

      ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      Loggedin User: DHSINTRA\AAleemMo
      Error Message: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.
      Error Source: mscorlib
      Error InnerException Message:
      Error TargetSite: Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)
      Error StackTrace:
      Server stack trace:
      at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpan timeout)

      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 System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout)
      at System.ServiceModel.ClientBase`1.System.ServiceModel.ICommunicationObject.Close(TimeSpan timeout)
      at DHCS.BH.Provider.WebApp.Common.WebAppLogger.LogError(String applicationName, String version, Exception exception, Nullable`1 dateTS, String appUsername, String nameSpace, String class, String method, Int32 enumPriority)
      at DHCS.BH.Provider.WebApp.Filters.BHPRVAuthorizeAttribute.LoadUserAuthorizationDetails(AuthorizationContext filterContext, String userName)
      at DHCS.BH.Provider.WebApp.Filters.BHPRVAuthorizeAttribute.OnAuthorization(AuthorizationContext filterContext)
      at System.Web.Mvc.ControllerActionInvoker.InvokeAuthorizationFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor)
      at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass3_1.b__0(AsyncCallback asyncCallback, Object asyncState)
      Error Controller: LegalEntity
      Error Action: ListLegalEntities

      I read online, they are suggesting to implement the WCF Extension class, but I am not in a stage to change the whole process or architecture again, is there any other solution that can help me please or is it really failing because of the timeout, any help a code snippet, a link or even a suggestion helps me a lot - thanks in advance my friends.

      A Offline
      A Offline
      Ali Al Omairi Abu AlHassan
      wrote on last edited by
      #2

      this exception means that you have some thing wrong n the server side and you cant use this channel any more see this page Help people,so poeple can help you.

      S 1 Reply Last reply
      0
      • A Ali Al Omairi Abu AlHassan

        this exception means that you have some thing wrong n the server side and you cant use this channel any more see this page Help people,so poeple can help you.

        S Offline
        S Offline
        simpledeveloper
        wrote on last edited by
        #3

        Is there anyway how can I find what is the Problem that I am having on Server Side, because the exception doesn't give me any specific reason to fix the problem. Please any help would be great-full my friend - thanks in advance.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups