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 7458151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T13:24:42+00:00 2026-05-29T13:24:42+00:00

I am getting a COM Exception while binding ListView to a List items. The

  • 0

I am getting a COM Exception while binding ListView to a List items. The Exception is being thrown from the 2nd line here. “A first chance exception of type ‘System.Runtime.InteropServices.COMException’ occurred in app.exe

Additional information: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))”

Playlists = content.getPlayLists();
PlayListView.DataContext = Playlists;

XAML declaring the binding

<ListView x:Name="PlayListView" ItemsSource="{Binding ElementName=Playlists}" Background="AntiqueWhite" SelectionChanged="PlayListView_SelectionChanged" HorizontalAlignment="Left" Height="364" Margin="56,268,0,0" VerticalAlignment="Top" Width="308">
        <ListView.ItemTemplate>
            <DataTemplate>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding Path=Name}"/>
                </StackPanel>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>

I simplified the PlayList by just having 2 strings but still has the same issue.

public class PlayList
{
    private string playListName;
    private string description;
    private DateTime dateTimeCreated;
    private int numTracks;
    private List<Track> tracks;
    private string id;

    public string Name
    {
        get { return playListName; }
        set { playListName = value; }
    }

    public string Description
    {
        get { return description; }
        set { description = value; }
    }

    public DateTime CreatedDate
    {
        get { return dateTimeCreated; }
        set { dateTimeCreated = value; }
    }

    public int NumberOfTracks
    {
        get { return numTracks; }
        set { numTracks = value; }
    }

    public List<Track> Tracks
    {
        get { return tracks; }
        set { tracks = value; }
    }

    public String Id
    {
        get { return id; }
        set { id = value; }
    }
}
  • 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-29T13:24:43+00:00Added an answer on May 29, 2026 at 1:24 pm

    The problem is due to not setting the UI element on main thread. I fixed it using

    PlayListView.Dispatcher.Invoke(Windows.UI.Core.CoreDispatcherPriority.Normal, (s, a) => 
    { 
        PlayListView.DataContext = Playlists; 
    }, PlayListView, null);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting this exception while I am trying to call an activity from
We've been getting request (from worms?) of the form http://www.example.com/MSOffice/cltreq.asp?... http://www.example.com/_vti_bin/owssvr.dll?... What is the
While accessing a webservice which is availbale at http://recpushdata.cyndigo.com/jobs.asmx , I am getting this
I am getting null pointer exception while trying to add anything in my solrQueue.
Hi I am getting the following invalid liscence exception while calling a secured URL
I'm developing a Baby Names app. I'm getting runtime exception while developing the App.
I am getting this error while calling $.ajax methods Error: [Exception... Access to restricted
I'm getting this error while running tomcat 'java.lang.ClassNotFoundException: com.mysql.jdbc.Driver'. I'm using a combination of
I'm getting an Exception while trying to insert a row in oracle table. I'm
I am getting following exception while ftp file over to some other machine. org.apache.commons.net.io.CopyStreamException:

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.