I have done the Walkthrough: Creating a Distributed Application link at the MSDN site mentioned above and it worked fine while it remained on the development machine. I wanted to test whether or not the application that is part of the tutorial could access the web service while on another machine. I changed the web reference in the application from 'localhost' to the name of the server that held the web service:
http://MyServerName/AuthorsWebServic...ervice.vsdisco
The .vsdisco contents appear in the left side of the Add Web Reference dialog box but the right side contains the following error:
"The document was not recognized as a known document type (WSDL, XML Schema, or Discovery document) for the following reason:
- The content type 'application/octet-stream' is not valid for an XML document."
However, when I reference the AuthorsService.asmx file (as I saw one example do) it successfully registers the web reference, however, the app still doesn't work when moved to a different machine. The machine I'm moving it to DOES have the .NET Framework installed on it but I'm just copying the file over to that machine (rather than use an installer) as it was my understanding (maybe wrong understanding) that the .NET Framework made this possible.
Any idea where I'm getting derailed? Thanks in advance.




Reply With Quote