Whenever you run into problems with SxS, e.g. because an assembly cannot be loaded because of missing dependencies or similar, using the tracing tool which SxS offers can help you a lot. Hereâ€™s how to use it.
You start tracing by calling the following command:
sxstrace Trace â€“logfile:sxs.etl
This will keep the tracer running until you actually press enter. If you want to stop it through issuing another command, you should call
sxstrace Trace â€“logfile:sxs.etl -nostop
This will exit as soon as the tracing session was created.
In case you were using the nostop option, youâ€™ll have to stop tracing through the following command.
Transforming the Traces
As with most traces, youâ€™ll need to transform the traces from the raw format in the ETL file to a human readable format. Youâ€™ll do this with the following command.
sxstrace Parse â€“logfile:sxs.etl â€“outfile:sxs.log
In the out file you should then be able to easily figure out if your problem is related to SxS or not.