I have an Entity Framework model automatically generated from the database. The database has been changed to varbinary(max) for SessionValue column. The model use to look like this:
public partial class Session
{
public int SessionID { get; set; }
public string SessionKey { get; set; }
public string SessionValue { get; set; }
public System.DateTime SessionExpiryDate { get; set; }
}
I manually changed it in the partial file to look like this:
public partial class Session
{
public int SessionID { get; set; }
public string SessionKey { get; set; }
public byte[] SessionValue { get; set; }
public System.DateTime SessionExpiryDate { get; set; }
}
So basically I changed SessionValue from a String to a Byte Array. Now when I run my MVC.NET app, it doesn't start up, it gives this error:
HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory.
If I undo my change, all is well again. How do I go about debugging this? It's not even hitting any events in Global.asax. It feels as though Entity Framework should automatically do some work in the background - but doesn't because the Model properties view doesn't allow me to map it to a Type byte[].
Someone please help!