Profiler not attaching to process.
Ionican
Posts: 6 New member
I'm running vs2019 with the add-in and am unable to profile:
- in vs2019 (not debugging yet) I select 'Profile Performance' from the ANTS menu
- it says 'current project of date - build?' - fair enough I say yes.
- projects starts to build and profiler launches
- "Can't start - IIS Express config file not found"
- I point the profiler at the config file in my .vs folder
- this also enables me now to select my https app from the app dropdown
- I hit 'start profiling' - the cmd box opens and closes and chrome launches - the app runs
- the profiler sits with 'Launching Chrome' in the status box and no profiling happens.
Any thoughts on what I'm doing wrong?!
Cheers,
- in vs2019 (not debugging yet) I select 'Profile Performance' from the ANTS menu
- it says 'current project of date - build?' - fair enough I say yes.
- projects starts to build and profiler launches
- "Can't start - IIS Express config file not found"
- I point the profiler at the config file in my .vs folder
- this also enables me now to select my https app from the app dropdown
- I hit 'start profiling' - the cmd box opens and closes and chrome launches - the app runs
- the profiler sits with 'Launching Chrome' in the status box and no profiling happens.
Any thoughts on what I'm doing wrong?!
Cheers,
Tagged:
Answers
What version of ANTS Performance Profiler are you using?
The very latest version supports VS2019, if you're using anything older you'll need to upgrade.
thanks for the response - yes I'm using the very latest version 3.1.0.799 on a 14 day trial.
Any other ideas?
Cheers,
Can you please try downloading the latest version using the following link:
https://marketplace.visualstudio.com/items?itemName=vs-publisher-306627.ANTSProfilerVisualStudioAdd-in
Right I uninstalled and reinstalled both the extension and the ANTS apps.
Now the profiling does seem to work until the point when my application accesses the DLL I've built for the DAL in this project - at which point I get:
Could not load file or assembly 'Data_Access_Layer' or one of its dependencies. An attempt was made to load a program with an incorrect format.
...which is an error that does not occur if I simply build and run the application in VS. From memory I think this error tends to come up when there's a 'bit-ness' mismatch. I've tried setting bitness to both 32 and 64 in ANTS and still get the same error....Thanks.
R
The App is built for 'Any CPU', both the main app and DLL. They are deployed to a 64-bit App Service on Azure.