Need help for C# code,

P

phangmo

Hi,
I write a C# to get information from a XML site, when I run my program
at home, there's no problem.
But when in office, I've got this error:

-----------------------
Unhandled Exception: System.Net.WebException: The underlying
connection was closed: An

unexpected error occurred on a receive.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult
asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri,
ICredentials credentials)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)

at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role,
Type ofObjectToReturn)
at System.Xml.XmlTextReader.CreateScanner()
at System.Xml.XmlTextReader.Init()
at System.Xml.XmlTextReader.Read()
 
A

Angel J. Hernández

I assume you're invoking a web service, right? In order to help, we need
you to be more specific, ok?

In the meantime check out these...

What environment do I have at home but not at the office?
Is there any ISA or Proxy installed at the office?
Is port 80 opened?
Can you navigate to other pages?

Regards,
 
P

phangmo

Hi,
Thanks for your help.
Here's my answer.
1. The administrator told me there's no firewall or ISA installed in
the office
2. Port 80 is open (of course, because I can surf web)
3. I can't open other xml url as well.

Looking forward to your advise.
Thank you.

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top