Hello,
I have been struggling with this issue for a few hours, and have made no progress... All I want to do is profile my ASP.NET MVC4 application using my VS2012 Premium Edition's built-in performance monitoring. All of my projects are signed, so I need to define a post profiling sn.exe on the assemblies. No problem... I determined the path to sn.exe and copied the path into the following command. I did the same to find the dll that needs to be signed... And the same to find our .snk file. The end result is the following:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\sn.exe" -R "C:\PROJECTS\ETMVC\ABitOfHelp.CultureNameDomain\obj\Debug\ABitOfHelp.CultureNameDomain.dll" "C:\PROJECTS\ABOH\Authenticode\abohcert.snk"
I enter this command into target's properties in the Performance Explorer for the aforementioned assembly. I save it. I open it, and it is the same... I run Analyze->Start Performance Analysis. It tells me that I have to restart vs2012 as Admin. I say okay... I run Analyze->Start Performance Analysis, and I get the following error. Basically, VS2012 has changed the path that I provided to sn.exe, so it fails. I have tried every conceivable
variation on the command. Whitespace, nope, using quotes... Path correct, yup... Etc... I hope that someone can clue me in as to what is wrong. Oh! In case it matters, the working directory in the properties where I am setting the command is the following:
C:\PROJECTS\ETMVC\ABitOfHelp.CultureNameDomain\bin\Debug\
My development computer is Win7 64-bit.
Thank you for your time and help,
Mike
------------------------------
Preparing web server for profiling
Profiling started.
Instrumenting C:\PROJECTS\ETMVC\ABitOfHelp.CultureNameDomain\obj\Debug\ABitOfHelp.CultureNameDomain.dll in place
Info VSP3049: Small functions will be excluded from instrumentation.
Microsoft (R) VSInstr Post-Link Instrumentation 11.0.50727 x86
Copyright (C) Microsoft Corp. All rights reserved.
File to Process:
C:\PROJECTS\ETMVC\ABitOfHelp.CultureNameDomain\obj\Debug\ABitOfHelp.CultureNameDomain.dll --> C:\PROJECTS\ETMVC\ABitOfHelp.CultureNameDomain\obj\Debug\ABitOfHelp.CultureNameDomain.dll
Original file backed up to C:\PROJECTS\ETMVC\ABitOfHelp.CultureNameDomain\obj\Debug\ABitOfHelp.CultureNameDomain.dll.orig
Warning VSP2001: C:\PROJECTS\ETMVC\ABitOfHelp.CultureNameDomain\obj\Debug\ABitOfHelp.CultureNameDomain.dll is a strongly named assembly. It will need to be re-signed before it can be executed.
Successfully instrumented file C:\PROJECTS\ETMVC\ABitOfHelp.CultureNameDomain\obj\Debug\ABitOfHelp.CultureNameDomain.dll.
Warning VSP2013: Instrumenting this image requires it to run as a 32-bit process. The CLR header flags have been updated to reflect this.
Running Post-Instrument Step
PRF0003: : Executable file not found (..\..\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\x64\sn.exe).
PRF0028: Launch was aborted. The instrumentation step 'Running Post-Instrument Step' returned an error (-1).
-------------------------------