I’m getting an error message every time I start Visual Studio. Since I’m also seeing some unexplained behavior in my project, I’d like to resolve this issue.
Error Message
An exception has been encountered. This may be caused by an extension.
You can get more information by examining the file ‘C:UsersJonathanAppDataRoamingMicrosoftVisualStudio11.0ActivityLog.xml’.
When I look at the log file, I find two exceptions:
Error 1
Exception Type : System.Windows.Markup.XamlParseException
Exception Message : Provide value on 'System.Windows.StaticResourceExtension' threw an exception.
Exception Stack Trace:
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at SquaredInfinity.VSCommands.UI.Views.DefaultAlertView.InitializeComponent()
at SquaredInfinity.VSCommands.Foundation.Services.VSCUIService.GetDefaultAlertViewModel(String alertMessage, String alertDialogTitle)
at SquaredInfinity.Foundation.Presentation.Services.UIService.GetDefaultAlertViewModel(String alertMessage)
at SquaredInfinity.Foundation.Presentation.Services.UIService.ShowAlert(String message)
at SquaredInfinity.VSCommands.VSCommandsPackage.Initialize()
Exception Data : [EmptyOrNull]
Inner Exception:
Exception Type : System.Exception
Exception Message : Cannot find resource named 'VSC.Button'. Resource names are case sensitive.
Exception Stack Trace: at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
Exception Data : [EmptyOrNull]
Error 2
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) The current type, SquaredInfinity.Foundation.Configuration.Services.IConfigurationService, is an interface and cannot be constructed. Are you missing a type mapping?
Resulting in: Resolution of the dependency failed, type = "SquaredInfinity.Foundation.Configuration.Services.IConfigurationService", name = "(none)".
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The current type, SquaredInfinity.Foundation.Configuration.Services.IConfigurationService, is an interface and cannot be constructed. Are you missing a type mapping?
-----------------------------------------------
At the time of the exception, the container was:
Resolving SquaredInfinity.Foundation.Configuration.Services.IConfigurationService,(none)
Resulting in: An exception occurred while trying to create an instance of type '#Btb.#Rtb'.
Resulting in: Cannot activate part '#Btb.#Rtb'.
Element: #Btb.#Rtb --> #Btb.#Rtb
Resulting in: Cannot get export '#Btb.#Rtb (ContractName="Microsoft.VisualStudio.Text.Classification.IClassifierProvider")' from part '#Btb.#Rtb'.
Element: #Btb.#Rtb (ContractName="Microsoft.VisualStudio.Text.Classification.IClassifierProvider") --> #Btb.#Rtb
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.Text.Utilities.GuardedOperations.InvokeMatchingFactories[TExtensionInstance,TExtensionFactory,TMetadataView](IEnumerable`1 lazyFactories, Func`2 getter, IContentType dataContentType, Object errorSource)
How do I interpret this so that I can figure out the error?
I installed VS2012 Premium from our MSDN subscription and it was working fine the first couple of days but then I installed a few extensions I can’t now start VS2012 and it gives the error:
Faulting application name: devenv.exe, version: 11.0.50727.1, time stamp: 0x5011ecaa
Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f
Exception code: 0xc0000374
Fault offset: 0x000ce6c3
Faulting process id: 0xee8
Faulting application start time: 0x01cd89bb777fc1dd
Faulting application path: C:Program Files (x86)Microsoft Visual Studio 11.0Common7IDEdevenv.exe
Faulting module path: C:WindowsSysWOW64ntdll.dll
I’m running it on Windows 7 64 bit.
I’ve tried to repair, uninstall and install again and nothing. I tried to restore to a previous restore system point but nothing.
The extensions I installed I can remember:
- VS10x Code Map
- VSCommands
- Visual SVN
- Nuget manager
(all the above my colleagues have it too and it works fine for them) and:
- Web Essentials
- Visual Studio Color Theme Editor
- SlowCheetah
- Mobile Ready HTML5
Questions are:
- Anyone else has had this problem?
- Is there a way I can uninstall extensions from a command line or software? (I removed the extensions folder but that doesn’t do
anything) - Can I repair the «C:WindowsSysWOW64ntdll.dll»? Is it really a problem with this dll?
I haven’t been able to find any similar issue in other versions and because VS2012 is new doesn’t seem to be much information either.
asked Sep 3, 2012 at 10:40
2
It is working now!. This is what I did:
Following the suggestion here:
- Removed the key:
[HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers]
. VS2012 loading but then crashing before I could do anything else (error inC:Windowssyswow64KERNELBASE.dll
) - Then I removed:
[HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio11.0]
[HKEY_CURRENT_USERSoftwareMicrosoftVisualStudio11.0_Config]
and started again and is working fine.
I obviously lost all my settings but no big deal as I can now do some work!
devOp
3,1501 gold badge17 silver badges32 bronze badges
answered Sep 3, 2012 at 11:24
David AleuDavid Aleu
3,9023 gold badges27 silver badges48 bronze badges
10
Running devenv.exe with the /SafeMode argument would probably have also fixed it.
devOp
3,1501 gold badge17 silver badges32 bronze badges
answered Jan 5, 2013 at 22:27
JTallsmithJTallsmith
2192 silver badges2 bronze badges
1
I opened a different .sln
and then went back to my faulting project and it loaded! Maybe something with a faulty close-down of the project
Mukul Goel
8,3576 gold badges37 silver badges76 bronze badges
answered Nov 30, 2012 at 17:01
0
Removing all VS settings is a bit harsh unless all visual studio instances crash immediately.
What probably happens when you encounter this is that Visual Studio opens the designer window that caused it to crash in the first place… this is often an extension, but it might also just be a bug in VS. For example: I sometimes experience this when working with LINQ-TO-SQL and have the database-schema designer open.
The easiest resolution is to simply remove the SUO
file with the solution settings, and open the SLN
. You can then do whatever you want, except go to the file with the issue- once you know what that file is, you can fix it (f.ex. in the case of a DBML by simply removing it and regenerating it)
answered Sep 6, 2013 at 12:38
1
Simply running as Administrator seemed to be enough to get it running for me, at least temporarily.
answered Jun 4, 2014 at 0:26
1
I had a similar ntdll.dll issue … C++ updating SQL Server …
I fixed it by using the SQL Server OBDC connection rather than the SQL Server Native Client 11.0
We’re trying to see why as it is working for some updates and not others … but it works all the time for reading.
answered Oct 3, 2013 at 15:00
First launch devenv.exe with the /SafeMode option, then Uncheck the Allow macros to run from «Enviroment->Add-in/Macros Security» and test!
László Papp
51.5k39 gold badges110 silver badges135 bronze badges
answered Jun 12, 2014 at 7:04
The problem is due to path variable. setting path variable in Environmental variables to below 2048 characters worked for me.
answered May 9, 2016 at 10:05
- Remove From My Forums
-
Вопрос
-
При запуске программы через несколько секунд вылетает окно с ошибкой «Прекращена работа программы». В чем может быть проблема ?
Ответы
-
Здравствуйте samijlenko.
Пробовал устанавливать Visual Studio 2012 Express в конце прошлого года.
Было несколько вариантов (Web установка, загрузка с последующей установкой,…).
Оказалось, что на Windows 7 можно установить редакцию Express для компьютеров с OS Windows 8.
Естественно, после такой установки Visual Studio 2012 работать не будет.
Пришлось удалять установленную студию и устанавливать вариант Visual Studio для настольных компьютеров.-
Предложено в качестве ответа
11 марта 2013 г. 13:03
-
Помечено в качестве ответа
Maksim MarinovMicrosoft contingent staff, Moderator
13 марта 2013 г. 9:21
-
Предложено в качестве ответа
1 / 1 / 0 Регистрация: 06.12.2014 Сообщений: 117 |
|
1 |
|
01.03.2017, 19:02. Показов 756. Ответов 2
Впервые столкнулся с данным типом ошибки помогите ее устранить Миниатюры
0 |
Администратор 15637 / 12602 / 4994 Регистрация: 17.03.2014 Сообщений: 25,612 Записей в блоге: 1 |
|
01.03.2017, 19:28 |
2 |
Tof_y, попробуй сделать Repair. Также не помешает установить последнее обновление. Для VS 2012 это Update 5.
0 |
1 / 1 / 0 Регистрация: 06.12.2014 Сообщений: 117 |
|
01.03.2017, 20:26 [ТС] |
3 |
Repair делал не помогло, а вот на счет обновления надо проверить
0 |
Я получаю сообщение об ошибке при каждом запуске Visual Studio. Поскольку я также вижу некоторое необъяснимое поведение в моем проекте, я бы хотел решить эту проблему.
Сообщение об ошибке
Исключено событие. Это может быть вызвано расширением.
Вы можете получить дополнительную информацию, просмотрев файл «C:UsersJonathanAppDataRoamingMicrosoftVisualStudio11.0ActivityLog.xml».
Когда я смотрю файл журнала, я нахожу два исключения:
Ошибка 1
Exception Type : System.Windows.Markup.XamlParseException
Exception Message : Provide value on 'System.Windows.StaticResourceExtension' threw an exception.
Exception Stack Trace:
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at SquaredInfinity.VSCommands.UI.Views.DefaultAlertView.InitializeComponent()
at SquaredInfinity.VSCommands.Foundation.Services.VSCUIService.GetDefaultAlertViewModel(String alertMessage, String alertDialogTitle)
at SquaredInfinity.Foundation.Presentation.Services.UIService.GetDefaultAlertViewModel(String alertMessage)
at SquaredInfinity.Foundation.Presentation.Services.UIService.ShowAlert(String message)
at SquaredInfinity.VSCommands.VSCommandsPackage.Initialize()
Exception Data : [EmptyOrNull]
Inner Exception:
Exception Type : System.Exception
Exception Message : Cannot find resource named 'VSC.Button'. Resource names are case sensitive.
Exception Stack Trace: at System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
at System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
Exception Data : [EmptyOrNull]
Ошибка 2
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) The current type, SquaredInfinity.Foundation.Configuration.Services.IConfigurationService, is an interface and cannot be constructed. Are you missing a type mapping?
Resulting in: Resolution of the dependency failed, type = "SquaredInfinity.Foundation.Configuration.Services.IConfigurationService", name = "(none)".
Exception occurred while: while resolving.
Exception is: InvalidOperationException - The current type, SquaredInfinity.Foundation.Configuration.Services.IConfigurationService, is an interface and cannot be constructed. Are you missing a type mapping?
-----------------------------------------------
At the time of the exception, the container was:
Resolving SquaredInfinity.Foundation.Configuration.Services.IConfigurationService,(none)Resulting in: An exception occurred while trying to create an instance of type '#Btb.#Rtb'.
Resulting in: Cannot activate part '#Btb.#Rtb'.
Element: #Btb.#Rtb --> #Btb.#RtbResulting in: Cannot get export '#Btb.#Rtb (ContractName="Microsoft.VisualStudio.Text.Classification.IClassifierProvider")' from part '#Btb.#Rtb'.
Element: #Btb.#Rtb (ContractName="Microsoft.VisualStudio.Text.Classification.IClassifierProvider") --> #Btb.#Rtb
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.Text.Utilities.GuardedOperations.InvokeMatchingFactories[TExtensionInstance,TExtensionFactory,TMetadataView](IEnumerable`1 lazyFactories, Func`2 getter, IContentType dataContentType, Object errorSource)
Может ли кто-нибудь увидеть, как интерпретировать это, чтобы я мог выяснить ошибку?