0

I have created an application in wpf which is working fine on win7 but on Win8 it shows below exception I'm trying to open directory in explorer by passing directory path.

System.ComponentModel.Win32Exception (0x80004005): Class not registered

   at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)

   at System.Diagnostics.Process.Start()

   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)

   at Myapp.RunFile()

I'm also getting below error

Myapp.exe - Entry Point Not Found

The procedure entry point RangeMapFree could not be located in the dynamic link library

C:\Windows\system32\wer.dll. 

is there any way to resolve above?

thanks.

t3chb0t
  • 16,340
  • 13
  • 78
  • 118
Rajesh Kapure
  • 55
  • 1
  • 11
  • Try referring to this question http://stackoverflow.com/questions/2465111/dependency-walker-reports-ieshims-dll-and-wer-dll-missing – DevEstacion Dec 16 '14 at 06:04

2 Answers2

0

It might be that you are missing wer.dll.

I suggest you go to this link and try to install the dll :)

http://www.dll-files.com/dllindex/dll-files.shtml?wer

  • wer.dll is seems OS dll which is present on system. – Rajesh Kapure Dec 16 '14 at 06:13
  • I tried by below way (specifying explorer.exe in fileName and argument as directory path) and it works but need to know why it doesn't work by directly passing directory path to Process.Start() method. ProcessStartInfo startInfo = new ProcessStartInfo(); startInfo.FileName = "explorer.EXE"; startInfo.Arguments = "C:\\users"; Process.Start(startInfo); – Rajesh Kapure Dec 16 '14 at 10:45
0

For the first problem: Class not registered when executing Process.Start.

Do you start your Visual Studio environment as Administrator? (Rightclick on shortcut => Properties => Shortcut => Advanced) Some people do this to be able to use some stuff in development (like writing to the registry).

Try restarting your VS-environment as the normal user (Example: press WIN-button, type "Visual" and press Visual Studio here).

Are you able to do the Process.Start function now?

Jim Adorno
  • 33
  • 4