在Web中用MSNPSharp获取好友时,为什么用VS浏览时可以获取,而用IIS打开的网页就获取不到呢?

_三皮_ 2011-05-18 05:28:36
在Web中用MSNPSharp获取好友时,用VS打开网页(如:http://localhost:2384/)时可以获取,但是用IIS打开网页(如:http://localhost/)时就获取不成功。哪位提供可IIS成功的源码(MSNPSharp有DLL就可以,怎么调用最好有简单的DEMO),或者解决方法,不胜感激。
...全文
156 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
_三皮_ 2011-05-20
  • 打赏
  • 举报
回复
使用DOTMSN在服务器(WINDOWS SERVER 2003)的IIS运行报通讯错误,哪位大侠知道是什么原因啊

错误如下:

'DotMSN.MSNException: Authenticating with passport.com failed : System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 65.54.254.139:443

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)

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 ---

at System.Net.HttpWebRequest.GetResponse()

at DotMSN.Messenger.AuthenticatePassport(String twnString) ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 65.54.254.139:443

at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)

at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP)

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 ---

at System.Net.HttpWebRequest.GetResponse()

at DotMSN.Messenger.AuthenticatePassport(String twnString)

--- End of inner exception stack trace ---

at DotMSN.Messenger.AuthenticatePassport(String twnString)

at DotMSN.Messenger.DoConnect()

at DotMSN.Messenger.Connect(String user, String password)

at LA.Community.ExpertsAnswersGroup.SendFriend.ibnGetMSN_Click(Object sender, ImageClickEventArgs e) in D:\Project\PnGLA\4 Source Code\LA\LA\LA.Community\ExpertsAnswersGroup\SendFriend.aspx.cs:line 310'

蝶恋花雨 2011-05-19
  • 打赏
  • 举报
回复
GetEmailAddress 我公布了一个源码。但是里面msnpsharp.dll的没源码。
附下载地址:里面调用都有说明。直接使用就可。
http://files.cnblogs.com/kongwei521/WebSite1.rar

源码下载:
http://download.csdn.net/source/2598782
_三皮_ 2011-05-19
  • 打赏
  • 举报
回复
msnpsharp.dll有问题,不用msnpsharp.dll了,CSDN上发布GetEmailAddress.dll的主不厚道,说是源码,只有个dll,55。
蝶恋花雨 2011-05-18
  • 打赏
  • 举报
回复
http://code.google.com/p/msnp-sharp/ 这里下载最新源码。看看下载http://download.csdn.net/source/2632072里面的说明改下
蝶恋花雨 2011-05-18
  • 打赏
  • 举报
回复
怎么又发来一遍。IIS我没测试。我用都是直接放到服务器空间里面用。因此IIS问题不清楚。
你可以查看http://topic.csdn.net/u/20100805/13/2b0ffef6-afff-4e0e-818f-dafe057f4e58.html 68楼 137 140 楼

62,074

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