SQL Compact - Hang on invalid file
        Posted  
        
            by eWolf
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by eWolf
        
        
        
        Published on 2009-11-05T21:37:52Z
        Indexed on 
            2010/05/16
            0:50 UTC
        
        
        Read the original article
        Hit count: 331
        
I use Linq to Sql Compact with code generated by sqlmetal. When I open an invalid database, like eg an mp3, I can create the DataContext without getting an Exception. But when I query any data or call DatabaseExists, the application hangs. Why is no exception thrown? Is this a known problem?
© Stack Overflow or respective owner