System.Reflection.TargetInvocationException

braveheartbraveheart Member Posts: 14
edited 2012-11-26 in NAV Three Tier
Microsoft Dynamics NAV Business Web Services
MicrosoftDynamicsNavWS service is restarting again and again. Following error has been found in system's Application log.

Please help here..!

Error message from Application Log:

"The description for Event ID 0 from source MicrosoftDynamicsNAVServer cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

Service: MicrosoftDynamicsNavWS
User: ***********
Type: System.Reflection.TargetInvocationException
Message: Exception has been thrown by the target of an invocation.
StackTrace:
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle 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 Microsoft.Dynamics.Nav.Service.WebServices.ServiceCodeunitXmlAdapter.<>c__DisplayClass4.<>c__DisplayClass6.<Dispatch>b__1()
at Microsoft.Dynamics.Nav.Runtime.NavConnection.TransactionScope(TransactedCode code)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceCodeunitXmlAdapter.<>c__DisplayClass4.<Dispatch>b__0()
at Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceCodeunitXmlAdapter.Dispatch(XmlElement input, XmlWWriter output)
at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler.<>c__DisplayClass4.<Microsoft.Dynamics.Nav.Service.WebServices.IXmlRequestHandler.Dispatch>b__0()
at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler.<>c__DisplayClass9.<BuildEnvelop>b__8()
at Microsoft.Dynamics.Nav.Service.WebServices.XmlWWriter.Element(String name, XmlCallback elementHandler)
at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler.<>c__DisplayClass9.<BuildEnvelop>b__7()
at Microsoft.Dynamics.Nav.Service.WebServices.XmlWWriter.Element(String name, XmlCallback elementHandler)
at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler.<>c__DisplayClass9.<BuildEnvelop>b__6()
at Microsoft.Dynamics.Nav.Service.WebServices.XmlWWriter.SetNamespace(QNamespace namespace, XmlCallback nodeHandler)
at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler.BuildEnvelop(XmlWWriter output, ContentHandler handler)
at Microsoft.Dynamics.Nav.Service.WebServices.SoapHandler.Microsoft.Dynamics.Nav.Service.WebServices.IXmlRequestHandler.Dispatch(XmlElement input, XmlWWriter output)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.DispatchSoap(UrlParser relivantURLPart, XmlReader input, TextWriter output)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke(Boolean isSoapMessage, String serviceName, Uri url, XmlReader input, TextWriter output, String sid)
Source: mscorlib
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.NavAutomation.InvokeMethod[T](String methodName, Object[] arguments)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit*****.FindNode(NavAutomation rootNode, NavText nodePath, ByRef`1 returnedNode)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit*****.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.Runtime.NavApplicationObjectBase.Invoke(Int32 methodId, Object[] arguments)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit*****.GetRequestDocInfo(ByRef`1 xMLDoc, ByRef`1 requestID, ByRef`1 requestUserID, ByRef`1 requestDate, ByRef`1 requestTime)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit*****.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.Runtime.NavApplicationObjectBase.Invoke(Int32 methodId, Object[] arguments)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit*****.ProcessXMLDocument(ByRef`1 xMLDocIn, ByRef`1 xMLDocOut)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit*****.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.Runtime.NavApplicationObjectBase.Invoke(Int32 methodId, Object[] arguments)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit*****.ProcessXMLDocument(ByRef`1 xmlContentIn, ByRef`1 xmlContentOut)
Source: Microsoft.Dynamics.Nav.Ncl

"

Comments

  • kinekine Member Posts: 12,562
    Recompile all objects in your DB with same NAV build as the NST.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • braveheartbraveheart Member Posts: 14
    kine wrote:
    Recompile all objects in your DB with same NAV build as the NST.

    Thanks Kine. But how to do that.
    Just opening objects in NAV Tools > Object Designer and recompiling them.
    If so i have already done that..
  • kinekine Member Posts: 12,562
    Man thing is: have the NAV client you used to compile the objects same build version as the used service tier? Have you restarted the service tier after that?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • deV.chdeV.ch Member Posts: 543
    at Microsoft.Dynamics.Nav.Runtime.NavAutomation.InvokeMethod[T](String methodName, Object[] arguments)
    

    Looks like a problem with an Automation...
    Is this NAV2013? If so Automation do not work with Webservices in NAV2013, they do only work on client side.
  • braveheartbraveheart Member Posts: 14
    deV.ch wrote:
    at Microsoft.Dynamics.Nav.Runtime.NavAutomation.InvokeMethod[T](String methodName, Object[] arguments)
    

    Looks like a problem with an Automation...
    Is this NAV2013? If so Automation do not work with Webservices in NAV2013, they do only work on client side.

    Its NAV 2009..
    All day alerts are coming.. I keep on restarting server and service in following manner

    Stop
    Microsoft Dynamics NAV Business Web Services,
    Microsoft Dynamics NAV Server

    Start
    Microsoft Dynamics NAV Server,
    Microsoft Dynamics NAV Business Web Services

    In Application error logs i found above same error messages, nothing else..???
  • braveheartbraveheart Member Posts: 14
    kine wrote:
    Recompile all objects in your DB with same NAV build as the NST.

    Kine, How to check the build no. of NST???
    Please help
  • braveheartbraveheart Member Posts: 14
    Kine, I have checked.
    NAV client used to compile the objects is having same build version as the used service tier.
    Also I have restarted the service tier after that.

    But still same error message in the application logs of system has been faced.
  • kinekine Member Posts: 12,562
    Than the calling app could be the problem.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.