Exception Details: System.ArgumentException: ', hexadecimal value 0x01, is an invalid character.

May 25, 2014 at 1:19 PM
so i started testing with brightstardb in mvc 5, at first everything worked perfectly i started making a class user and a class profile to test with a relation to each other with inverseproperty on the profile.

now as i was going further i tried implementing roles and permissions to the user and that's where everything went wrong...

my models:
    [Entity]
    public interface IUser
    {
         string UserName { get; set; }
         string Email { get; set; }
         string Password { get; set; }
         bool PasswordChanged { get; set; }
         IProfile Profile { get; set; }
         ICollection<IRole> Roles { get; set; }
    }
    [Entity]
    public interface IProfile
    {
        string FirstName { get; set; }
        string LastName { get; set; }
        string Street { get; set; }
        int Number { get; set; }
        string City { get; set; }
        int PostalCode { get; set; }

        string Country { get; set; }
        DateTime DateOfBirth { get; set; }

        [InverseProperty("Profile")]
        IUser User { get; }
    }
    [Entity]
    public interface IRole
    {
        string Name { get; set; }
        string Description { get; set; }
        [InverseProperty("Roles")]
        ICollection<IUser> Users { get; }
        [InverseProperty("Role")]
        ICollection<IRolePermission> Permissions { get;  }
    }
    [Entity]
    public interface IPermission
    {
        string Name { get; set; }
        string Description { get; set; }

        [InverseProperty("Permission")]
        ICollection<IRolePermission> Permissions { get; }

    }
    [Entity]
    public interface IRolePermission
    {
        IRole Role { get; set; }
        IPermission Permission { get; set; }
        int Level { get; set; }
    }
since i'm using this relation i am able to create an entity and save it to brightstardb but i'm unable to do a get from context
            ScTEntityContext db = new ScTEntityContext(ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
            var u = db.Users.SingleOrDefault(x => x.UserName == UserName);
when i follow debugging the exception pops up on the singleordefault...

project link:
http://1drv.ms/1jHKHa3
May 25, 2014 at 1:24 PM
in the output window i get following error:
A first chance exception of type 'System.ArgumentException' occurred in System.Xml.dll
A first chance exception of type 'System.ArgumentException' occurred in System.Xml.dll
A first chance exception of type 'System.ArgumentException' occurred in dotNetRDF.dll
BrightstarDB Error: 200 : Error Executing query CONSTRUCT { 
  ?x ?x_p ?x_o . 
  ?x <http://www.brightstardb.com/.well-known/model/selectVariable> "x" . 
}
WHERE 
{ 
  {SELECT ?x WHERE

   { 

     ?x a <http://brightstardb.com/namespaces/default/User> . 

     ?x <http://brightstardb.com/namespaces/default/userName> ?v0 . 

     FILTER(?v0 = "Admin"^^<http://www.w3.org/2001/XMLSchema#string>)  . 

   }

  LIMIT 1 }
  ?x ?x_p ?x_o . 
}
May 25, 2014 at 3:22 PM
i actually found what was wrong...
i had a custom password encrypt for sha256 managed passwords but it made some weird characters... working now tho
Marked as answer by sp00k on 5/25/2014 at 8:22 AM