TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Web Proxy Doesnt Work #171

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I have just updated my code to use your latest MSNPSharp from dotmsn.
The webproxy command no longer works:
objMSN2.ConnectivitySettings.WebProxy = New System.Net.WebProxy
("proxyserver", 80)

It starts to connect and I get a NameserverProcessor_ConnectionEstablished 
event rased however after a long wait it appears to time out - almost as 
if part of the connection code (poss retieve contact list?) does not use 
the proxy settings.

What version of the product are you using? (MSNPSharp, OS, Mono etc.)
MSNPSharp 3.0.1

Is your code check out from SVN or download from our download site?
your download site

Please provide any additional information below:
If I add the proxy settings to Internet Explorer it then works so proves 
the rest of the code is ok

Original issue reported on code.google.com by ami...@london.newsquest.co.uk on 17 Dec 2009 at 11:14

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Below is the output from the tracelog. If i comment out the webproxy command it 
doesnt get as far as this so it's almost as if the later parts of the 
connection 
process (get address book?) ignore the proxy setting. 

NSMessageProcessor: Parsing incoming NS command...
NSMessageProcessor: Dispatching incoming NS command: NLN NLN 
1:email@domain.com DisName 2751496224:136240 %3cmsnobj%20Creator%3d%
22email%40domain.com%22%20Size%3d%2212056%22%20Type%3d%223%22%
20Location%3d%22ehpmcjyp.ylr%22%20Friendly%3d%22AAA%3d%22%20SHA1D%3d%
22w5Oj1rbyYUUZOAgd2uO8Q8dOEUQ%3d%22%20SHA1C%3d%22rEawTKLp7HQwwFJiw4SdADd%2fDSs%3
d%22%
2f%3e

A first chance exception of type 'System.Net.Sockets.SocketException' occurred 
in 
System.dll
A first chance exception of type 'System.Net.WebException' occurred in 
System.dll
A first chance exception of type 'System.Net.WebException' occurred in 
System.Web.Services.dll
Need to do full sync of current addressbook list, addressbook list will be 
request 
again. Method: FindMemberShip
A first chance exception of type 'System.InvalidOperationException' occurred in 
System.dll
ContactService: Getting your membership list for the first time. If you have a 
lot 
of contacts, please be patient!
A first chance exception of type 'System.Net.Sockets.SocketException' occurred 
in 
System.dll
A first chance exception of type 'System.Net.WebException' occurred in 
System.dll
A first chance exception of type 'System.Net.WebException' occurred in 
System.Web.Services.dll
A first chance exception of type 'System.InvalidOperationException' occurred in 
System.dll
ContactService: System.Net.WebException: Unable to connect to the remote server 
---> 
System.Net.Sockets.SocketException: A connection attempt failed because the 
connected party did not properly respond after a period of time, or established 
connection failed because connected host has failed to respond 207.46.113.78:443
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   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 ---

Original comment by ami...@london.newsquest.co.uk on 17 Dec 2009 at 11:38

GoogleCodeExporter commented 9 years ago
Please check out the code in MSNPSHARP_30_STABLE and rebuild the library to see 
whether this issue still exist.

Original comment by freezing...@gmail.com on 18 Dec 2009 at 1:20

GoogleCodeExporter commented 9 years ago

Original comment by freezing...@gmail.com on 22 Dec 2009 at 3:38

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 20 Sep 2010 at 10:48