PART II
C h a p t e r 2 5 :
N e t w o r k i n g T h r o u g h t h e I n t e r n e t U s i n g S y s t e m . N e t
833
and then recompile and run the program, you will see this output:
Network Error: The remote server returned an error: (404) Not Found.
Status code: ProtocolError
Since the McGraw-Hill.com website does not have a directory called “moonrocket,” this
URI is not found, as the output confirms.
To keep the examples short and uncluttered, most of the programs in this chapter will
not contain full exception handling. However, your real-world applications must.
The Uri Class
In Table 25-1, notice that
Do'stlaringiz bilan baham: |