Новичок
Профиль
Группа: Участник
Сообщений: 20
Регистрация: 10.8.2007
Репутация: нет Всего: 1
|
Не запускается проект чёрт!! Я не могу понять как мне найти ошибку? Помогите советом. Это появилось после тока как я скопировал 1 прогресс бар и 1 лейбл и после этого она появилась почему то. Выдаёт вот такую ошибку: Код | System.Windows.Markup.XamlParseException was unhandled Message="Не удается создать экземпляр \"Window1\", определенный в сборке \"wpfPlayer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\". Адресат вызова создал исключение. Ошибка в файле разметки \"wpfPlayer;component/Window1.xaml\", строка 1, позиция 9." Source="PresentationFramework" LineNumber=1 LinePosition=9 StackTrace: в System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType) в System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException) в System.Windows.Markup.BamlRecordReader.ThrowExceptionWithLine(String message, Exception innerException) в System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail) в System.Windows.Markup.BamlRecordReader.GetElementAndFlags(BamlElementStartRecord bamlElementStartRecord, Object& element, ReaderFlags& flags, Type& delayCreatedType, Int16& delayCreatedTypeId) в System.Windows.Markup.BamlRecordReader.BaseReadElementStartRecord(BamlElementStartRecord bamlElementRecord) в System.Windows.Markup.BamlRecordReader.ReadElementStartRecord(BamlElementStartRecord bamlElementRecord) в System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord) в System.Windows.Markup.BamlRecordReader.Read(Boolean singleRecord) в System.Windows.Markup.TreeBuilderBamlTranslator.ParseFragment() в System.Windows.Markup.TreeBuilder.Parse() в System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) в System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc) в System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties) в System.Windows.Application.DoStartup() в System.Windows.Application.<.ctor>b__0(Object unused) в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) в System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) в System.Windows.Threading.DispatcherOperation.InvokeImpl() в System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) в System.Threading.ExecutionContext.runTryCode(Object userData) в System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) в System.Windows.Threading.DispatcherOperation.Invoke() в System.Windows.Threading.Dispatcher.ProcessQueue() в System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) в MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) в MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter) в System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) в System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler) в System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter) в System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg) в MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) в MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) в System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) в System.Windows.Threading.Dispatcher.Run() в System.Windows.Application.RunDispatcher(Object ignore) в System.Windows.Application.RunInternal(Window window) в System.Windows.Application.Run(Window window) в System.Windows.Application.Run() в wpfPlayer.App.Main() в V:\main\VS2008\wpfPlayer\wpfPlayer\obj\Debug\App.g.cs:строка 0 в System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args) в System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) в Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() в System.Threading.ThreadHelper.ThreadStart_Context(Object state) в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) в System.Threading.ThreadHelper.ThreadStart() InnerException: System.Reflection.TargetInvocationException Message="Адресат вызова создал исключение." Source="mscorlib" StackTrace: в System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) в System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) в System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) в System.Activator.CreateInstance(Type type, Boolean nonPublic) в System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail) InnerException: System.ArgumentException Message="\"NaN\" не является допустимым значением для свойства \"Maximum\"." Source="WindowsBase" StackTrace: в System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal) в System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) в System.Windows.Controls.Primitives.RangeBase.set_Maximum(Double value) в wpfPlayer.Window1..ctor() в V:\main\VS2008\wpfPlayer\wpfPlayer\Window1.xaml.cs:строка 39 InnerException:
|
Добавлено через 6 минут и 41 секунду Message="\"NaN\" не является допустимым значением для свойства \"Maximum\"." оо! наверно вся жопа в этом, щас посмотрю...
|