Domanda Editor or Editor Extension

  • venerdì 3 agosto 2012 07:02
     
     

    Salve,

    da poco tempo ho ricevuto il nuovo pc aziendale e come al solito ho reinstallato l'ambiente di sviluppo (di seguito le specifiche). Da quando ho avviato per la prima volta il VS ad ogni apertura di un file web (.asp, .aspx) viene generato un errore con un avviso che spiega che potrebbe essere dovuto ad un estensione.

    Premettendo che non ho nessuna estensione ancora installa a meno delle librerie Enterprise (che mi servono per lavoro), ho attivato il log e cercando gli errori ne ho trovati diversi. Ne riporto uno per tipologia.

    Qualcuno sa dirmi di che si tratta e come potrei risolverlo!? Ovviamente ho già cercato in rete ma le diverse soluzioni che ho trovato non si adattano alla mia situazione, ed il pc è correnttamente aggiornato e configurato (hotfix e service pack sia di VS che di Seven).

    Grazie mille,

    Johnny

    Microsoft Visual Studio 2010
    Version 10.0.40219.1 SP1Rel
    Microsoft .NET Framework
    Version 4.5.50501 SP1Rel

    Installed Version: Ultimate

    ActivityLog.xml

    421 ERROR System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information. 1) Could not find a part of the path 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\schemas\xml\1033\VWDFormatOptions.xml'. Resulting in: An exception occurred while calling the 'OnImportsSatisfied' method on type 'Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider'. Resulting in: Cannot activate part 'Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider'. Element: Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider --> Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider Resulting in: Cannot get export 'Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider (ContractName="Microsoft.VisualStudio.Web.HTML.IHtmFormatOptionsProvider")' from part 'Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider'. Element: Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider (ContractName="Microsoft.VisualStudio.Web.HTML.IHtmFormatOptionsProvider") --> Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore() at System.ComponentModel.Composition.Primitives.Export.get_Value() at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export) at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass4`2.<CreateStronglyTypedLazyOfTM>b__1() at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Lazy`1.get_Value() at Microsoft.VisualStudio.Web.ComponentModelServiceProvider.GetBestService[TServiceAndInterfaceType](IEnumerable`1 exports, Version newestAllowedVersion) at Microsoft.VisualStudio.Web.HTML.Implementation.ColorManager.EnsureInitialized() at Microsoft.VisualStudio.Web.HTML.Implementation.ColorManager.Microsoft.VisualStudio.Web.HTML.IClassificationTypeProvider.GetClassificationTypeForElement(String elementNameAndNS) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.GetClassificationType(TokenInfo tokenInfo, List`1 classificationSpans) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.Microsoft.VisualStudio.Text.Classification.IClassifier.GetClassificationSpans(SnapshotSpan trackingSpan) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.<GetTags>d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__16.MoveNext() Editor or Editor Extension 2012/08/03 06:26:24.808

    System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Web.HTML.Implementation.ColorManager.Microsoft.VisualStudio.Web.HTML.IClassificationTypeProvider.GetClassificationTypeForToken(HTMLToken token) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.GetClassificationType(TokenInfo tokenInfo, List`1 classificationSpans) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.Microsoft.VisualStudio.Text.Classification.IClassifier.GetClassificationSpans(SnapshotSpan trackingSpan) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.<GetTags>d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__16.MoveNext()

    System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Web.HTML.Implementation.ColorManager.Microsoft.VisualStudio.Web.HTML.IClassificationTypeProvider.GetClassificationTypeForElement(String elementNameAndNS) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.GetClassificationType(TokenInfo tokenInfo, List`1 classificationSpans) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.Microsoft.VisualStudio.Text.Classification.IClassifier.GetClassificationSpans(SnapshotSpan trackingSpan) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.<GetTags>d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__16.MoveNext()

