iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I am working the tutorial located here.
When I run the project, I receive the error "Instances of abstract classes cannot be created" at the return context.Customers.ToList(); line when I browse the webservice and when I run the project.
[WebMethod] public List<Customer> GetCustomers() { northwindDataContext context = new northwindDataContext(); context.DeferredLoadingEnabled = false; context.ObjectTrackingEnabled = false; return context.Customers.ToList(); }
Also, in step 8, the directions state to "and set SerializationMode into Unidirectional." Where do I set this value?
The complete error message is:
System.InvalidOperationException: Instances of abstract classes cannot be created. at System.Runtime.CompilerServices.RuntimeHelpers._CompileMethod(IRuntimeMethodInfo method) at System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType) at System.Data.Linq.SqlClient.ObjectReaderCompiler.Compile(SqlExpression expression, Type elementType) at System.Data.Linq.SqlClient.SqlProvider.GetReaderFactory(SqlNode node, Type elemType) at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) at System.Data.Linq.Table`1.GetEnumerator() at System.Data.Linq.Table`1.System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at GridClientBinding.GetCustomers() in c:\Venture21\MyServiceExample\App_Code\GridClientBinding.cs:line 37
Hello,
We’re really sorry for the inconvenience.We’ve made a working sample that you could try.We will try to check and repair our tutorial, so this case does not happen again.
Please open “ReadMe.txt”, before you run the sample.
Thank you for understanding.Regards,Hans.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname