DLL Tool

sxstrace.exe access is denied

May 11, 2014

DLL ToolDLL Tool downloads and repairs sxstrace exe access is denied problems for computers installed with Microsoft Windows 8.1/8/7/XP/Vista operating systems, both 32 and 64 bits.

What is sxstrace.exe?

Recall that in .Net framework, fusion binding log is the ultimate diagnosis tool for assembly binding failure. Sxstrace is basically the same idea. Fusion binding log is using a custom log format --- HTML and the file is stored in internet explorer cache by default. Sxstrace uses the ETW model.

ETW model has three components: Controller, Providers, and Consumers. In our case, sxstrace.exe is both the controller and the consumer, and Sxs is the provider. Sxstrace.exe is shipped in Windows Vista and resides in %windir%\system32. To see the Sxs tracing, we have to enable the trace first.

To enable tracing requires admin privilege. You have to run sxstrace.exe in an elevated cmd.exe window. Now let's run the test application, and stop the tracing. The trace generated is a binary file. We have to translate it to human readable text.

Normally, sxstrace.exe is located in C:\Progam Files\Common Files, and is basically used to trace the performance of a program.

Error of Sxstrace.exe access is denied

One of most common Sxstrace.exe error messages is: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command line sxstrace.exe tool for more detail.

Causes and solutions of sxstrace.exe access is denied error

This error can be caused by your anti spyware which blocks execution of files within c:\temp ( c:\temp\stage) to be correct. Or it is likely deploy is loading wrong/incompatible dll on the system due to wrong order in %PATH% (could be old dlls left from previous agent installation, etc). Removing the old agent files (if there are any) and reinstalling the agent could fix the problem.

Generally speaking, to solve this side-by–side error, you run the Command prompt with admin rights and run this command:

SxsTrace Trace -logfile:SxsTrace.etl
Now run the program which causes the SideBySide error.
Go back to the command prompt press ENTER to generate the SxsTrace.etl. Now type this:
sxstrace Parse -logfile:SxSTrace.etl -outfile:SxSTrace.txt
Now open the SxSTrace.txt trace and look which VC++ runtime is missing.

You may have The access is denied (SxsTrace Trace -logfile:SxsTrace.etl ) error with the Process Trace failed result. That means you should run the command prompt with administrator rights.

To do so:

Click Start
Type: CMD, from the results, right click CMD
Select 'Run as Administrator'
Now you are running the command prompt in an elevated Administrative mode.
At the Command Prompt, type in the commands mentioned above.

In other cases, this error can be caused by the invalid registry of entry point to its executable. Registry - related issues like corruption, overmuch obsolete/useless entries can easily cause registry malfunction, since registry stores system configuration settings and options, including system kernel, device drivers, services, SAM, user interface and third party applications. Any incorrect modification on Windows registry is capable of leading to a list of other further complicated system problems, such as this access denied issue.

For the final step of fixing The access is denied error, you are recommended to use DLL TOOL to repair the registry keys and reinstall the corrupted sxstrace.exe for free when necessary.