how to solve The network path was not found in c#?

-1

I am trying to run my MVC application through visual studio but unfortunately, I am getting the network path was not found please find stack trace below

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()

in 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>

I know that something wrong with registry editor settings but I don't know exactly what to do

c#
asp.net-mvc
asked on Stack Overflow Dec 26, 2019 by ravi • edited Dec 26, 2019 by ravi

1 Answer

1

at Microsoft.Win32.RegistryKey.Win32ErrorStatic(Int32 errorCode, String str)

at Microsoft.Win32.RegistryKey.OpenRemoteBaseKey(RegistryHive hKey, String machineName, RegistryView view)

These error indicates you are trying to read the registry of a remote computer? Did you pass in the name of computer on the network.

Either way to the computer doesn't not exist.

answered on Stack Overflow Dec 26, 2019 by Black Frog • edited Jun 20, 2020 by Community

User contributions licensed under CC BY-SA 3.0