为什么VsPerfAspNetCmd抛出错误“值不在预期范围内”? [英] Why is VsPerfAspNetCmd throwing the error “Value does not fall within the expected range”?

查看:87
本文介绍了为什么VsPerfAspNetCmd抛出错误“值不在预期范围内”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图在ASP.NET应用程序中配置Visual Studio 2010 ASP.NET Profiler,我得到以下内容输出:

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."



我找不到MSDN上的任何文档或Web上的结果,表明可能出现此错误的原因。以下是可能相关的任何参数:

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:



  • 托管Web应用程序的工作站是Windows XP

  • Web应用程序使用的是.NET Framework 3.5

  • Web应用程序(和引用的项目)在Release | Any CPU模式下编译


我们非常感谢您提供的任何帮助。

Any help that you can provide would be greatly appreciated.


(这个问题也出现在
Stack Overflow


UPDATE :我终于开始在服务器环境(Windows Server 2003 Standard SP2)中测试ASP.NET Profiling并进行性能分析。该网站在服务器上运行在http:// localhost:9001,而网站在我的工作站
上运行http:// localhost / MyWebApp,如果这有所不同。

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.

推荐答案

 

嗨约翰,

 

Hi John,

 

我无法重现这个问题,我使用的是Win7(32位)+ VS2010 + ASP.NET Web应用程序(3.5)。

I failed to reproduce this issue, I'm using Win7 (32bit) + VS2010 + ASP.NET web application (3.5).

 

你能修复或重新安装VS2010并重试吗?

Could you please repair or reinstall VS2010 and retry?


这篇关于为什么VsPerfAspNetCmd抛出错误“值不在预期范围内”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