Exceeded storage allocation. The server response was: 4.3.1 message size exceeds fixed maximum messa...

本文讨论了使用System.Net.Mail发送邮件时遇到的邮件大小超出服务器限制的问题,并提供了修改邮件大小限制的解决方案。

1.症状:

使用System.Net.Mail发送邮件时遇到错误: Exceeded storage allocation. The server response was: 4.3.1 message size exceeds fixed maximum message size.

 

2.错误log:

ERROR 2011-10-21 13:49:31,389 [36] logException [(null)] -System.Net.Mail.SmtpException: Exceeded storage allocation. The server response was: 4.3.1 Message size exceeds fixed maximum message size
   at System.Net.Mail.DataStopCommand.CheckResponse(SmtpStatusCode statusCode, String serverResponse)
   at System.Net.Mail.SmtpConnection.OnClose(Object sender, EventArgs args)
   at System.Net.ClosableStream.Close()
   at System.Net.Mail.MailWriter.Close()
   at System.Net.Mail.SmtpClient.Send(MailMessage message)
   at CustomerOrder.btnSend_Click(Object sender, EventArgs e) in d:\CustomerOrder.aspx.cs:line 907

 

3.解决办法:

修改Limit message size to (KB),扩大它就ok了。具体见下图:

 

参考:

Exceeded storage allocation. The server response was......

http://bytes.com/topic/asp-net/answers/588778-exceeded-storage-allocation-server-response

 

转载于:https://www.cnblogs.com/liuzhendong/archive/2011/10/21/2220291.html

### 微信小程序下载文件时遇到存储大小限制问题解决方案 当使用 `wx.downloadFile` API 进行文件下载时,如果设备本地存储空间不足,则会触发下载失败。为了有效应对这一情况并提供可靠的用户体验,建议采取以下措施: #### 优化下载策略 对于大文件或多个文件的同时下载需求,应考虑分批处理机制来减少单次占用过多内存的风险。可以通过调整业务逻辑控制每次仅加载必要的部分数据。 #### 实现断点续传功能 利用服务器支持的特性,在客户端记录已经完成的数据传输量,并在网络中断或其他异常情况下恢复未完成的部分而不是重新开始整个过程[^1]。 ```javascript let downloadedSize = 0; function resumeDownload(url, startByte) { wx.request({ url, method: &#39;GET&#39;, header: {&#39;Range&#39;: `bytes=${startByte}-`}, responseType: &#39;arraybuffer&#39;, success(res){ // 处理接收到的数据片段... downloadedSize += res.data.byteLength; if (downloadedSize < totalFileSize) { setTimeout(() => resumeDownload(url, downloadedSize), 500); } }, fail(err){ console.error(&#39;Resume download failed:&#39;, err); } }); } ``` #### 提供用户反馈提示 在检测到因存储容量原因导致的操作失败后,及时向用户提供清晰易懂的信息说明当前状况以及可能的解决办法,比如清理不必要的缓存文件或者卸载不常用的应用释放更多可用空间。 #### 利用云端资源减轻本地压力 考虑到某些场景下确实难以完全规避此限制的影响,可探索借助第三方服务提供商(如腾讯云对象存储COS、阿里云OSS等),将较大体积的内容托管于远程位置并通过流式播放等方式按需获取所需部分内容而不必全部预置在当地环境中[^3]。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值