Tutte le risposte

  • lunedì 6 agosto 2012 12:19
     
     

    Come sempre il consiglio è provare a fare partire il visual studio in modalità SAFE, basta andare nella cartella di installazione e digitare

    devenv /safemode

    Se in questo modo funziona allora è un addin installato molto probabilmente. Bisogna allora procedere magari alla dinsinstallazion degli addin (anche se ne hai installato solo uno potrebbe essere quello).

    Gian Maria.

    Salve,

    da poco tempo ho ricevuto il nuovo pc aziendale e come al solito ho reinstallato l'ambiente di sviluppo (di seguito le specifiche). Da quando ho avviato per la prima volta il VS ad ogni apertura di un file web (.asp, .aspx) viene generato un errore con un avviso che spiega che potrebbe essere dovuto ad un estensione.

    Premettendo che non ho nessuna estensione ancora installa a meno delle librerie Enterprise (che mi servono per lavoro), ho attivato il log e cercando gli errori ne ho trovati diversi. Ne riporto uno per tipologia.

    Qualcuno sa dirmi di che si tratta e come potrei risolverlo!? Ovviamente ho già cercato in rete ma le diverse soluzioni che ho trovato non si adattano alla mia situazione, ed il pc è correnttamente aggiornato e configurato (hotfix e service pack sia di VS che di Seven).

    Grazie mille,

    Johnny



    Microsoft Visual Studio 2010
    Version 10.0.40219.1 SP1Rel
    Microsoft .NET Framework
    Version 4.5.50501 SP1Rel

    Installed Version: Ultimate

    ActivityLog.xml421 ERROR System.ComponentModel.Composition.CompositionException: The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information. 1) Could not find a part of the path 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\schemas\xml\1033\VWDFormatOptions.xml'. Resulting in: An exception occurred while calling the 'OnImportsSatisfied' method on type 'Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider'. Resulting in: Cannot activate part 'Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider'. Element: Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider --> Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider Resulting in: Cannot get export 'Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider (ContractName="Microsoft.VisualStudio.Web.HTML.IHtmFormatOptionsProvider")' from part 'Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider'. Element: Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider (ContractName="Microsoft.VisualStudio.Web.HTML.IHtmFormatOptionsProvider") --> Microsoft.VisualStudio.Web.HTML.Implementation.FormatOptionsProvider at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart) at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore() at System.ComponentModel.Composition.Primitives.Export.get_Value() at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export export) at System.ComponentModel.Composition.ExportServices.<>c__DisplayClass4`2.<CreateStronglyTypedLazyOfTM>b__1() at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Lazy`1.get_Value() at Microsoft.VisualStudio.Web.ComponentModelServiceProvider.GetBestService[TServiceAndInterfaceType](IEnumerable`1 exports, Version newestAllowedVersion) at Microsoft.VisualStudio.Web.HTML.Implementation.ColorManager.EnsureInitialized() at Microsoft.VisualStudio.Web.HTML.Implementation.ColorManager.Microsoft.VisualStudio.Web.HTML.IClassificationTypeProvider.GetClassificationTypeForElement(String elementNameAndNS) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.GetClassificationType(TokenInfo tokenInfo, List`1 classificationSpans) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.Microsoft.VisualStudio.Text.Classification.IClassifier.GetClassificationSpans(SnapshotSpan trackingSpan) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.<GetTags>d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__16.MoveNext() Editor or Editor Extension 2012/08/03 06:26:24.808

    System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Web.HTML.Implementation.ColorManager.Microsoft.VisualStudio.Web.HTML.IClassificationTypeProvider.GetClassificationTypeForToken(HTMLToken token) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.GetClassificationType(TokenInfo tokenInfo, List`1 classificationSpans) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.Microsoft.VisualStudio.Text.Classification.IClassifier.GetClassificationSpans(SnapshotSpan trackingSpan) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.<GetTags>d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__16.MoveNext()




    System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Web.HTML.Implementation.ColorManager.Microsoft.VisualStudio.Web.HTML.IClassificationTypeProvider.GetClassificationTypeForElement(String elementNameAndNS) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.GetClassificationType(TokenInfo tokenInfo, List`1 classificationSpans) at Microsoft.VisualStudio.Web.HTML.Implementation.Colorizer.Microsoft.VisualStudio.Text.Classification.IClassifier.GetClassificationSpans(SnapshotSpan trackingSpan) at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.<GetTags>d__0.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__16.MoveNext()


    Ricci Gian Maria. (http://www.codewrecks.com)