Hello Experts,
I have managed to integrate Dynamics Navision 2017 with Outlook 2016, and I am able to create all new docs, such as Sales Quotes, Sales Orders, Sales Invoices, etc. But the issue I am getting is, when I am sending quote from Outlook using "Send by Email" function, it is generating a new e-mail with quote information in body but shows "Download Failed" in attachments section of the e-mail generated. When I checked the event viewer, I found below error message:
Error accessing Website Microsoft Dynamics NAV 2017 Web Client
Raw Url: /DynamicsNAV100/WebClient/OpenDynamicFileHandler.axd?token=AkXi96NoXoDiaL9TP4_PyDhAfpaF9vv7c0FI1sO85vk
Url: XXXXXX.com/.../OpenDynamicFileHandler.axd
Type: System.ServiceModel.EndpointNotFoundException
Message: Could not connect to net.tcp://localhost:7045/NAV17/OpenDynamicFileHandler. The connection attempt lasted for a time span of 00:00:02.0202835. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:7045.
StackTrace:
Server stack trace:
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOpenOnce.System.ServiceModel.Channels.ServiceChannel.ICallOnce.Call(ServiceChannel channel, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
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.Dynamics.Nav.Types.IOpenDynamicFileHandlerService.GetUrlAccessibleMedia(Uri uri)
at Microsoft.Dynamics.Nav.Client.Web.SimpleServerOperation.ExecuteCore[TResult,TChannel](ConnectionOptions serverConnectionOptions, Func`2 operation, Func`3 operationWithContext, Func`2 localExceptionHandler)
at Microsoft.Dynamics.Nav.Client.Web.SimpleServerOperation.Execute[TResult,TChannel](ConnectionOptions serverConnectionOptions, Func`2 operation, Func`2 localExceptionHandler)
at Microsoft.Dynamics.Nav.Client.Web.MediaServerOperations.GetUrlAccessibleMedia(Uri uri)
at Microsoft.Dynamics.Nav.Client.Web.OpenDynamicFileHandler.ProcessBlobRequest(HttpContext context, IExceptionHandler exceptionHandler, ClientSessionBase clientSession)
at Microsoft.Dynamics.Framework.UI.Web.DynamicBlobHandler.ProcessRequestCore(HttpContext context, IExceptionHandler exceptionHandler, ClientSessionBase clientSession)
at Microsoft.Dynamics.Framework.UI.Web.HttpHandlerBase.ProcessRequest(HttpContext context)
Source: mscorlib----------------------------------
Type: System.Net.Sockets.SocketException
Message: No connection could be made because the target machine actively refused it 127.0.0.1:7045
StackTrace:
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
Source: System
I am not sure from where it is getting "net.tcp://localhost:7045/NAV17/OpenDynamicFileHandler", and where I can configure the port 7045.
Any suggestions?