Exception Registering View

Jul 28, 2016 at 5:35 PM
I am new to RaptorDB and I am trying out the example in the Documentation tab almost verbatim. everything was working great until I got to the point where I had to register my view:

rdb.RegisterView(new SalesInvoiceView());

This is throwing an exception with the message "Failed to fast create instance for type 'RaptorDBTest.Program+SalesInvoiceViewRowSchema' from assemebly 'RaptorDBTest.Program+SalesInvoiceViewRowSchema, RaptorDBTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'".

When I walk thru it on debug, it throws the exception in RaptorDB.dll!RaptorDB.Views.ViewManager.RegisterView<SampleViews.SalesInvoice>(RaptorDB.View<SampleViews.SalesInvoice>

Any ideas why? Seems like I have everything set up correctly...
Aug 5, 2016 at 6:15 AM
It seems you have defined SalesInvoiceViewRowSchema in your Program class, if so make sure Program is public not internal.
Aug 11, 2016 at 6:56 PM
Thanks for the reply, I got by the issue with your suggestions