How can we help you today? How can we help you today?

Profiler not attaching to process.

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,
Richard Freeman
0

Comments

11 comments

  • Sarah B
    Hello Ionican

    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.
    Sarah B
    0
  • Ionican
    Hi Sarah,

    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,
    Ionican
    0
  • Sarah B
    Hi @Ionican

    Can you please try downloading the latest version using the following link:
    https://marketplace.visualstudio.com/items?itemName=vs-publisher-306627.ANTSProfilerVisualStudioAdd-in
    Sarah B
    0
  • Ionican
    Hi Sarah,

    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
    Ionican
    0
  • Russell D
    What bitness is your app built in? Since it looks like its a web app is the application pool configured to allow the correct bitness?
    Russell D
    0
  • Ionican
    Hi,

    The App is built for 'Any CPU', both the main app and DLL.  They are deployed to a 64-bit App Service on Azure.
    Ionican
    0
  • Russell D
    Are you trying to profile a remote app?
    Russell D
    0
  • Ionican
    No - just the debug version on my dev pc.
    Ionican
    0
  • Russell D
    Ok, are you able to share it at all?
    Russell D
    0
  • Ionican
    Sure - am running a Win10 VM on Parallels - can use teamviewer?
    Ionican
    0
  • Russell D
    Ah no, we'd need to be able to debug it locally.
    Russell D
    0

Add comment

Please sign in to leave a comment.