Avatar
hurvajs
Člen
Avatar
hurvajs:

Zdravím, mám takový menší problém, celou dobu mi normálně fungoval debug a po vypnutí pc mi při pokusu spustit aplikaci hází chybu "An unhandled exception of type 'System.Window­s.Markup.XamlPar­seException' occurred in PresentationFra­mework.dll...Ad­ditional information: Vyvolání konstruktoru pro typ EvidenceZakazek­.MainWindow, který odpovídá zadaným omezením vazby, vyvolalo výjimku. Číslo řádku 3 a pozice na řádku 9"
zde je kod toho okna, nevím vůbec co s tím, zkoušel jsem přeinstalovat i systém a nic...

<Window x:Class="EvidenceZakazek.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Evidence zakázek" Height="800" Width="1024">
    <Grid>
        <Menu HorizontalAlignment="Left" Height="20" Margin="0,0,0,0" VerticalAlignment="Top" Width="1016">
            <MenuItem Header="ZAKÁZKY" FontFamily="Times New Roman" FontSize="14">
                <MenuItem Header="Nová zakázka" Click="BtnNovaZakazka_Click"/>
                <MenuItem Header="Seriové zakázky" Click="BtnPrehledSeriovych_Click"/>
                <MenuItem Header="Kusové zakázky" Click="BtnPrehledKusovych_Click"/>
            </MenuItem>
            <MenuItem Header="FAKTURY" FontFamily="Times New Roman" FontSize="14">
                <MenuItem Header="Vytvořit Fakturu" Click="BtnNovaFaktura_Click"/>
                <MenuItem Header="Přehled faktur" Click="BtnPrehledFaktur_Click"/>
            </MenuItem>
            <MenuItem Header="KATALOG" FontFamily="Times New Roman" FontSize="14">
                <MenuItem Header="Nový produkt" Click="BtnNovyProdukt_Click"/>
                <MenuItem Header="Přehled produktů" Click="BtnPrehledProduktu_Click"/>
            </MenuItem>
            <MenuItem Header="ZÁKAZNÍCÍ" FontFamily="Times New Roman" FontSize="14">
                <MenuItem Header="Přehled" Click="BtnPrehledZakazniku_Click"/>
                <MenuItem Header="Přidat zákazníka" Click="BtnNovyZakaznik_Click"/>
            </MenuItem>
        </Menu>
        <Frame x:Name="ZobrazovaciPlocha" HorizontalAlignment="Left" Height="749" Margin="0,20,0,0" VerticalAlignment="Top" Width="1016" NavigationUIVisibility="Hidden"/>
    </Grid>
</Window>
 
Odpovědět 13.3.2013 15:25
Avatar
Odpovídá na hurvajs
Luboš Běhounek (Satik):

První co bych zkusil, je na celém projektu dát Clean a Celý ho nechat znovu přeBuildovat, často to při podobných obskurních chybách pomůže.

Nahoru Odpovědět 13.3.2013 15:46
:)
Avatar
hurvajs
Člen
Avatar
Odpovídá na Luboš Běhounek (Satik)
hurvajs:

