The type or namespace name 'Oledb' does not exist in the namespace 'System.Data' error on Web Servic

Posted by Pankaj Kumar on Stack Overflow See other posts from Stack Overflow or by Pankaj Kumar
Published on 2010-05-26T08:13:37Z Indexed on 2010/05/26 8:21 UTC
Read the original article Hit count: 298

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about web-services