Logo 
Search:

VB.Net Forum

Ask Question   UnAnswered
Home » Forum » VB.Net       RSS Feeds

What is namespace and assembly name for CursorTypeEnum and LockTypeEnum

  Asked By: Asksuresh    Date: May 22    Category: VB.Net    Views: 1192
  

I am keep on getting following errors, I have a feeling that namespace and assembly name for CursorTypeEnum and LockTypeEnum is missing.


Error 731 Cannot find the interop type that matches the embedded type 'CursorTypeEnum'. Are you missing an assembly reference?


Error 732 Cannot find the interop type that matches the embedded type 'LockTypeEnum'. Are you missing an assembly reference?

Can someone please tell me namespace and assembly name for CursorTypeEnum and LockTypeEnum

Thank you

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Amir Shaikh     Answered On: May 22

Namespace: Microsoft.VisualBasic.Compatibility.VB6
Assembly: Microsoft.VisualBasic.Compatibility.Data (in microsoft.visualbasic.compatibility.data.dll)

LockType is used to Gets or sets a value that indicates the type of concurrency handling.

CursorType is used to Gets or sets a value that specifies the default type of cursor to use when opening a result set from the specified query.


1) Right click on your project reference and click on add reference.

2) Click on COM Tab

3) Look for following Component name (Assembly reference)
Microsoft.VisualBasic.Compatibility

Add that and inorder to reference that in your project use
Imports Microsoft.VisualBasic.Compatibility.VB6

This will fix your problem.