- Remove From My Forums
-
Вопрос
-
Как сослаться на ресурс в разметке XAML внутри контрола?
{StaticResource SomeTemplate} не работает
<ContentControl ContentTemplate="{StaticResource SomeTemplate}"> <ContentControl.Resources> <DataTemplate x:Key="SomeTemplate"> <TextBox Text="{Binding Name}" /> </DataTemplate> </ContentControl.Resources> </ContentControl>
-
Изменено
1 марта 2012 г. 18:53
-
Изменено
Ответы
-
DynamicResource подхватывается, так сказать, на лету. Пока контрол не будет рендериться, использоваться этот ресурс не будет. В случае со StaticResource контрол пытается на этапе инициализации установить нужный шаблон и конечно его не находит, поскольку
он будет создан чуть-чуть позже (тут нужно смотреть что инициализируется первым, про это уже ничего сказать не могу, но раз ошибка есть, значит ресурс инициализируется позже той части, в которой он используется).Именно поэтому динамические ресурсы используют тогда, когда нужный ресурс будет создать немного позже инициализации текущего объекта.
-
Помечено в качестве ответа
Nesikk
2 марта 2012 г. 19:54
-
Помечено в качестве ответа
-
Если ресурс используется только внутри определенного элемента, то это нормально его оставить в этом элементе. В вашем случае лучше вынести ресурс на уровень выше (например в ресурсы дерева, в котором этот элемент). Если вы уверены, что будете его
переиспользовать, то конечно лучше его вынести на уровень application или в отдельный файл с ресурсами и подключать его на уровне application.Да это понятно.
Не очень понятно почему при таком варианте появляется ошибка:
XAML Parse Exeption «Предоставление значения для «System.Windows.StaticResourceExtension» вызвало исключение.»В этой строке:
<TreeView x:Name="treeView" Grid.Column="0" ItemsSource="{Binding Drawing}" ItemTemplate="{StaticResource DrawingTemplate}" >
<TreeView x:Name="treeView" Grid.Column="0" ItemsSource="{Binding Drawing}" ItemTemplate="{StaticResource DrawingTemplate}" > <TreeView.Resources> <DataTemplate x:Key="ElementTemplate"> <TextBlock Text="{Binding Name}" /> </DataTemplate> <HierarchicalDataTemplate x:Key="SchemeTemplate" ItemsSource="{Binding Elements}" ItemTemplate="{StaticResource ElementTemplate}"> <TextBlock Text="{Binding Name}" /> </HierarchicalDataTemplate> <HierarchicalDataTemplate x:Key="DrawingTemplate" ItemsSource="{Binding Schemes}" ItemTemplate="{StaticResource SchemeTemplate}"> <TextBlock Text="{Binding Name}" /> </HierarchicalDataTemplate> </TreeView.Resources> </TreeView>
Меняем ItemTemplate=»{StaticResource DrawingTemplate}» на ItemTemplate=»{DynamicResource DrawingTemplate}»
все окей!Или вот так тоже работает:
<TreeView x:Name="treeView" Grid.Column="0" ItemsSource="{Binding Drawing}" > <TreeView.Resources> <DataTemplate x:Key="ElementTemplate"> <TextBlock Text="{Binding Name}" /> </DataTemplate> <HierarchicalDataTemplate x:Key="SchemeTemplate" ItemsSource="{Binding Elements}" ItemTemplate="{StaticResource ElementTemplate}"> <TextBlock Text="{Binding Name}" /> </HierarchicalDataTemplate> <HierarchicalDataTemplate x:Key="DrawingTemplate" ItemsSource="{Binding Schemes}" ItemTemplate="{StaticResource SchemeTemplate}"> <TextBlock Text="{Binding Name}" /> </HierarchicalDataTemplate> </TreeView.Resources> <TreeView.ItemTemplate> <StaticResourceExtension ResourceKey="DrawingTemplate" /> </TreeView.ItemTemplate> </TreeView>
Не понятно почему первый вариант не работает и в чем тогда отличие привязки
StaticResource и DynamicResource?-
Изменено
Nesikk
2 марта 2012 г. 12:15 -
Помечено в качестве ответа
Nesikk
2 марта 2012 г. 19:54
-
Изменено
Inside a XAML
Page I’m trying to use an IValueConverter
, it’s throwing an error.
- The
IValueConverter
is in another assembly, I have added a reference - There are no design-time errors
- I have assigned the StaticResource with a ResourceKey
At the top of my page I have this:
xmlns:converters="clr-namespace:Converters;assembly=Converters"
<Page.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Styles/DialogStyles.xaml" />
</ResourceDictionary.MergedDictionaries>
<converters:NoWhiteSpaceConverter x:Key="NoWhiteSpaceConverter" />
</ResourceDictionary>
</Page.Resources>
Then I try to use it later on like this:
<TextBox Text="{Binding SomeText, Converter={StaticResource NoWhiteSpaceConverter}}" />
Can anyone see what the problem is?
asked Dec 13, 2012 at 14:24
DrahcirDrahcir
11.7k23 gold badges82 silver badges128 bronze badges
7
In my case the resource was correctly defined before it is used but there was a wrong reference to a converter.
The problematic line was
...{Binding MyProperty, Converter={StaticResource local:MyConverter}}
and it should be without the namespace alias
...{Binding MyProperty, Converter={StaticResource MyConverter}}
where local
is a namespace alias containig the converter class and MyConverter
is the key defined in a resource in the XAML.
answered Aug 25, 2021 at 9:57
limeniye 1171 / 613 / 160 Регистрация: 19.04.2018 Сообщений: 2,917 |
||||||||||||||||
1 |
||||||||||||||||
WPF 01.11.2020, 12:42. Показов 5547. Ответов 3 Метки нет (Все метки)
Создал файл «Buttons.xaml» В App.xaml расписал следующий код:
Подключил к кнопке:
В конструкторе сразу сменился стиль, но при компиляции получаю следующую ошибку» System.Windows.Markup.XamlParseException: «»Предоставление значения для «System.Windows.StaticResourceExtension» вызвало исключение.»: номер строки «24» и позиция в строке «25».» Exception: Не удается найти ресурс с именем «TabStyle». Имена ресурсов определяются с учетом регистра. Возможно дело в классе App, который я изменял?
0 |
Модератор 13300 / 9586 / 2572 Регистрация: 21.04.2018 Сообщений: 28,273 Записей в блоге: 2 |
|
01.11.2020, 14:52 |
2 |
Подключил к кнопке: Где кнопка находится?
0 |
1171 / 613 / 160 Регистрация: 19.04.2018 Сообщений: 2,917 |
|
01.11.2020, 14:53 [ТС] |
3 |
Элд Хасп, там(
0 |
Элд Хасп Модератор 13300 / 9586 / 2572 Регистрация: 21.04.2018 Сообщений: 28,273 Записей в блоге: 2 |
||||
01.11.2020, 15:04 |
4 |
|||
Решение
Элд Хасп, там( Это азы C#. Что такое задание в XAML значений свойств (в том числе ресурсов)? А когда происходит ИНИЦИАЛИЗАЦИЯ полей и свойств? У вас при инициализации поля searchWind происходит обращение к свойству значение которому будет задано только ПОСЛЕ завершения работы конструктора.
Как тогда? Создавать экземпляр SearchWindow после инициализации XAML, то есть в методе Application_Startup:
0 |
IT_Exp Эксперт 87844 / 49110 / 22898 Регистрация: 17.06.2006 Сообщений: 92,604 |
01.11.2020, 15:04 |
Помогаю со студенческими работами здесь
Избавиться от сообщений «Файл не найден», «Системе не удается найти указанный путь», «Устройство не готово» Не удается открыть базу данных «SCU», запрашиваемую именем входа После запуска приложений выдает ошибку «Не удается найти «Путь» проверьте правильно ли указано имя и повторите попытку»
Создать 3 объекта типа Dog (собака) и присвоить им имена «Max», «Bella», «Jack» Искать еще темы с ответами Или воспользуйтесь поиском по форуму: 4 |
What could be the cause of the issue described below and why is this exception thrown?
Having created a DataTemplate like this:
<DataTemplate x:Key="{x:Static controls:InternalResourceKeys.ListBoxItemTemplate}" DataType="{x:Type games:GameDefinitionBase}"> </DataTemplate>
I tried to use it as an ItemTemplate in a ListBox:
<ListBox x:Name="list_definitions" HorizontalContentAlignment="Stretch" SelectionMode="Single" ItemTemplate="{StaticResource {x:Static controls:InternalResourceKeys.ListBoxItemTemplate}}"> </ListBox>
where ‘InternalResourceKeys’ is the following:
static class InternalResourceKeys { static readonly object _listBoxItemTemplate = new object(); public static object ListBoxItemTemplate { get { return _listBoxItemTemplate; } } }
However, the resource lookup throws an exception (pasted at the end). The reason is most possibly this:
{x:Static controls:InternalResourceKeys.ListBoxItemTemplate}
used as DataTemplate key. What is a bit surprising is that I have already used InternalResourceKeys class as a storage for resource keys in the same application. Thus, the concept of resource keys being retrieved by a static property seems to work.
NOTE: when I change all occurences of {x:Static controls:InternalResourceKeys.ListBoxItemTemplate}
to a simple string in all XAML (e.g. x:Key=»myTemplate»)
everything works fine (so I assume it’s nothing to do with the DataTemplate itself). Below is the exception detail from VS2010:
System.Windows.Markup.XamlParseException occurred Message='Provide value on 'System.Windows.StaticResourceExtension' threw an exception.' Line number '37' and line position '77'.
Source=PresentationFramework
LineNumber=37
LinePosition=77
StackTrace:
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
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 PaulStudio.Smithy.Controls.GameDefinitionSelector.InitializeComponent() in c:CodingProjectsSmithysourceSmithyControlsGameDefinitionSelector.xaml:line 1
at PaulStudio.Smithy.Controls.GameDefinitionSelector..ctor() in C:CodingProjectsSmithysourceSmithyControlsGameDefinitionSelector.xaml.cs:line 31
InnerException:
Message=Cannot find resource named 'System.Object'. Resource names are case sensitive. Source=PresentationFramework
StackTrace:
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)
InnerException:
Thanks in advance!
-
Edited by
Saturday, September 4, 2010 5:35 PM
formatting fail
What could be the cause of the issue described below and why is this exception thrown?
Having created a DataTemplate like this:
<DataTemplate x:Key="{x:Static controls:InternalResourceKeys.ListBoxItemTemplate}" DataType="{x:Type games:GameDefinitionBase}"> </DataTemplate>
I tried to use it as an ItemTemplate in a ListBox:
<ListBox x:Name="list_definitions" HorizontalContentAlignment="Stretch" SelectionMode="Single" ItemTemplate="{StaticResource {x:Static controls:InternalResourceKeys.ListBoxItemTemplate}}"> </ListBox>
where ‘InternalResourceKeys’ is the following:
static class InternalResourceKeys { static readonly object _listBoxItemTemplate = new object(); public static object ListBoxItemTemplate { get { return _listBoxItemTemplate; } } }
However, the resource lookup throws an exception (pasted at the end). The reason is most possibly this:
{x:Static controls:InternalResourceKeys.ListBoxItemTemplate}
used as DataTemplate key. What is a bit surprising is that I have already used InternalResourceKeys class as a storage for resource keys in the same application. Thus, the concept of resource keys being retrieved by a static property seems to work.
NOTE: when I change all occurences of {x:Static controls:InternalResourceKeys.ListBoxItemTemplate}
to a simple string in all XAML (e.g. x:Key=»myTemplate»)
everything works fine (so I assume it’s nothing to do with the DataTemplate itself). Below is the exception detail from VS2010:
System.Windows.Markup.XamlParseException occurred Message='Provide value on 'System.Windows.StaticResourceExtension' threw an exception.' Line number '37' and line position '77'.
Source=PresentationFramework
LineNumber=37
LinePosition=77
StackTrace:
at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
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 PaulStudio.Smithy.Controls.GameDefinitionSelector.InitializeComponent() in c:CodingProjectsSmithysourceSmithyControlsGameDefinitionSelector.xaml:line 1
at PaulStudio.Smithy.Controls.GameDefinitionSelector..ctor() in C:CodingProjectsSmithysourceSmithyControlsGameDefinitionSelector.xaml.cs:line 31
InnerException:
Message=Cannot find resource named 'System.Object'. Resource names are case sensitive. Source=PresentationFramework
StackTrace:
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)
InnerException:
Thanks in advance!
-
Edited by
Saturday, September 4, 2010 5:35 PM
formatting fail
This Exception is generally thrown when you have any static resource and is not the present before it is being used. You should preferably have all the resource before the Main Container. Please find below an example.
<Window x:Class="MultiBinding.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MultiBinding" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <local:SumConverter x:Key="sumConverter" /> <local:AvgConverter x:Key="avgConverter" /> </Window.Resources> <StackPanel x:Name="spMainContainer"> </StackPanel >
As you can see here we have an Resource for entire XAML which is present in Windows.Resource which is a static resource. So this is placed before this resources are used. Preferably before the main container if it is for whole window.
|
Скажите как исправить ошибку
System.Windows.Markup.XamlParseException: «»Предоставление значения для «System.Windows.StaticResourceExtension» вызвало исключение.»: номер строки «9» и позиция в строке «151».»
Внутреннее исключение.
Exception: Не удается найти ресурс с именем «MyViewModel». Имена ресурсов определяются с учетом регистра.
App.xaml
<Application x:Class="COP.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ModernButton="clr-namespace:ModernButton;assembly=ModernButton"
xmlns:local="clr-namespace:COP"
xmlns:local1="clr-namespace:COP.ViewModel">
<Application.Resources>
<local1:MainViewModel x:Key="MyViewModel" />
</Application.Resources>
Window1.xaml
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:COP"
xmlns:ModernButton="clr-namespace:ModernButton;assembly=ModernButton" x:Class="COP.Window1"
mc:Ignorable="d"
Title="Window1" Height="700" Width="500" MinHeight="360" MinWidth="350" AllowsTransparency="True" Background="Transparent" WindowStyle="None" ResizeMode="CanResizeWithGrip" DataContext="{StaticResource MyViewModel}">
<Border Style="{StaticResource DefaultStyleBorder}">
<Grid>
<!--Top Panel-->
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<ModernButton:ModernBTN BtnText="Назад" Name="back" HorizontalAlignment="Left" CornerRadius="17,0,0,0" Style="{StaticResource DefaultButtonStyle}"/>
<Frame Grid.Column="0" Grid.ColumnSpan="3" Grid.Row="1" Content="{Binding CurrentPage}" NavigationUIVisibility="Hidden" Opacity="{Binding FrameOpacity}"></Frame>
<TextBlock Grid.Row="2" Grid.Column="1" Style="{StaticResource StyleTextBlock}">Регистрация</TextBlock>
<TextBlock Grid.Row="3" Grid.Column="1" Style="{StaticResource StyleTextBlock}">Востановить пароль</TextBlock>
</Grid>
</Border>
Могу выложить еще код если нужно будет.
MainViewModel.cs
class MainViewModel : INotifyPropertyChanged
{
ApplicationContext db;
private Page Login;
private Page Register;
private DataBaseHelper helper;
private MainWindow m;
private Window1 n;
private bool _lightStyle = true;
public bool LightStyle
{
get { return _lightStyle; }
set { _lightStyle = value; OnPropertyChanged(); }
}
private Page _currentPage;
public Page CurrentPage
{
get { return _currentPage; }
set { _currentPage = value; OnPropertyChanged(); }
}
private double _frameOpacity;
public double FrameOpacity
{
get { return _frameOpacity; }
set { _frameOpacity = value; OnPropertyChanged(); }
}
private string _loginValue = String.Empty;
public string LoginValue
{
get { return _loginValue; }
set { _loginValue = value; OnPropertyChanged(); }
}
public Commands.AuthCommand AuthCommand { get; set; }
public MainViewModel()
{
helper = new DataBaseHelper();
Login = new Pages.Login();
Login.DataContext = this;
Register = new Pages.Register();
FrameOpacity = 1;
CurrentPage = Login;
LightStyle = false;
this.AuthCommand = new Commands.AuthCommand(this);
}
public MainViewModel(Window1 window)
{
n = window;
helper = new DataBaseHelper();
Login = new Pages.Login();
Login.DataContext = this;
Register = new Pages.Register();
FrameOpacity = 1;
CurrentPage = Login;
LightStyle = false;
}
public void AuthMethod(object parametr)
{
bool isExist = helper.LoginExist(LoginValue, ((PasswordBox)parametr).Password.ToString());
if (isExist)
{
System.Windows.Forms.MessageBox.Show("Зарегестрирован уже");
n.DialogResult = true;
}
else
System.Windows.Forms.MessageBox.Show("Такого логина не существует!");
}
public ICommand ExitCommand
{
get { return new RelayCommand(o => { Environment.Exit(0); }); }
}
public async void SlowOpacity(string page)
{
await Task.Factory.StartNew(() =>
{
for (double i = 1.0; i > 0.0; i -= 0.1)
{
FrameOpacity = i;
Thread.Sleep(50);
}
if (page == "Login")
CurrentPage = Login;
else
CurrentPage = Register;
for (double i = 0.0; i < 1.1; i += 0.1)
{
FrameOpacity = i;
Thread.Sleep(50);
}
});
}
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
App.xaml.cs
public partial class App : Application
{
protected override void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
Window1 LoginWindow = new Window1();
LoginWindow.ShowDialog();
LoginWindow.DataContext = new ViewModel.MainViewModel();
if(LoginWindow.DialogResult == true)
{
MainWindow mv = new MainWindow();
mv.Show();
LoginWindow.Close();
}
}
}
Владимир Валерьевич Бобков
Возникла трудность с настройкой IntelliJ IDEA 2016.2.4 для работы с GitHub’ом. Установил приложение GitHub Desktop и через диспетчер задач определил место расположения его файлов. В настройках по умолчанию IntelliJ IDEA в разделе Version Control/Git/Path to Git executable указал путь к файлу github.exe (изначально там был путь к файлу git.exe, которого в системе нет). При попытке дать команду VCS -> Import into Versipn Control -> Share Project on GitHub получаю следующее сообщение: «Error Running Git: Empty git —version output:»
Что нужно сделать, чтобы заработала эта система?
Так выглядит сообщение, которое выдаёт IntelliJ IDEA после нажатия кнопки «Test» в настройках Git: «Errors while executing git —version. exitCode=0 errors: Fatal Exception
System.Reflection.TargetInvocationException: Адресат вызова создал исключение. —> System.Windows.Markup.XamlParseException: Предоставление значения для «System.Windows.StaticResourceExtension» вызвало исключение. —> System.Exception: Не удается найти ресурс с именем «GitHubAccentBrush». Имена ресурсов определяются с учетом регистра.
в System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
в System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
в MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
— Конец трассировки внутреннего стека исключений —
в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
в System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
в GitHub.Views.ShellView.InitializeComponent()
в GitHub.Views.ShellView..ctor()
— Конец трассировки внутреннего стека исключений —
в System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
в System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
в System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
в System.Activator.CreateInstance(Type type, Boolean nonPublic)
в System.Activator.CreateInstance(Type type)
в Caliburn.Micro.ViewLocator.<.cctor>b_2(Type viewType)
в Caliburn.Micro.ViewLocator.<.cctor>bd(Type modelType, DependencyObject displayLocation, Object context)
в Caliburn.Micro.ViewLocator.<.cctor>be(Object model, DependencyObject displayLocation, Object context)
в Caliburn.Micro.WindowManager.CreateWindow(Object rootModel, Boolean isDialog, Object context, IDictionary2 settings)
2 settings)
в Caliburn.Micro.WindowManager.ShowWindow(Object rootModel, Object context, IDictionary
в Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary`2 settings)
в GitHub.Helpers.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e)
в System.Windows.Application.OnStartup(StartupEventArgs e)
в System.Windows.Application.<.ctor>b_1_0(Object unused)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
2016-10-03 20:43:23.2466|ERROR|thread: 1|CrashManager|Dumping Loaded Module List
2016-10-03 20:43:21.7645|INFO|thread: 1|CommandLineHandler|Parsing command line arguments:—version
2016-10-03 20:43:21.7945|INFO|thread: 1|CommandLineHandler|Unprocessed args: —version
2016-10-03 20:43:21.7945|INFO|thread: 1|CommandHandler|Repository Path to open: ‘C:Program Files (x86)JetBrainsIntelliJ IDEA Community Edition 2016.2.4jrejrebin—version’, Is Repository: False
2016-10-03 20:43:21.8155|INFO|thread: 1|AppInstance|Starting up as master instance of GitHub Desktop
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| #########################################
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| GitHub Desktop started. VERSION: 3.3.1.0
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| Build version: 906de22474a9fc0f091e6cd4d59d101755808c56
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| ***************************************
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| *** ***
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| *** ***
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| *** Have a problem? ***
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| *** Email support@github.com ***
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| *** and include this file ***
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| *** ***
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| *** ***
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| ***************************************
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| OS Version: Windows 7 Service Pack 1 6.1.7601.65536 amd64
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| CLR Version: 4.0.30319.42000
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| Current culture: ru-RU
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| Environment.CurrentDirectory: C:Program Files (x86)JetBrainsIntelliJ IDEA Community Edition 2016.2.4jrejrebin
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| currentProcess.StartInfo.WorkingDirectory:
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| Terminal Services session: no
2016-10-03 20:43:21.8275|INFO|thread: 5|StartupLogging| Location: C:UserssamsungAppDataLocalApps2.0POV0O0AM.047MD9JACE1.8AVgith..tion_317444273a93ac29_0003.0003_83ed0490a76a8c54GitHub.exe
2016-10-03 20:43:21.8415|INFO|thread: 5|StartupLogging| ActivationUri: https://github-windows.s3.amazonaws.com/GitHub.application
2016-10-03 20:43:21.8415|INFO|thread: 5|StartupLogging| System.Environment.CommandLine: C:UserssamsungAppDataLocalApps2.0POV0O0AM.047MD9JACE1.8AVgith..tion_317444273a93ac29_0003.0003_83ed0490a76a8c54GitHub.exe, —version
2016-10-03 20:43:21.8785|INFO|thread: 1|HardwareRenderingHelper|Your video card appears to support hardware rendering. If this isn’t the case and you see glitches
2016-10-03 20:43:21.8785|INFO|thread: 1|HardwareRenderingHelper|set the GH_FORCE_SW_RENDERING environment variable to 1
2016-10-03 20:43:21.8885|INFO|thread: 1|App|Checking whether application is network deployed: False
2016-10-03 20:43:21.8885|INFO|thread: 1|App|Shortcut C:UserssamsungAppDataLocalGitHubGitHub.appref-ms exists? True
2016-10-03 20:43:21.8885|INFO|thread: 1|App|Restarting from application shortcut to ensure network deployment with args ‘base64:LS12ZXJzaW9u,L3Jlc3RhcnRlZA==,LS1jZD1DOlxQcm9ncmFtIEZpbGVzICh4ODYpXEpldEJyYWluc1xJbnRlbGxpSiBJREVBIENvbW11bml0eSBFZGl0aW9uIDIwMTYuMi40XGpyZVxqcmVcYmlu’ encoded ‘base64:LS12ZXJzaW9u,L3Jlc3RhcnRlZA==,LS1jZD1DOlxQcm9ncmFtIEZpbGVzICh4ODYpXEpldEJyYWluc1xJbnRlbGxpSiBJREVBIENvbW11bml0eSBFZGl0aW9uIDIwMTYuMi40XGpyZVxqcmVcYmlu.
2016-10-03 20:43:21.8885|INFO|thread: 5|GitEnvironment|Process set up with this SSH Agent info: 5164:/tmp/ssh-xFBwRwaQxv9d/agent.1744
2016-10-03 20:43:21.8885|INFO|thread: 5|GitEnvironment|PATH is C:UserssamsungAppDataLocalGitHubPortableGit_284a859b0e6deba86edc624fef1e4db2aa8241a9cmd;C:UserssamsungAppDataLocalGitHubPortableGit_284a859b0e6deba86edc624fef1e4db2aa8241a9usrbin;C:UserssamsungAppDataLocalGitHubPortableGit_284a859b0e6deba86edc624fef1e4db2aa8241a9usrsharegit-tfs;C:UserssamsungAppDataLocalApps2.0POV0O0AM.047MD9JACE1.8AVgith..tion_317444273a93ac29_0003.0003_83ed0490a76a8c54;C:UserssamsungAppDataLocalGitHublfs-amd64_1.3.1;C:ProgramDataOracleJavajavapath;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;C:Program Files (x86)AMD APPbinx86_64;C:Program Files (x86)AMD APPbinx86;C:windowssystem32;C:windows;C:windowsSystem32Wbem;C:windowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesATI.ACECore-Static;C:Program FilesBroadcomBroadcom 802.11 Network AdapterDriver;C:Program Files (x86)Windows LiveShared;C:Program FilesCalibre2;C:Program Files (x86)Common FilesAcronisSnapAPI;C:Program FilesMATLABR2015bruntimewin64;C:Program FilesMATLABR2015bbin;D:installingMATLABruntimewin64;D:installingMATLABbin;D:installingMATLABpolyspacebin;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Program Files (x86)Microsoft SDKsTypeScript1.0;C:Program FilesMicrosoft SQL Server120ToolsBinn;C:Program Files (x86)SkypePhone;C:Program FilesMATLABR2015bpolyspacebin;C:Program Filesnodejs;C:UserssamsungAppDataRoamingnpm;C:Program Files (x86)MSBuild12.0bin;C:Program Files (x86)Microsoft SDKsWindowsv8.1AbinNETFX 4.5.1 Toolsx64
2016-10-03 20:43:21.8885|INFO|thread: 5|StartupLogging| =====================================================
2016-10-03 20:43:21.8885|INFO|thread: 5|StartupLogging| DIAGNOSTICS |
2016-10-03 20:43:21.8885|INFO|thread: 5|StartupLogging| =====================================================
2016-10-03 20:43:21.8885|INFO|thread: 5|StartupLogging| Git Extracted: ‘True:
2016-10-03 20:43:21.8885|INFO|thread: 5|StartupLogging| PortableGit Dir Exists: ‘C:UserssamsungAppDataLocalGitHubPortableGit_284a859b0e6deba86edc624fef1e4db2aa8241a9’
2016-10-03 20:43:21.9005|INFO|thread: 5|StartupLogging| Git Executable Exists: ‘C:UserssamsungAppDataLocalGitHubPortableGit_284a859b0e6deba86edc624fef1e4db2aa8241a9cmdgit.exe’
2016-10-03 20:43:21.9005|ERROR|thread: 5|StartupLogging| MISSING PATH!!: ‘C:Program Files (x86)AMD APPbinx86’
2016-10-03 20:43:21.9005|INFO|thread: 5|StartupLogging| —————————————————-
2016-10-03 20:43:21.9005|INFO|thread: 5|StartupLogging| PATH: C:ProgramDataOracleJavajavapath;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;C:Program Files (x86)AMD APPbinx86_64;C:Program Files (x86)AMD APPbinx86;C:windowssystem32;C:windows;C:windowsSystem32Wbem;C:windowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesATI.ACECore-Static;C:Program FilesBroadcomBroadcom 802.11 Network AdapterDriver;C:Program Files (x86)Windows LiveShared;C:Program FilesCalibre2;C:Program Files (x86)Common FilesAcronisSnapAPI;C:Program FilesMATLABR2015bruntimewin64;C:Program FilesMATLABR2015bbin;D:installingMATLABruntimewin64;D:installingMATLABbin;D:installingMATLABpolyspacebin;C:Program FilesMicrosoft SQL Server110ToolsBinn;C:Program Files (x86)Microsoft SDKsTypeScript1.0;C:Program FilesMicrosoft SQL Server120ToolsBinn;C:Program Files (x86)SkypePhone;C:Program FilesMATLABR2015bpolyspacebin;C:Program Filesnodejs;C:UserssamsungAppDataRoamingnpm
2016-10-03 20:43:21.9345|INFO|thread: 1|SoftwareUpdateViewModel|ApplicationDeployment.IsNetworkDeployed = false. We are not going to try and update the Add/Remove Programs Icon.
2016-10-03 20:43:21.9505|INFO|thread: 5|StartupLogger|Proxy information: (None)
2016-10-03 20:43:21.9505|INFO|thread: 5|StartupLogger|Couldn’t fetch creds for proxy
2016-10-03 20:43:22.8606|INFO|thread: 5|PortablePackageManager|Already extracted PortableGit.7z, returning 100%
2016-10-03 20:43:22.9686|INFO|thread: 5|MsysGitCertificateInstaller|Found certificate cache, loaded 156 certificates
2016-10-03 20:43:22.9686|INFO|thread: 5|MsysGitCertificateInstaller|Created certificate bundle with 191 entries
2016-10-03 20:43:23.0466|INFO|thread: 5|StartupSequence|Took 203ms to Update certificate bundle from system store
2016-10-03 20:43:23.2086|WARN|thread: 1|StandardUserErrors|Showing user error The application failed in a manner unexpected to the authors of the application and the only safe recourse is to shut down now. The authors have been notified.
System.Reflection.TargetInvocationException: Адресат вызова создал исключение. —> System.Windows.Markup.XamlParseException: Предоставление значения для «System.Windows.StaticResourceExtension» вызвало исключение. —> System.Exception: Не удается найти ресурс с именем «GitHubAccentBrush». Имена ресурсов определяются с учетом регистра.
в System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
в System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
в MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
— Конец трассировки внутреннего стека исключений —
в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
в System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
в GitHub.Views.ShellView.InitializeComponent()
в GitHub.Views.ShellView..ctor()
— Конец трассировки внутреннего стека исключений —
в System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
в System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
в System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
в System.Activator.CreateInstance(Type type, Boolean nonPublic)
в System.Activator.CreateInstance(Type type)
в Caliburn.Micro.ViewLocator.<.cctor>b_2(Type viewType)
в Caliburn.Micro.ViewLocator.<.cctor>bd(Type modelType, DependencyObject displayLocation, Object context)
в Caliburn.Micro.ViewLocator.<.cctor>be(Object model, DependencyObject displayLocation, Object context)
в Caliburn.Micro.WindowManager.CreateWindow(Object rootModel, Boolean isDialog, Object context, IDictionary2 settings)
2 settings)
в Caliburn.Micro.WindowManager.ShowWindow(Object rootModel, Object context, IDictionary
в Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary`2 settings)
в GitHub.Helpers.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e)
в System.Windows.Application.OnStartup(StartupEventArgs e)
в System.Windows.Application.<.ctor>b1_0(Object unused)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
2016-10-03 20:43:23.2466|ERROR|thread: 1|CrashManager|Aieeeeeeee!
System.Reflection.TargetInvocationException: Адресат вызова создал исключение. —> System.Windows.Markup.XamlParseException: Предоставление значения для «System.Windows.StaticResourceExtension» вызвало исключение. —> System.Exception: Не удается найти ресурс с именем «GitHubAccentBrush». Имена ресурсов определяются с учетом регистра.
в System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
в System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
в MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
— Конец трассировки внутреннего стека исключений —
в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
в System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
в GitHub.Views.ShellView.InitializeComponent()
в GitHub.Views.ShellView..ctor()
— Конец трассировки внутреннего стека исключений —
в System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
в System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
в System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
в System.Activator.CreateInstance(Type type, Boolean nonPublic)
в System.Activator.CreateInstance(Type type)
в Caliburn.Micro.ViewLocator.<.cctor>b2(Type viewType)
в Caliburn.Micro.ViewLocator.<.cctor>bd(Type modelType, DependencyObject displayLocation, Object context)
в Caliburn.Micro.ViewLocator.<.cctor>be(Object model, DependencyObject displayLocation, Object context)
в Caliburn.Micro.WindowManager.CreateWindow(Object rootModel, Boolean isDialog, Object context, IDictionary2 settings)
2 settings)
в Caliburn.Micro.WindowManager.ShowWindow(Object rootModel, Object context, IDictionary
в Caliburn.Micro.BootstrapperBase.DisplayRootViewFor(Type viewModelType, IDictionary`2 settings)
в GitHub.Helpers.AppBootstrapper.OnStartup(Object sender, StartupEventArgs e)
в System.Windows.Application.OnStartup(StartupEventArgs e)
в System.Windows.Application.<.ctor>b_1_0(Object unused)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
2016-10-03 20:43:23.2466|ERROR|thread: 1|CrashManager|Inner Exception
System.Windows.Markup.XamlParseException: Предоставление значения для «System.Windows.StaticResourceExtension» вызвало исключение. —> System.Exception: Не удается найти ресурс с именем «GitHubAccentBrush». Имена ресурсов определяются с учетом регистра.
в System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
в System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
в MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
— Конец трассировки внутреннего стека исключений —
в System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
в System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
в System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
в GitHub.Views.ShellView.InitializeComponent()
в GitHub.Views.ShellView..ctor()
2016-10-03 20:43:23.2466|ERROR|thread: 1|CrashManager|Inner Exception
System.Exception: Не удается найти ресурс с именем «GitHubAccentBrush». Имена ресурсов определяются с учетом регистра.
в System.Windows.StaticResourceExtension.ProvideValueInternal(IServiceProvider serviceProvider, Boolean allowDeferredReference)
в System.Windows.StaticResourceExtension.ProvideValue(IServiceProvider serviceProvider)
в MS.Internal.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)»