c# - ASP.NET error - PostcodeAnywhere -


now, part of large project have front-end website clients use. part of project postcode lookup feature, using postcodeanywhere company signed to. launched in debugger, tested it, worked perfectly. launch website dev web server test using iis , bang!

unable cast com object of type 'system.__comobject' interface type 'msxml2.serverxmlhttp'. operation failed because queryinterface call on com component interface iid '{2e01311b-c322-4b0a-bd77-b90cfdc8dce7}' failed due following error: no such interface supported (exception hresult: 0x80004002 (e_nointerface)).

that happened upon pressing button lookup postcode. below c# back-end code button:

    protected void btnsearch_click(object sender, eventargs e)     {     addressparameters.clear();     addresschoice.clear();     dataaddresschoice.items.clear();     dataaddresschoice.items.add("please select address");     captureplus_interactive_find("(omitted - access code correct", databpostcode.text, "", "everything", "gbr", "en", "7", "100");     }       public void captureplus_interactive_find(string key, string searchterm, string lastid, string searchfor, string country, string languagepreference, string maxsuggestions, string maxresults)     {         stringbuilder strurl = new stringbuilder();         msxml2.serverxmlhttp objhttp = new msxml2.serverxmlhttp();         adodb.recordset rst = new adodb.recordset();         strurl.append("http://services.postcodeanywhere.co.uk/captureplus/interactive/find/v2.10/recordset.ws?");         strurl.append("&key=" + server.urlencode(key));         strurl.append("&searchterm=" + server.urlencode(searchterm));         strurl.append("&lastid=" + server.urlencode(lastid));         strurl.append("&searchfor=" + server.urlencode(searchfor));         strurl.append("&country=" + server.urlencode(country));         strurl.append("&languagepreference=" + server.urlencode(languagepreference));         strurl.append("&maxsuggestions=" + server.urlencode(maxsuggestions));         strurl.append("&maxresults=" + server.urlencode(maxresults));           objhttp.open("get", strurl.tostring(), false, "", "");         objhttp.send();           int x = 0;         rst.open(objhttp.responsestream);         while (!rst.eof)         {             addresschoice.add(rst.fields[1].value);             splitstring = rst.fields[1].value;             cutoff = splitstring.indexof(",");             splitstring = splitstring.substring((cutoff + 2), (splitstring.length - (cutoff + 2)));             dataaddresschoice.items.add(splitstring);             x++;             rst.movenext();         } 

current online if thin on ground here. prediction dev server missing file vs2013 provides sort of thing. guys can provide appreciated!


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -