主机在服务器中时未显示通知。 [英] Notification is not showing when host in server.

查看:64
本文介绍了主机在服务器中时未显示通知。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我有一个项目,当邮件下载到我的gmail时,它显示在通知上,它正在我的本地系统上工作但是当我在服务器上托管它时它无法工作。< br $>




我的代码是: -



System.Windows.Forms。 NotifyIcon notification = new System.Windows.Forms.NotifyIcon();

Hello
I have a project , when mail drop to my gmail it is showing on the notification , it is working on my local system but when i host it on server it is not working.


My code is :-

System.Windows.Forms.NotifyIcon notification = new System.Windows.Forms.NotifyIcon();

notification.Icon = System.Drawing.Icon.ExtractAssociatedIcon(Server.MapPath("~/e_mail.ico"));
notification.Visible = true;
notification.ShowBalloonTip(30, "New Mail", dt.Rows[i]["Subject"].ToString(), System.Windows.Forms.ToolTipIcon.Info);







任何解决方案....




any solution....

推荐答案

哦,当然它正在运作。只需打开连接到服务器的显示器,使用IIS帐户登录并观看...

否,永远不能那样工作!原因可以在上面的小咆哮中找到。这里有很多次问这样的问题,我想知道:学生们永远不会理解本地运行的应用程序与远程计算机提供的网页之间的差异吗?
Oh, of course it is working. Just turn on the monitor which is connected to the server, login with the IIS account and watch...
No, never can that work! And the reason can be found in the little rant above. Such questions are asked here so many times, I wonder: will students never understand the differences between an application running locally and a web page served from a distant computer?


这篇关于主机在服务器中时未显示通知。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