web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Integrating Microsoft Dynamics NAV 2017 with Outlook 2016

(0) ShareShare
ReportReport
Posted on by

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?

*This post is locked for comments

I have the same question (0)
  • AJAnsari Profile Picture
    5,754 on at

    The ClientUserSettings.config file (typically stored on the machine from where user is accessing the NAV RoleTailored Client, by default in: C:\Users\<username>\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\<version>) contains a reference to where the NAV service tier is, and check if the server references are made as localhost (this may happen if the user is connecting to NAV from the server itself).

    Also, in the NAV 2017 Administration Tool, check the "Web Client Base URL" property in Client Services for the NAV Service Tier you are using. Here, it may be blank, or use the Localhost reference. You can replace Localhost with a fully qualified reference to the server.

    If you make any changes, be sure to restart the NAV Service Tier before testing and possibly quitting Outlook and starting again.

    I hope this helps. If my response has answered your question, please verify by clicking Yes next to "Did this answer your question?"

  • Community Member Profile Picture
    on at

    Hello AJ Ansari,

    Thank you for replying to my query. I have tried to make it localhost, in config file as well as on administration tool. Did not work. Also i tried to specify server reference name in both config and administration too. Did not work.

    For reference, i am attaching screen grab of error.

    0677.Error.png

    Thanks,

    Arpan

  • Community Member Profile Picture
    on at

    Hi Arphan,

    have you found the solutions?

  • Verified answer
    Community Member Profile Picture
    on at

    No not yet. Let me know if you have get it done. I tried on default ports, without changing it and it worked. Seems it is taking ports hard coded somewhere, not sure, but in my case, keeping installation on default ports, worked.

  • Community Member Profile Picture
    on at

    Hi ArpanBhagat,

    Can you please explain the steps followed to integrate Nav 2017 with Outlook 2016. In my outlook 2016 i could't find the Dynamics Nav action button.

    Thanks

    Rajasekar

  • Community Member Profile Picture
    on at

    Hi Rajasekar,

    I have followed the link given by Mr. Sourav Dhyani.

    saurav-nav.blogspot.in/.../microsoft-dynamics-nav-2017-how-do-i.html

    Thanks,

    Arpan

  • Suggested answer
    Community Member Profile Picture
    on at

    Look in the webclient-config (nav-settings.json in inetpub of your webclient for NAV 2018 - for NAV 2017 it should be the web.config - maybe you can add a key there - not sure) -> there is a point where the management-port is needed, if it is not the standard-port

    "//ManagementServicesPort":  "The listening TCP port for the Microsoft Dynamics NAV management endpoint. Valid range: 1-65535",

                              "ManagementServicesPort":  "7185", <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

    sorry, i had it in NAV 2018

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans