-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are no instrumentationInfos found #59
Comments
Would it be possible to send a repro? Just the project with any sensitive stuff removed. |
I just created an asp.net Web Api project with default controller and put the PerfitFilter attribute just like in the readme file. After created the installer like I sent you. In the end I ran cmd and tried to register the counter. Which was totally the same as in the "Getting started" phase. |
Assembly loading issues is a common one. This is from Wiki and could be related:
Point is here: include a copy of InstallUtil.exe and its custom config (which works for your project by copying content of assemblyBinding section of the web.config |
I copied it and filled the config with the assemblyBinding section but I cannot run the InstallUtil because it still says that: But I have 5.2.3.0. for System.Web.Http. I hope that the .Net Framework 4.6 is not a problem. |
you need you run it from your bin. This is the problem with InstallUtil not perfit. |
I did it right now as you said, but the same problem appeared with a little more extra: "the except HRESULT: 0x80131040." |
Can you please join gitter? |
OK a couple of things
public override void Install(IDictionary stateSaver)
{
base.Install(stateSaver);
CounterInstaller.InstallStandardCounters("BdNetApiTest");
}
public override void Uninstall(IDictionary savedState)
{
base.Uninstall(savedState);
CounterInstaller.Uninstall("BdNetApiTest");
} That should do the trick. Give it a try and let me know. |
Thank you, I'll try it as soon as I can. |
Now It's working and can see the counters, but I can't see the instances of the selected objects. UPD: I read the closed issues and got the answer. |
Hi,
I always got this exception when I try to install it. (not API 2)
System.InvalidOperationException: There are no instrumentationInfos found by the discoverer!
I did what's in the readme but still cannot see the counters in the PerfMon, neither my PerFit web API project name.
Did I miss something? Because I didn't found any similar Issue in here.
Thanks in advanced.
The text was updated successfully, but these errors were encountered: