Server instance: DynamicsNAV110 Tenant ID: <ii>User: DESKTOP-444VJDR\ahmed Type: System.InvalidOperationException Message: <ii>Dynamic operations can only be performed in homogenous AppDomain.</ii> StackTrace: at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 site, Object[] args) at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at Microsoft.Dynamics.Nav.Service.Dev.Web.Controllers.DebuggerHub.OnDebuggeeConnected(Object sender, DebugSessionStartEventArgs eventArgs) at Microsoft.Dynamics.Nav.Runtime.Debugger.DebugRuntimeManager.OnDebuggingSessionStarted(DebugSessionStartEventArgs e) at Microsoft.Dynamics.Nav.Runtime.Debugger.DebugRuntimeManager.CreateRuntime(String debuggingContext, NavSession session, Boolean waitForDebugAdapterConfiguration) at Microsoft.Dynamics.Nav.Runtime.NavSession.StartDebuggingSession(String debuggingContext, Boolean waitForDebugAdapterConfiguration) at Microsoft.Dynamics.Nav.Service.NSService.OpenConnection(ConnectionRequest connectionRequest) at SyncInvokeOpenConnection(Object , Object[] , Object[] ) at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) at Microsoft.Dynamics.Nav.Service.ServiceOperationInvoker.ErrorMappingCombinator(ServiceOperation innerOperation, NSServiceBase serviceInstance, MethodBase syncMethod, Object[] inputs, Object[]& outputs) Source: System.Core HResult: -2146233079
Server instance: DynamicsNAV110 Tenant ID: <ii>User: DESKTOP-444VJDR\ahmed Type: System.NullReferenceException Message: <ii>Object reference not set to an instance of an object.</ii> StackTrace: at Microsoft.Dynamics.Nav.Runtime.Debugger.DebugRuntime.EnsureDetachedFromConnection(NavSession session) at Microsoft.Dynamics.Nav.Runtime.NavSession.ShutdownDebuggingEnvironment(NavBaseException& firstCaughtException) at Microsoft.Dynamics.Nav.Runtime.NavSession.InnerDispose() at Microsoft.Dynamics.Nav.Runtime.NavSession.<DisposeAsync>d__127.MoveNext() Source: Microsoft.Dynamics.Nav.Ncl HResult: -2147467261
Server instance: DynamicsNAV110 Tenant ID: <ii>User: DESKTOP-444VJDR\ahmed Type: System.NullReferenceException Message: <ii>Object reference not set to an instance of an object.</ii> StackTrace: at Microsoft.Dynamics.Nav.Runtime.Debugger.DebugRuntime.EnsureDetachedFromConnection(NavSession session) at Microsoft.Dynamics.Nav.Runtime.NavSession.ShutdownDebuggingEnvironment(NavBaseException& firstCaughtException) at Microsoft.Dynamics.Nav.Runtime.NavSession.InnerDispose() at Microsoft.Dynamics.Nav.Runtime.NavSession.<DisposeAsync>d__127.MoveNext() Source: Microsoft.Dynamics.Nav.Ncl HResult: -2147467261 </ii>
Answers
Try this once
In the Service folder on Service Tier(C:\Program Files\Microsoft Dynamics NAV\110\Service) you will find Microsoft.Dynamics.Nav.Server.exe.
Open this file using Notepad OR VS and select the line <NetFx40_LegacySecurityPolici enabled=”true”/>.
Delete this line and save it and then restart NAV Server Instance.
Now try and see.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
Thank you for the solution.
For anybody else who runs into this issue. I had to run Notepad as admin.
open file
C:\Program Files\Microsoft Dynamics NAV\110\Service\Microsoft.Dynamics.Nav.Server.exe.config
remove <NetFx40_LegacySecurityPolicy enabled="true"/>
under the
<runtime>
element.
Restarted Service tier and debugging worked.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
If Solved you can mark the answer as verified.
Hope you are all well, All wishes to you, I know you recently get married.
I know you in person, You are one of the NAV Gurus in my list whom I always admire.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
And all Good Wishes and Growth to ARA Dynamics
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/