Open rjk opened 1 year ago
I am not able to reproduce this, but I suspect it is due to missing unpacked dependencies. Can you please try clearing out %USERPROFILE%\AppData\Roaming\PerfView and then re-running PerfView?
I deleted that folder and still get the exception when I start up PerfView.exe from gui:
Any other way I can run with more logs?
What operating system is this running on? I might have seen this before on an older OS.
From: Rory @.> Sent: Friday, February 24, 2023 3:14 PM To: microsoft/perfview @.> Cc: Brian Robbins @.>; Comment @.> Subject: Re: [microsoft/perfview] Error: Could not load file or assembly 'System.Net.Http, Version=4.2.0.0 ... (Issue #1816)
I deleted that folder and still get the exception when I start up PerfView.exe from gui:
Any other way I can run with more logs?
- Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fperfview%2Fissues%2F1816%23issuecomment-1444653073&data=05%7C01%7Cbrianrob%40microsoft.com%7C194d55b4920a4368c5c408db16bcdefc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638128772684452723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5aPtIWO2sT%2F1FOdT86AnyylYRfqdqiSSXWXhxdxWERY%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABPMGETJXYGH4WULAWODU3LWZE6FDANCNFSM6AAAAAAVEMDJWE&data=05%7C01%7Cbrianrob%40microsoft.com%7C194d55b4920a4368c5c408db16bcdefc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638128772684452723%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fmpCeazn2HnuJPKMluqHASrqudur0SkP%2BvrtAcSrWaA%3D&reserved=0. You are receiving this because you commented.Message ID: @.**@.>>
Windows Server 2016 Standard x64, on a VM. Windows version 10.0.14393 I have several similarly-configured (but not exact) other VMs where PerfView runs fine.
Ok, that seems like it should be fine. If you are able to capture a dump on the first chance exception, I could try looking at that.
I've also seen this multiple times with different customers - going back to the last 2.x version is the workaround. Next time it happens if we have the time I'll see if we can dump on that exception as well.
I have seen this recently if there is a PerfView.exe.config file next to PerfView.exe that has a binding redirect pointing to System.Net.Http 4.2.0.0. I recently submitted a fix for this that removes these binding redirects: https://github.com/microsoft/perfview/pull/1830
Hopefully that takes care of this.
@rjk did the latest version of PerfView fix this for you?
I downloaded PerfView.exe latest release just now (exe says it's 3.0.7.0) and ran the following command line. The first time through I saw a message that I need to run with /AcceptEULA so I re-ran with that. It opened an elevation prompt and another cmd window running PerfView. Great so far. I pressed S to stop collection after a while and got this error:
Here's the command I ran:
This opened an elevation prompt and opened a new window. Once the error is shown it looks like this:
Full text in that window is:
When I run PerfView.exe only I get this error in a GUI window and then the app closes even if I click Continue. I'm not able to use PerfView.exe on this machine.
Log file is here:
PerfViewData.log.txt
It did output PerfviewData.etl and PerfViewData.clrRundown.etl and I'm able to look at events etc in PerfviewData.etl from another machine. I'm not familiar enough with PerfView to know if it's complete or what the effect of the error is.
Everything works fine for me on a very similarly configured server.