设置配置属性“port”的权限不足 [英] Insufficient permissions for setting the configuration property 'port'

查看:164
本文介绍了设置配置属性“port”的权限不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经在dot net上开发了网页,用于从网站发送电子邮件

这在本地计算机和我们的服务器上都运行良好。



但是当我们将它托管到您的服务器时,它不允许发送电子邮件。它被赋予错误设置配置属性'端口'的权限不足。





以下是错误,当时出现错误我们尝试发送电子邮件。



设置配置属性port的权限不足。 (D:\ www.root_Fusion \ Rollout \web.config第21行)



We have developed the web page on dot net for sending email from website
This was working fine in the local machine and in our servers too.

But when we host it to your server, it’s not allowing to send the email. It’s given the error as "insufficient permissions for setting the configuration property 'port'. "


Below is the error, which comes when we try to send email.

Insufficient permissions for setting the configuration property 'port'. (D:\wwwroot_Fusion\Rollout\web.config line 21)

this code, I am using my web.config:

<system.net>
    <mailsettings>
      <smtp from="abc@gmail.com">
        <network host="smtp.gmail.com" port="587" />
      </smtp>
    </mailsettings>
  </system.net>

推荐答案

请联系您的主机,让他们解决他们的权限问题。
Please contact your hoster and let them work out their permissions issue.


这篇关于设置配置属性“port”的权限不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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