Díky za radu, ale i tak to bohužel nefunguje..
zde je výpis z Output, třeba to pomůže
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC32\ms­corlib\v4.0_4­.0.0.0__b77a5c56­1934e089\mscor­lib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\as­sembly\GAC_MSIL­\Microsoft.Vi­sualStudio.Hos­tingProcess.U­tilities\11.0­.0.0__b03f5f7f­11d50a3a\Micro­soft.VisualStu­dio.HostingPro­cess.Utilities­.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Window­s.Forms\v4.0_4­.0.0.0__b77a5c56­1934e089\System­.Windows.Forms­.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Drawin­g\v4.0_4.0.0.0__b03f5f7f­11d50a3a\System­.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System\v4.0_4­.0.0.0__b77a5c56­1934e089\System­.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\as­sembly\GAC_MSIL­\Microsoft.Vi­sualStudio.Hos­tingProcess.U­tilities.Sync\11­.0.0.0__b03f5f7f­11d50a3a\Micro­soft.VisualStu­dio.HostingPro­cess.Utilities­.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\as­sembly\GAC_MSIL­\Microsoft.Vi­sualStudio.De­bugger.Runtime\11­.0.0.0__b03f5f7f­11d50a3a\Micro­soft.VisualStu­dio.Debugger.Run­time.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\Mar­tin\documents\vi­sual studio 2012\Projects\E­videnceZakazek\E­videnceZakazek\bin\x86\­Debug\Evidence­Zakazek.vshos­t.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC32\Sys­tem.Data\v4.0_4­.0.0.0__b77a5c56­1934e089\System­.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Core\v4­.0_4.0.0.0__b77a5c56­1934e089\System­.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Xml\v4­.0_4.0.0.0__b77a5c56­1934e089\System­.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\Microsoft.CShar­p\v4.0_4.0.0.0__b03f5f7f­11d50a3a\Micro­soft.CSharp.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Xml.Lin­q\v4.0_4.0.0.0__b77a5c56­1934e089\System­.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Data.Da­taSetExtension­s\v4.0_4.0.0.0__b77a5c56­1934e089\System­.Data.DataSetEx­tensions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Xaml\v4­.0_4.0.0.0__b77a5c56­1934e089\System­.Xaml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\WindowsBase\v4­.0_4.0.0.0__31bf3856­ad364e35\Window­sBase.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC32\Pr­esentationCore\v4­.0_4.0.0.0__31bf3856­ad364e35\Presen­tationCore.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\Presentation­Framework\v4.0_4­.0.0.0__31bf3856­ad364e35\Presen­tationFramewor­k.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 'vshost.NotifyLoad' (0xd9c) has exited with code 0 (0x0).
The thread '<No Name>' (0xe2c) has exited with code 0 (0x0).
The thread 'vshost.LoadRe­ference' (0x1268) has exited with code 0 (0x0).
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC32\ms­corlib\v4.0_4­.0.0.0__b77a5c56­1934e089\mscor­lib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\as­sembly\GAC_MSIL­\Microsoft.Vi­sualStudio.Hos­tingProcess.U­tilities\11.0­.0.0__b03f5f7f­11d50a3a\Micro­soft.VisualStu­dio.HostingPro­cess.Utilities­.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Window­s.Forms\v4.0_4­.0.0.0__b77a5c56­1934e089\System­.Windows.Forms­.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Drawin­g\v4.0_4.0.0.0__b03f5f7f­11d50a3a\System­.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System\v4.0_4­.0.0.0__b77a5c56­1934e089\System­.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\as­sembly\GAC_MSIL­\Microsoft.Vi­sualStudio.Hos­tingProcess.U­tilities.Sync\11­.0.0.0__b03f5f7f­11d50a3a\Micro­soft.VisualStu­dio.HostingPro­cess.Utilities­.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\as­sembly\GAC_MSIL­\Microsoft.Vi­sualStudio.De­bugger.Runtime\11­.0.0.0__b03f5f7f­11d50a3a\Micro­soft.VisualStu­dio.Debugger.Run­time.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\Mar­tin\documents\vi­sual studio 2012\Projects\E­videnceZakazek\E­videnceZakazek\bin\x86\­Debug\Evidence­Zakazek.vshos­t.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC32\Sys­tem.Data\v4.0_4­.0.0.0__b77a5c56­1934e089\System­.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Core\v4­.0_4.0.0.0__b77a5c56­1934e089\System­.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Xml\v4­.0_4.0.0.0__b77a5c56­1934e089\System­.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\Microsoft.CShar­p\v4.0_4.0.0.0__b03f5f7f­11d50a3a\Micro­soft.CSharp.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Xml.Lin­q\v4.0_4.0.0.0__b77a5c56­1934e089\System­.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Data.Da­taSetExtension­s\v4.0_4.0.0.0__b77a5c56­1934e089\System­.Data.DataSetEx­tensions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Xaml\v4­.0_4.0.0.0__b77a5c56­1934e089\System­.Xaml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\WindowsBase\v4­.0_4.0.0.0__31bf3856­ad364e35\Window­sBase.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC32\Pr­esentationCore\v4­.0_4.0.0.0__31bf3856­ad364e35\Presen­tationCore.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\Presentation­Framework\v4.0_4­.0.0.0__31bf3856­ad364e35\Presen­tationFramewor­k.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 'vshost.LoadRe­ference' (0x9fc) has exited with code 0 (0x0).
The program '[4012] EvidenceZakazek­.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\Mar­tin\documents\vi­sual studio 2012\Projects\E­videnceZakazek\E­videnceZakazek\bin\x86\­Debug\Evidence­Zakazek.exe', Symbols loaded.
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Confi­guration\v4.0_4­.0.0.0__b03f5f7f­11d50a3a\System­.Configuration­.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Step into: Stepping over non-user code 'EvidenceZaka­zek.App.App'
Step into: Stepping over non-user code 'EvidenceZaka­zek.App.Initi­alizeComponen­t'
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\mscorlib.resou­rces\v4.0_4.0­.0.0_cs_b77a5c­561934e089\mscor­lib.resources­.dll'
A first chance exception of type 'System.IO.Fi­leNotFoundExcep­tion' occurred in mscorlib.dll
'EvidenceZaka­zek.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Mi­crosoft.Net\as­sembly\GAC_MSIL­\System.Xaml.re­sources\v4.0_4­.0.0.0_cs_b77a5c­561934e089\Sys­tem.Xaml.resou­rces.dll'
An unhandled exception of type 'System.Window­s.Markup.XamlPar­seException' occurred in PresentationFra­mework.dll
Additional information: Vyvolání konstruktoru pro typ EvidenceZakazek­.MainWindow, který odpovídá zadaným omezením vazby, vyvolalo výjimku. Číslo řádku 3 a pozice na řádku 9.
The program '[2996] EvidenceZakazek­.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

 
Nahoru Odpovědět 13.3.2013 15:58
Avatar
Odpovídá na hurvajs
Michael Olšavský:

Nepřidával jsi něco do konstruktoru? Zkus ho třeba jen zakomentovat a ponechat pouze metodu initialize(). Možná tam někde je chyba. Také jsem měl stejný problém :-)

 
Nahoru Odpovědět  +1 13.3.2013 16:41
Avatar
hurvajs
Člen
Avatar
Odpovídá na Michael Olšavský
hurvajs:

a už to jede, děkuju... Mám ale ještě jeden problém, potřeboval bych uložit všechny [Serializable] objekty uložit do jedné tabulky v databázi (local database - sdf) Prý to jde přes EntityFramework, ale to je pro mě jak Španělská vesnice...

 
Nahoru Odpovědět 13.3.2013 16:49
Děláme co je v našich silách, aby byly zdejší diskuze co nejkvalitnější. Proto do nich také mohou přispívat pouze registrovaní členové. Pro zapojení do diskuze se přihlas. Pokud ještě nemáš účet, zaregistruj se, je to zdarma.

Zobrazeno 5 zpráv z 5.