CS0246: The type or namespace name 'LiveSearch' could not be foun
Benytter livesearch api'et lokalt, og det spiller fint. LiveSearch ligger i "App_WebReferences" men når jeg smider det på mit testsite virker det ikke og den klager over reference. Hvor er den gal?
Compiler Error Message: CS0246: The type or namespace name 'LiveSearch' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 13: using System.Web.Services.Protocols; Line 14: using System.Net; Line 15: using LiveSearch; Line 16: Line 17: public partial class Search : System.Web.UI.Page
Fik flyttet min App_webReferences til roden så den kunne læse den. Sådan... dog giver den nu fejlen nedenfor - det er webservice serveren som afviser, men hvorfor?
System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 80.167.236.72:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at LiveSearch.MSNSearchService.Search(SearchRequest Request) at Search.Page_Load(Object sender, EventArgs e) in e:\webroots\LocalUser\aspplan\public_html\starmix\Search.aspx.cs:line 51
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.