Performance Session文件不存在或无效 [英] Performance Session file does not exist or is invalid

查看:111
本文介绍了Performance Session文件不存在或无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要配置的Web应用程序.

I have a web application that I'm trying to profile.

这是我的步骤:

1)调试=>性能分析器

1) Debug => Performance Profiler

2)检查性能向导.

3)点击开始

3)检查了CPU采样(推荐)

3) CPU sampling (recommended) checked

4)下一个

5)一个或多个可用项目=>选择网络项目

5) One or more available projects => pick the web project

6)下一个

7)下一个

8)向导完成后启动配置文件.已检查

8) Launch profiling after the wizard finishes. checked

9)下一个

10)Performance Session文件c:\ Users \ ... \ Performance file.psess不存在或无效.

10) Performance Session file c:\Users\...\Performance file.psess does not exist or is invalid.

11) 单击确定".

11)  Click Ok.

12)对象null或未设置为对象的实例.

12) Object null or not set to an instance of an object.

该文件存在,我可以在指定目录中看到它.  如果我尝试从文件菜单中打开它,则会得到相同的错误消息,减去对象为null的消息.

The file exists, I can see it in the specified directory.  If I try to open it from the file menu, I get the same error message, minus the object null message.

推荐答案

嗨Blainer0121,

Hi Blainer0121,

在我这边,我按照您的步骤进行操作,可以在我的项目路径中获取性能文件.

In my side, I followed with your steps, and I could get the performance file in my project path.

>>对象为空或未设置为对象的实例

>>Object null or not set to an instance of an object

根据此错误,此问题是由于VS已损坏.请参考以下情形:

According to this error, this issue is caused by VS has been damaged. Please refer to the following scenarios:

1).从以下文件夹中删除内容:   

1). Delete the contents from the following folders:    

     C:\ Users \ {user} \ AppData \ Local \ Microsoft \ VisualStudio

      C:\Users\{user}\AppData\Local\Microsoft\VisualStudio

     C:\ Users \ {user} \ AppData \ Local \ Microsoft \ VSCommon

      C:\Users\{user}\AppData\Local\Microsoft\VSCommon

2).有时我们需要重置VS:

2). Sometimes we need to reset our VS:

点击开始"->"VS的开发人员命令提示符"->键入"devenv.exe/ResetSettings"

lick Start->Developer Command Prompt for VS-> type "devenv.exe /ResetSettings"

希望对您有帮助.

此致

奥斯卡


这篇关于Performance Session文件不存在或无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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