public ADODB.Recordset GetRecordset(string URL)
{
MSXML2.ServerXMLHTTP objHttp = new MSXML2.ServerXMLHTTPClass();
objHttp.open("GET", URL, false, "", "");
objHttp.send(Type.Missing);
ADODB.Recordset rst = new ADODB.RecordsetClass();
rst.Open(objHttp.responseStream, null, ADODB.CursorTypeEnum.adOpenUnspecified, ADODB.LockTypeEnum.adLockUnspecified, -1);
return rst;
}
I am geeting the following error
Compiler Error Message: CS0234: The type or namespace name 'ServerXMLHTTP' does not exist in the namespace 'MSXML2' (are you missing an assembly reference?)
Source Error:
|
Line 33: {
Line 34:
Line 35: MSXML2.ServerXMLHTTP objHttp = new MSXML2.ServerXMLHTTPClass();
Line 36: objHttp.open("GET", URL, false, "", "");
Line 37: objHttp.send(Type.Missing);
|
Source File: s:\Reg 3G Website\Compliant form\Testado.aspx.cs Line: 35
Could anyone please help, I have been trying to understand theses issues assorted with
MSXML2.ServerXMLHTTP objHttp = new MSXML2.ServerXMLHTTPClass(); for a week without much success.
Thanks in advance