Hello everyone, I am new in Flashmove. I am very desperate for this problem, I have been dealing with it for 4 days and still can't get rid of it. I am developing an Flash interface for the Google search engine through Flash Remoting. In a folder C:\Inetpub\wwwroot\flashremoting\GoogleSearch I have created a Flash document with the following code: import mx.remoting.NetServices; function init(){ // use the appropriate URL for the gateway on your // server var gwUrl = "http://localhost/flashremoting/GoogleSearch/flashgateway.aspx"; NetServices.setDefaultGatewayUrl(gwUrl); var conn = NetServices.createGatewayConnection(); _root.srv = conn.getService("http://api.google.com/GoogleSearch.wsdl"); } ///other code follows... In the same folder I have created the empty flashgateway.aspx file and the bin folder with the flashgateway.dll. When I test the interface the folling error appears: File or assembly name GoogleSearchService.dll, or one of its dependencies, was not found. can someone please tell me where's the problem? I have spent whole days but no solutions. I really really apreciate if you can help me thanks Antonio
Check this out: http://www.communitymx.com/content/article.cfm?cid=E8E8CE970C6AB073&print=true It's not exactly related to what you are doing, but there are instructions on how to compile the proxy class and create the GoogleSearchService.dll.
i have tried but the commmand csc /t:library /out:bin\GoogleSearchService.dll GoogleSearchService.cs doen't seem to work on my computer. I have tried all the way, from VS.NET prompt, by adding path variable and so on, but nothing thanks anyway
hey sypher thanks a lot for the attached .dll file. i have downloaded and put into the specific bin folder. but when i test the movie and press the search button after inserting the keyword the same message appears: "File or assembly name GoogleSearchService.dll, or one of its dependencies, was not found." I don't know, but if you want to full see the code it's here: import mx.remoting.NetServices; function init(){ // use the appropriate URL for the gateway on your // server var gwUrl = "http://localhost/flashremoting/GoogleSearch/flashgateway.aspx"; NetServices.setDefaultGatewayUrl(gwUrl); var conn = NetServices.createGatewayConnection(); _root.srv = conn.getService("http://api.google.com/GoogleSearch.wsdl"); } res = new Object(); res.onResult = function(result){ var r = _root.results; r.html = true; r.htmlText = ""; // resultElements is an array of ResultElement // message types (see WSDL) var re = result.resultElements; // loop through the ResultElement messages // and display their information in the results // TextField as html. consult WSDL for the names // of the parts of ResultElement messages such as // url, title, snippet, and summary for(var i = 0; i < re.length; i++){ // display the title of the result as a link r.htmlText += "<a href=\"" + re.url + "\">" + re.title + "</a>" + "<br>"; r.htmlText += re.snippet + "<br>"; if(re.summary != "") r.htmlText += re.summary + "<br>"; r.htmlText += "<br><br>"; } // reset the scoll position to the top _root.sb.setScrollPosition(0); // refer to WSDL to see that estimatedTotlResultsCount // is a part of the GoogleSearchResult message type // as is startIndex and endIndex var count = result.estimatedTotalResultsCount; _root.resultsInfo.text = count + " total records. " + "displaying " + result.startIndex + " - " + result.endIndex; } res.onStatus = function(status){ trace(status.description); } function doSearch(start, query){ // create the input message to be sent // to the operation. the message type should // be of type doGoogleSearch as defined in the // WSDL var params = new Object(); // make sure to enter your own key here params.key = "M2qFB+JQFHIL4L4Xo+KF81Ffp5AIM4vl"; // query and start are parameters passed to // this doSearch() function params.q = query; params.start = start; params.maxResults = 10; params.filter = true; params.restrict = ""; params.safeSearch = false; params.lr = ""; params.ie = ""; params.oe = ""; // call the operation _root.srv.doGoogleSearch(_root.res, params); } searchBtn.setLabel("search"); searchBtn.onRelease = function(){ // always perform a new search using 0 // as the starting index and the value // entered into query as the query string _root.doSearch(0, _root.query.text); // set the variables on _root to be accessed // by next and previous buttons _root.start = 0; _root.queryVal = _root.query.text; } // get the previous 10 results prevBtn.onRelease = function(){ _root.start -= 10; if(_root.start < 0) _root.start = 0; _root.doSearch(_root.start,_root.queryVal); } // get the next 10 results nextBtn.onRelease = function(){ _root.start += 10; _root.doSearch(_root.start, _root.queryVal); } init(); thanks anyway antonio
Do you have a web.config file? I'm no flash developer but I'm pretty sure you need an http module in your web.config in order to use the flash remoting assembly...