我需要添加对System.Web的引用 [英] I need to add a reference to System.Web

查看:67
本文介绍了我需要添加对System.Web的引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的项目中添加对System.Web的引用,但我不知道文件的位置。请帮助!


最终,我想让我的Silverlight项目在不使用outlook(或defalt邮件客户端)的情况下向自己发送邮件。


I不希望使用ASP或PHP,因为程序将在从文件启动的浏览器中运行,而不是从Web服务器启动。


我对任何有关更好的解决方法的建议持开放态度。


谢谢!

解决方案

由于安全性,您无法从Silverlight应用程序发送电子邮件限制。您需要运行一个服务器端Web服务,您的SL应用程序可以连接到该服务器以发送电子邮件。


System.Web不是silverlight程序集,因此您无法添加引用它。


 


例如:


http://www.michaelsnow。 COM / 2010/06/10 / Silverlight的尖端的最天30发送的电子邮件从 - 的Silverlight /


I need to add a reference to System.Web to my project, but I don't know where the file is. Please help!

Ultimately, I want to enable my Silverlight project to send mail to myself without using outlook (or defalt mail client).

I don't want to use ASP or PHP as the program will run in the browser launched from a file, not from a web server.

I am open to any suggestions on a better workaround.

Thanks!

解决方案

You can't send email from Silverlight apps due to security restrictions. You would need to have a server side webservice running that your SL app could connect to that would send email.

System.Web is not a silverlight assembly, so you can't add a reference to it.A

 

For example:

http://www.michaelsnow.com/2010/06/10/silverlight-tip-of-the-day-30-sending-email-from-silverlight/


这篇关于我需要添加对System.Web的引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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