2012-09-20 16 views
5

है, इसलिए, मैं विजुअल स्टूडियो 2010 का उपयोग कर रहा हूं, और पिछले हफ्ते में या मुझे विजुअल स्टूडियो से एक संदेश मिल रहा है: "विजुअल स्टूडियो में अपवाद का सामना करना पड़ा है। यह हो सकता है एक विस्तार।"विजुअल स्टूडियो में अपवाद

मेरे ActivityLog.xml समस्या के रूप में लॉग यह पता चलता है:

<entry> 
    <record>321</record> 
    <time>2012/09/20 16:52:36.126</time> 
    <type>Error</type> 
    <source>Editor or Editor Extension</source> 
    <description>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.&#x000D;&#x000A;&#x000D;&#x000A;1) Object reference not set to an instance of an object.&#x000D;&#x000A;&#x000D;&#x000A;Resulting in: An exception occurred while calling the &apos;OnImportsSatisfied&apos; method on type &apos;Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSKeyword&apos;.&#x000D;&#x000A;&#x000D;&#x000A;Resulting in: Cannot activate part &apos;Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSKeyword&apos;.&#x000D;&#x000A;Element: Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSKeyword --&gt; Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSKeyword&#x000D;&#x000A;&#x000D;&#x000A;Resulting in: Cannot get export &apos;Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSKeyword (ContractName=&quot;Microsoft.VisualStudio.Text.Classification.EditorFormatDefinition&quot;)&apos; from part &apos;Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSKeyword&apos;.&#x000D;&#x000A;Element: Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSKeyword (ContractName=&quot;Microsoft.VisualStudio.Text.Classification.EditorFormatDefinition&quot;) --&gt; Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSKeyword&#x000D;&#x000A;&#x000D;&#x000A; at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition)&#x000D;&#x000A; at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(ComposablePart part, ExportDefinition export, Boolean isSharedPart)&#x000D;&#x000A; at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()&#x000D;&#x000A; at System.ComponentModel.Composition.Primitives.Export.get_Value()&#x000D;&#x000A; at System.ComponentModel.Composition.ExportServices.GetExportedValueFromLazy[T](Export export)&#x000D;&#x000A; at System.ComponentModel.Composition.ExportServices.&lt;&gt;c__DisplayClass4`2.&lt;CreateStronglyTypedExportOfTM&gt;b__1()&#x000D;&#x000A; at System.Lazy`1.CreateValue()&#x000D;&#x000A; at System.Lazy`1.LazyInitValue()&#x000D;&#x000A; at System.Lazy`1.get_Value()&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension](Object errorSource, Lazy`1 provider)</description> 
</entry> 

<entry> 
    <record>322</record> 
    <time>2012/09/20 16:52:36.202</time> 
    <type>Error</type> 
    <source>Editor or Editor Extension</source> 
    <description>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.&#x000D;&#x000A;&#x000D;&#x000A;1) Object reference not set to an instance of an object.&#x000D;&#x000A;&#x000D;&#x000A;Resulting in: An exception occurred while calling the &apos;OnImportsSatisfied&apos; method on type &apos;Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSComment&apos;.&#x000D;&#x000A;&#x000D;&#x000A;Resulting in: Cannot activate part &apos;Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSComment&apos;.&#x000D;&#x000A;Element: Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSComment --&gt; Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSComment&#x000D;&#x000A;&#x000D;&#x000A;Resulting in: Cannot get export &apos;Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSComment (ContractName=&quot;Microsoft.VisualStudio.Text.Classification.EditorFormatDefinition&quot;)&apos; from part &apos;Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSComment&apos;.&#x000D;&#x000A;Element: Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSComment (ContractName=&quot;Microsoft.VisualStudio.Text.Classification.EditorFormatDefinition&quot;) --&gt; Microsoft.VisualStudio.Web.Exports.ExportedClassificationFormatCSSComment&#x000D;&#x000A;&#x000D;&#x000A; at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition)&#x000D;&#x000A; at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(ComposablePart part, ExportDefinition export, Boolean isSharedPart)&#x000D;&#x000A; at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()&#x000D;&#x000A; at System.ComponentModel.Composition.Primitives.Export.get_Value()&#x000D;&#x000A; at System.ComponentModel.Composition.ExportServices.GetExportedValueFromLazy[T](Export export)&#x000D;&#x000A; at System.ComponentModel.Composition.ExportServices.&lt;&gt;c__DisplayClass4`2.&lt;CreateStronglyTypedExportOfTM&gt;b__1()&#x000D;&#x000A; at System.Lazy`1.CreateValue()&#x000D;&#x000A; at System.Lazy`1.LazyInitValue()&#x000D;&#x000A; at System.Lazy`1.get_Value()&#x000D;&#x000A; at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.InstantiateExtension[TExtension](Object errorSource, Lazy`1 provider)</description> 
</entry> 

