简体   繁体   English

部署在远程服务器上时,MVC应用程序不发送电子邮件

[英]MVC app doesn't send email when deployed on a remote server

When an exception occurs in my MVC app, my code sends an email. 当我的MVC应用中发生异常时,我的代码会发送一封电子邮件。

The thing works like a charm when I deploy locally. 当我在本地部署时,它就像一个魅力。 On the remote server, though, it doesn't send any email. 但是,在远程服务器上,它不发送任何电子邮件。

Below are some details about my deployment environment. 以下是有关我的部署环境的一些详细信息。

Web Server: IIS 7.5 Web服务器: IIS 7.5

.NET Framework: v4 .NET Framework: v4

MVC version: 4 MVC版本: 4

Windows Server: Windows Server 2008 R2 Standard Windows Server: Windows Server 2008 R2标准版

Help appreicated. 帮助表示赞赏。

Sorry, I realized that I had to grant permissions to the user ASP.NET v4.0 , which was the name of the Application Pool / Identity under which my application was registered / running. 抱歉,我意识到必须向用户ASP.NET v4.0授予权限,这是在其上注册/运行应用程序的应用程序池 / 标识的名称。

That solved the problem. 那解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 带有Selenium的C#.NET-MVC应用程序在服务器上部署时不起作用 - C# .NET - MVC app with Selenium doesn't work when deployed on Server 如何启用远程 Web 服务器中 IIS 中部署的 MVC 应用程序的远程调试 - How to enable remote debugging of an MVC application which was deployed in IIS in remote web server 部署在IIS 7.5上的MVC应用程序不写入日志文件 - MVC app not writing log files when deployed on IIS 7.5 IHttpHandler部署到Web服务器后不加载图像 - IHttpHandler doesn't load image after deployed to web server 使用专用服务器时无法发送电子邮件 - Cant Send Email When Using Dedicated Server 部署到虚拟机时,DateTime不接受格式或区域性 - DateTime doesn't accept format or culture when deployed to a virtual machine 在 ASP.NET MVC 应用程序中从 Amazon SES 发送电子邮件 - Send Email From Amazon SES in ASP.NET MVC App 部署 blazor ServerSide 应用程序时服务器上缺少内容 - missing content on server when deployed blazor ServerSide app 使用ELMAH在ASP.Net MVC 5中发生错误时发送电子邮件 - Send Email when Error in ASP.Net MVC 5 using ELMAH 将MVC5 Web应用程序部署到远程服务器时出现问题 - Issues deploying MVC5 web app to remote server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM