我正在尝试通过Visual Studio运行我的MVC应用程序,但不幸的是,我找不到网络路径,请在下面找到堆栈跟踪
System.IO.IOException occurred
HResult=0x00000035
Message=The network path was not found.
Source=mscorlib
StackTrace:
at Microsoft.Win32.RegistryKey.Win32ErrorStatic(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName, RegistryView view)
at MV.SharedServices.EventLoggingUtilities.GenericUtilities.writeEventThread()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
在web.config中
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="MV.SharedServices.EventLoggingUtilities" publicKeyToken="7A367428B8A3AE49" culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
我知道注册表编辑器设置有问题,但我不知道该怎么办
答案 0 :(得分:1)
在Microsoft.Win32.RegistryKey.Win32ErrorStatic(Int32 errorCode,String str)
在Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey,String machineName,RegistryView视图)
这些错误表明您正在尝试读取远程计算机的注册表?您是否在网络上传递了计算机的名称。
这两种方法都不存在。