वहाँ कोई विशेष कदम है कि इस का कारण बनता है हो सकता है नहीं लगता है, कभी कभी यह तब होता है जब मैं पहली बार वी.एस. ऊपर आग, कभी कभी के बाद मैं छोड़ थोड़ी देर के लिए मेरी मेज और वापस आ जाओ। इसके अलावा, लॉग से, यह विजुअल स्टूडियो सीएसएस संपादन पैकेज लोड करने के ठीक बाद प्रतीत होता है। मेरे पास एमवीसी 4 स्थापित है, हो सकता है कि यह नया सीएसएस (CSS3 मुझे लगता है?)

वैसे भी, बस सोच रहा है कि किसी ने पहले इसमें भाग लिया था और किसी प्रकार का संकल्प था।

+0

http://stackoverflow.com/a/20301710/736079 – jessehouwing

उत्तर

5

लगता है कि कुछ वीएस एक्सटेंशन इसे क्रैश कर सकता है। (क्या आपने हाल ही में विस्तार स्थापित किया है?)

समस्या का निदान करने के लिए सुरक्षित मोड में वीएस चलाने का प्रयास करें।

भागो इस आदेश और देखें कि क्या वी.एस.

devenv.exe /safemode 

अधिक यहाँ

http://blog.meidianto.com/2010/05/16/vs2010-tips-8-got-annoying-visual-studio-2010-error-try-to-run-in-safe-mode/

+1

हाँ, दुर्भाग्य से यह अभी भी सुरक्षित मोड में होता है, वही त्रुटि – sovemp

+1

मरम्मत की कोशिश/स्थापना वी.एस. को पुनर्स्थापित .. कि मदद कर सकता है हो सकता है .. यह भी हो सकता है आप यहां उपकरण का उपयोग कर वीएस के लिए एक बग फाइल कर सकते हैं .. http://blogs.msdn.com/b/visualstudio/archive/2012/06/20/the-visual-studio-2012-feedback-tool-a-better-way-to-submit-bugs.aspx – Amitd

+1

हाँ, मुझे कल्पना है कि मैं अंततः ऐसा करूँगा, यह अभी भी दुर्घटनाग्रस्त नहीं है या अभी कुछ भी परेशान नहीं है। – sovemp

4

वी.एस. प्रशासक की जरूरत प्लगइन को संभालने के लिए previleges शुरू होता है। तो वीएस पर राइट क्लिक करें और "एडमिनिस्ट्रेटर के रूप में चलाएं" पर क्लिक करें। यह मेरे लिए हल हो गया। एक बार कोशिश करो

0

यह उपकरण-> आयात और निर्यात सेटिंग्स-> सभी सेटिंग्स रीसेट करें।

-1

अपने वीएस संस्करण के लिए वेब आवश्यक डाउनलोड करें। यह ActivityLog.xml के बारे में मेरी समस्या को हल करता है। Web Essential

0

मैं एक ही त्रुटि थी और मेरे ActivityLog.xml निम्न त्रुटि से पता चला है:

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) No exports were found that match the constraint: ContractName Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.IWebLinterAggregator RequiredTypeIdentity Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.IWebLinterAggregator Resulting in: Cannot set import 'Microsoft.Web.Editor.Composition.ComponentLocator(Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.IWebLinterAggregator)+SingleImporter.Import (ContractName="Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.IWebLinterAggregator")' on part 'Microsoft.Web.Editor.Composition.ComponentLocator(Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.IWebLinterAggregator)+SingleImporter'. Element: Microsoft.Web.Editor.Composition.ComponentLocator(Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.IWebLinterAggregator)+SingleImporter.Import (ContractName="Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.IWebLinterAggregator") --> Microsoft.Web.Editor.Composition.ComponentLocator(Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.IWebLinterAggregator)+SingleImporter at System.ComponentModel.Composition.CompositionResult.ThrowOnErrors(AtomicComposition atomicComposition) at System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImportsOnce(ComposablePart part) at System.ComponentModel.Composition.Hosting.CompositionContainer.SatisfyImportsOnce(ComposablePart part) at Microsoft.VisualStudio.Composition.NetFxAdapters.CompositionService.SatisfyImportsOnce(ComposablePart part) at System.ComponentModel.Composition.AttributedModelServices.SatisfyImportsOnce(ICompositionService compositionService, Object attributedPart) at Microsoft.Web.Editor.Composition.ComponentLocator`1.Import() at Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.LinterUtilities.<>c.<.cctor>b__4_1() at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue() at System.Lazy`1.get_Value() at Microsoft.VisualStudio.Web.Editor.Package.Lint.WebLinter.LinterUtilities.IsFileSupported(String fileName) at Microsoft.VisualStudio.Web.Editor.Package.Lint.ErrorTagger.LintErrorTaggerProvider.CreateTagger[T](ITextBuffer textBuffer) at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)

उपकरण पर जाकर उसे हल -> एक्सटेंशन और अपडेट -> अपडेट -> दृश्य स्टूडियो गैलरी -> नई स्थापित के संस्करण Microsoft ASP.NET and Web Tools

संबंधित मुद्दे