Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6992669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:39:53+00:00 2026-05-27T19:39:53+00:00

I keep getting this error: System.Runtime.InteropServices.COMException was thrown on C:\Users\—\documents\visual studio 2010\Projects\TBrowser\TBrowser\TBrowserWindow.xaml: Error HRESULT

  • 0

I keep getting this error:

System.Runtime.InteropServices.COMException was thrown on "C:\Users\---\documents\visual studio 2010\Projects\TBrowser\TBrowser\TBrowserWindow.xaml": Error HRESULT E_FAIL has been returned from a call to a COM component.

But I don’t have a COM component in my .xaml file. It keeps popping up and saying the position of the error is line 1 column 1 and I just have a Window there and nothing else:

<Window x:Class="TBrowser.TBrowserWindow"
        xmlns:my="clr-namespace:TBrowser"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Height="800" Width="900" Icon="/TBrowser;component/Images/Icons/Icon.ico" MinHeight="143" MinWidth="358" Background="White" Loaded="Window_Loaded" Name="TBWindow1">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <DockPanel x:Name="Layout">
        <StatusBar Height="24" Name="TBStatusBar1" Background="WhiteSmoke" BorderBrush="Black" BorderThickness="0,1,0,0" VerticalContentAlignment="Bottom" DockPanel.Dock="Bottom">
            <StatusBarItem Width="300" HorizontalAlignment="Left" Padding="1" />
            <StatusBarItem HorizontalAlignment="Right" Padding="0" Margin="1" VerticalContentAlignment="Stretch">
                <ProgressBar Width="146" Height="18" HorizontalAlignment="Left" Margin="1" Name="TBProgessBar1"></ProgressBar>
            </StatusBarItem>
        </StatusBar>

        <my:TBOutputPannel x:Name="TBOutputPannel1" DockPanel.Dock="Bottom" MinHeight="48" MaxHeight="200" Visibility="Collapsed" />

        <my:TBControlBar Height="48" VerticalAlignment="Top" x:Name="TBControlBar1" DockPanel.Dock="Top">
            <my:TBControlBar.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Menubar" IsCheckable="True" IsChecked="True" />
                    <MenuItem Header="Favsbar" IsCheckable="True" IsChecked="True" />
                    <MenuItem Header="Statusbar" IsCheckable="True" IsChecked="True" />
                </ContextMenu>
            </my:TBControlBar.ContextMenu>
        </my:TBControlBar>
        <Grid DockPanel.Dock="Bottom">
            <my:TBTabControl x:Name="TBTabControl1">
                <my:TBAddTabItem Height="28" HorizontalAlignment="Left" IsSelected="False" Margin="0" x:Name="TBAddTabItem" VerticalAlignment="Top" Width="28"></my:TBAddTabItem>
            </my:TBTabControl>
            <Menu Height="24" Name="TBMenu1" VerticalAlignment="Top" Margin="0,29,0,0" Background="WhiteSmoke">
                <MenuItem Header="File">
                    <MenuItem Header="New tab" InputGestureText="Ctrl+T" Click="MenuItem_Click">
                        <MenuItem.Icon>
                            <Image Source="/TBrowser;component/Images/Images/TBNewTabIcon1.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Header="Duplicate tab" InputGestureText="Ctrl+K" Click="MenuItem_Click_1" />
                    <MenuItem Header="New window" InputGestureText="Ctrl+N" />
                    <MenuItem Header="New session" />
                    <MenuItem Command="ApplicationCommands.Open" Header="Open" />
                    <MenuItem Header="Edit with Notepad" />
                    <MenuItem Command="ApplicationCommands.Save" Header="Save" IsEnabled="False" />
                    <MenuItem Command="ApplicationCommands.SaveAs" Header="Save As..." InputGestureText="Ctrl+S" />
                    <MenuItem Header="Close tab" InputGestureText="Ctrl+W" />
                    <Separator />
                    <MenuItem Header="Page setup" />
                    <MenuItem Command="ApplicationCommands.Print" Header="Print" InputGestureText="Ctrl+P" />
                    <MenuItem Command="ApplicationCommands.PrintPreview" Header="Print preview" />
                    <MenuItem />
                </MenuItem>
            </Menu>
            <ToolBar Height="24" Margin="0,52,0,0" Name="TBFavsbar1" VerticalAlignment="Top" Style="{StaticResource TBFavsbar}">
                <my:TBFavsItem isAdder="True" IconSource="/TBrowser;component/Images/Images/TBAddFavs1.png" Margin="2,1,0,0" />
                <Separator Margin="2,1,0,0" />
            </ToolBar>
        </Grid>
    </DockPanel>

    <Window.TaskbarItemInfo>
        <TaskbarItemInfo x:Name="Display" />
    </Window.TaskbarItemInfo>
</Window>

I even keep getting this error:

System.NullReferenceException was unhandled by user code
  Message=Object reference not set to an instance of an object.
  Source=TBrowser
  StackTrace:
       at TBrowser.TBrowserWindow.TBMenubar1ShowButton_Checked(Object sender, RoutedEventArgs e) in C:\Users\---\documents\visual studio 2010\Projects\TBrowser\TBrowser\TBrowserWindow.xaml.cs:line 137
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.Controls.MenuItem.OnChecked(RoutedEventArgs e)
       at System.Windows.Controls.MenuItem.OnIsCheckedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
       at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
       at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
       at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
       at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)

And this is what im using:

private void TBMenubar1ShowButton_Checked(object sender, RoutedEventArgs e)
{
    TBMenu1.Visibility = System.Windows.Visibility.Visible;
    TBrowser.Properties.Settings.Default.Menubar = System.Windows.Visibility.Visible;
}

And I don’t get whats going on.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:39:53+00:00Added an answer on May 27, 2026 at 7:39 pm

    I think its caused by sending a 64 bit INT to an application that expects a 32 bit INT for example, to resolve (if it is this issue) follow the steps below.

    Right click the Project (in Solution Explorer) -> Properties, Build Tab, Platform target set x86. Then do a Clean-Build and give it a whirl.

    Platform Target

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting this error System.Web.HttpException was unhandled by user code Message=Validation of viewstate
I keep getting this error when making the program as given below: using System;
We keep getting this error randomly in our web application. System.Data.SqlClient.SqlException: A network-related or
After switching from RVM to system ruby I keep getting this error. It doesn't
i keep getting this error: Exception Details: System.NotSupportedException: Cannot serialize member HannaPrintsDataAccess.Customer.CustomerAddresses of type
Keep getting this error after inserting a subdatasheet into a query and trying to
I keep getting this error when I try to commit a group of executed
I keep getting this error when I try to call Find() public void findTxt(string
I keep getting this error all over the place where I only have jquery
I keep getting this error whenever I call gethostbyname() in my C code. ==7983==

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.