开发者

Why is VsPerfAspNetCmd throwing the error "Value does not fall within the expected range"?

开发者 https://www.devze.com 2023-01-15 10:14 出处:网络
I am trying to profile an ASP.NET applicationthe Visual Studio 2010 ASP.NET profiler and I get the following output:

I am trying to profile an ASP.NET application the Visual Studio 2010 ASP.NET profiler and I get the following output:

C:\MyWebApp>VSPerfAspNetCmd /i /Output:MyWebAppSampling.vsp http://localhost/MyWebApp
Microsoft开发者_如何学运维 (R) VSPerf ASP.NET Command, Version 10.0.0.0
Copyright (C) Microsoft Corporation. All rights reserved.

Configuring and attaching to ASP.NET process. Please wait.
Setting up profiling environment.
Starting monitor.

Error
VSP 1001: Unhandled exception: "Value does not fall within the expected range."

I cannot find any documentation on MSDN or results on the web that indicate why this error may be occurring. Here are any parameters that may also be relevant:

  • My workstation hosting the web application is Windows XP
  • The web application is using .NET Framework 3.5
  • The web application (and referenced projects) are compiled in Release|Any CPU mode

Any help that you can provide would be greatly appreciated.

UPDATE: I finally got around to testing ASP.NET Profiling in a server environment (Windows Server 2003 Standard SP2) and profiling does function. The website runs on the server at http://localhost:9001, whereas the website runs on my workstation at http://localhost/MyWebApp, if that makes a difference.


VSPerfAspNetCmd requires several IIS 6 features. Are you running IIS 6 on your Windows XP machine? You might also want to check that the features described in this article are enabled.

0

精彩评论

暂无评论...
验证码 换一张
取 消