The type or namespace name 'Oledb' does not exist in the namespace 'System.Data' error on Web Servic
- by Pankaj Kumar
Hi everyone...
i have a webservice that i want to test by typing the url in the address bar in the web browser
localhost:1981/myProject/admin/autocomplete.asmx
and when i do this it gives this compilation error
CS0234: The type or namespace name 'Oledb' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)
i know this is because we added this in our web.config
<add namespace="System.Data.Oledb"/>
<add namespace ="System.Data"/>
in the namespaces section.....
when i call this web service through ajax it works but if i try to test it it gives this error.
Is there any way to prevent this?