我在Web.config中有这个:
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="admin@xxxxxx.com">
<network defaultCredentials="false" host="mail.xxxxxx.com" password="xxxxxxx" port="25" userName="admin@xxxxxx.com" enableSsl="false" />
</smtp>
</mailSettings>
</system.net>
这会导致对我网站的任何请求变为
500内部服务器错误
这使托管服务器假定我的Web.config无效。在它没问题之前,我的网站可以毫无问题地运行。我在其中看不到任何语法错误?
这里发生了什么?
答案 0 :(得分:1)
从评论主题发帖作为答案:您的密码中可能有一个特殊字符,可能需要进行XML编码。