This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi I'm trying LightSpeedProfessional-20091028, and got following error. Unable to materialize field [CreatedOn] on type [AzureT2.Models.MyTable]. Check your table has an Id column and that your mappings are correct. See inner exception for details. My Table is very simple. Id, Name, CreatedOn, UpdatedOn. I cheked source and found that it seems following readonly block is problem. private readonly System.DateTime _createdOn; Could you check this problem? |
|
|
readonly isn't normally a problem for the _createdOn and _updatedOn fields because of the way we manipulate them. However, I noticed your namespace mentions Azure, and the readonly modifier *does* cause problems if running in a medium trust environment such as a typical shared hosted environment. In that case, if you are using the designer, click on the model background and set Medium Trust Compatibility to true. This will remove the readonly modifier for you. (You will also want to set LightSpeedContext.UseMediumTrustCompatibility.) |
|
|
Thank you for your advice. I finally completed to create the application whose structure is Silverlight3--ASP.NET MVC-- LightSpeed -- SQL Azure on Windows Azure.
Thanks, a lot.
|
|