3

Every time I open a project in Visual Studio 2013 (ultimate) it displays an annoying popup with this error message: an exception has been encountered. This may be caused by an extension.

You can get more information by examining the file 'C:\Users\john\AppData\Roaming\Microsoft\VisualStudio\12.0\ActivityLog.xml

1- below is my ActivityLog.xml file

2- this file is located in VisualStudio\12.0\ActivityLog.xml (ver 12 not 13 which is installed). this is while I have already uninstalled the visual studio 2012 and dont know if i can change the path of ActivityLog.xml or it is not an issue here

ps. I have already looked in here. This is also the list of extensions that I uninstalled one by one but the error still there

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>
Community
  • 1
  • 1
C graphics
  • 7,308
  • 19
  • 83
  • 134
  • Did you take any of the actions in the post you linked to, such as re-installing VS2013? In "Control Panel"->"Programs and Features", if you right-click on your VS2013 entry you get an option "Change" which should have a "Repair" option. – Andrew Morton May 06 '14 at 19:17
  • yap! but I dont want my last option be reinstalling Windows 8 then reinstalling VS 2013! – C graphics May 06 '14 at 23:38

3 Answers3

1
  1. Go to TOOLS

  2. Select 'Extensions and Updates'

  3. Select 'Updates'

  4. Install latest Visual studio update 5 (for me Update 5 for VS2013)

this will fix everything.

Raj
  • 173
  • 1
  • 7
  • I still get this every single day with update 5 installed. I would assume it depends on what extensions are installed. – drescherjm Mar 01 '17 at 11:41
0

The fix depends on error one sees in the activity.log XML For instance take the below error enter image description here

The error clearly states an issue loading "Azure Tools" package

FIX:

  • Goto Tools -> Extensions and Updates
  • Search for package under online or updates and install it
  • restart your Visual studio
Anil Garlapati
  • 217
  • 3
  • 4
0

I had the same problem and I only cleared out the Temp folder and now it works. The Temp folder path:

C:\Users[UserName]\AppData\Local\Temp

Ninita
  • 1,209
  • 2
  • 19
  • 45