问题描述
这是来自事件查看器的错误详细信息:
类型:System.Configuration.ConfigurationErrorsException
消息:类型“Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior、Microsoft.VisualStudio.Diagnostics.ServiceModelSink、版本=3.0.0.0、Culture=neutral、PublicKeyToken=b03f5f7f11d50a3a”已注册扩展“Microsoft.VisualStudio.Diagnostics.BehaviorModelSink” ' 无法加载。 (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config 第 192 行)
BareMessage:类型“Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior、Microsoft.VisualStudio.Diagnostics.ServiceModelSink、Version=3.0.0.0、Culture=neutral、PublicKeyToken=b03f5f7f11d50a3a”已注册扩展“Microsoft.VisualStudio.Diagnostics.BehaviorSink” ' 无法加载。
文件名:C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config
线路:192
堆栈跟踪:
在 System.Configuration.BaseConfigurationRecord.EvaluateOne(String[] keys,SectionInput input,Boolean isTrusted,FactoryRecord factoryRecord,SectionRecord sectionRecord,Object parentResult)
在 System.Configuration.BaseConfigurationRecord.Evaluate(FactoryRecord factoryRecord,Object parentResult,Boolean getLkg,Boolean getRuntimeObject,Object& result,Object& resultRuntimeObject)
在 System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey,Boolean checkPermission,Boolean requestIsHere,Object& resultRuntimeObject)
在 System.Configuration.BaseConfigurationRecord.GetSection(String configKey,Boolean checkPermission)
在 System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
在 System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
在 System.Configuration.ConfigurationManager.GetSection(String sectionName)
在 System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetSectionFromConfigurationManager(String sectionPath)
在 System.ServiceModel.Configuration.ConfigurationHelpers.UnsafeGetAssociatedSection(Contextinformation evalContext,String sectionPath)
在 System.ServiceModel.Configuration.CommonBehavioRSSection.UnsafeGetSection()
在 System.ServiceModel.Description.ConfigLoader.LookupCommonBehaviors(Contextinformation 上下文)
在 System.ServiceModel.Description.ConfigLoader.LoadCommonClientBehaviors(ServiceEndpoint serviceEndpoint)
在 System.ServiceModel.ChannelFactory.ApplyConfiguration(字符串配置名称,配置配置)
在 System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)
在 System.ServiceModel.ChannelFactory.InitializeEndpoint(绑定绑定,EndpointAddress 地址)
在 System.ServiceModel.DuplexChannelFactory1..ctor(Object callbackObject,Binding binding,EndpointAddress remoteAddress) at System.ServiceModel.DuplexChannelFactory
1..ctor(InstanceContext callbackInstance,EndpointAddress remoteAddress)
在 Microsoft.Dynamics.Nav.Client.ServiceConnection.Initialize()
在 Microsoft.Dynamics.Nav.Client.ServiceConnection.OpenConnectionInternal(ConnectFailedEventArgs connectFailedArg)
在 Microsoft.Dynamics.Nav.Client.ServiceConnection.OpenConnection()
在 Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.Initialize()
在 Microsoft.Dynamics.Framework.UI.UISession.Initialize()
在 Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.SetupUISession()
在 Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.Init()
在 Microsoft.Dynamics.Nav.Client.Program.MainCore(String[] args)
在 Microsoft.Dynamics.Nav.Client.Program.Main(String[] args)
来源:System.Configuration
解决方法
这可能是 Windows 更新 使用错误。如果最近有更新,请尝试重新启动服务器。
,选项 1: 安装最新版本的 .net,如果可能,将您的导航服务帐户更新到可用的最新版本。有时是 te 服务与客户端的版本不同,会发生这种情况。版本降级可能会奏效,具体取决于您在崩溃前更新的内容。
选项 2: 最近可能修改了一个表,因此当您运行客户端时,它没有找到正确的索引。以经典模式打开Nav,然后转到对象并按修改日期排序,您应该看到最近修改的对象。