还遇到了另一个例外。这可能是由扩展引起的

时间:2014-05-06 19:01:30

标签: visual-studio-2013

每次我在Visual Studio 2013(终极版)中打开一个项目时,它会显示一个恼人的弹出窗口,并显示以下错误消息: 遇到了异常。这可能是由扩展引起的。

您可以通过检查文件' C:\ Users \ john \ AppData \ Roaming \ Microsoft \ VisualStudio \ 12.0 \ ActivityLog.xml

来获取更多信息 下面的

1-是我的ActivityLog.xml文件

2-此文件位于VisualStudio \ 12.0 \ ActivityLog.xml中(版本12未安装13)。这是我已经卸载了visual studio 2012,并且不知道我是否可以更改ActivityLog.xml的路径或者这不是问题

PS。我已经查看了here。 这也是我逐个卸载的扩展列表,但错误仍然存​​在

enter image description here

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
    <xsl:output method="html"  encoding="utf-16"/>
    <xsl:template match="activity">
        <head>
        <title>Activity Monitor Log</title>
        <style type="text/css">
            body{ text-align: left; width: 100%;  font-family: Verdana, sans-serif; }

            table{ border: none;  border-collapse: separate;  width: 100%; }

            tr.title td{ font-size: 24px;  font-weight: bold; }

            th{ background: #d0d0d0;  font-weight: bold;  font-size: 10pt;  text-align: left; }
            tr{ background: #eeeeee}
            td, th{ font-size: 8pt;  padding: 1px;  border: none; }

            tr.info td{}
            tr.warning td{background-color:yellow;color:black}
            tr.error td{background-color:red;color:black}

            span {text-decoration:underline}
            a:hover{text-transform:uppercase;color: #9090F0;}
        </style>
        </head>

        <body>      
        <table>
            <tr class="title">
                <td colspan="7">Activity Monitor Log</td>
            </tr>             
            <tr>
                <td colspan="2">infos</td>
                <td colspan="5"><xsl:value-of select="count(entry[type='Information'])"/></td>
            </tr>
            <tr>
                <td colspan="2">warnings</td>
                <td colspan="5"><xsl:value-of select="count(entry[type='Warning'])"/></td>
            </tr>
            <tr>
                <td colspan="2">errors</td>
                <td colspan="5"><xsl:value-of select="count(entry[type='Error'])"/></td>
            </tr>
            <tr>
                <th width="20">#</th>
                <th width="50">Type</th>
                <th>Description</th>
                <th width="280">GUID</th>
                <th>Hr</th>                
                <th>Source</th>
                <th>Time (UTC)</th>
            </tr>               
            <xsl:apply-templates/>
        </table>

        </body>
    </xsl:template>

    <xsl:template match="entry">
        <!-- example 

          <entry>
            <record>136</record>
            <time>2004/02/26 00:42:59.706</time>
            <type>Error</type>
            <source>Microsoft Visual Studio</source>
            <description>Loading UI library</description>
            <guid>{00000000-0000-0000-0000-000000000000}</guid>
            <hr>800a006f</hr>
            <path></path>
        </entry>

        -->
        <xsl:choose>

            <xsl:when test="type='Information'">
                    <tr id="info" class="info">
                        <td><xsl:value-of select="record"/></td>
                        <td></td>
                        <xsl:call-template name="row"/>
                    </tr>                
            </xsl:when>                

            <xsl:when test="type='Warning'">
                    <tr id="warning" class="warning">
                        <td><xsl:value-of select="record"/></td>
                        <td>Warning</td>
                        <xsl:call-template name="row"/>
                    </tr>                
            </xsl:when>             

            <xsl:when test="type='Error'">
                    <tr id="error" class="error">
                        <td><xsl:value-of select="record"/></td>
                        <td>ERROR</td>
                        <xsl:call-template name="row"/>
                    </tr>                
            </xsl:when>                

        </xsl:choose>  

    </xsl:template>

    <xsl:template name="row">
                <td id="description"><xsl:value-of select="description"/><xsl:if test="path"><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;<xsl:value-of select="path"/></xsl:if></td>
                <td id="guid"><xsl:value-of select="guid"/></td>    
                <td id="hr"><xsl:value-of select="hr"/></td>    
                <td><xsl:value-of select="source"/></td>    
                <td><xsl:value-of select="time"/></td>
    </xsl:template>            

</xsl:stylesheet>

3 个答案:

答案 0 :(得分:1)

  1. 转到工具

  2. 选择&#39;扩展程序和更新&#39;

  3. 选择&#39;更新&#39;

  4. 安装最新的Visual Studio更新5(对我来说VS2013的更新5)

  5. 这将解决所有问题。

答案 1 :(得分:0)

修复程序取决于在activity.log XML中看到的错误 例如,采取以下错误 enter image description here

错误清楚地表明加载&#34; Azure工具&#34;封装

<强> FIX:

  • 转到工具 - &gt;扩展和更新
  • 在线搜索包或更新并安装
  • 重新启动Visual Studio

答案 2 :(得分:0)

我有同样的问题,我只清除了Temp文件夹,现在它可以工作了。 Temp文件夹路径:

  

C:\用户[用户名] \应用程序数据\本地\温度

相关问题