asp.net – web.config中的maxRequestLength发生内部错误
发布时间:2020-12-16 07:37:21 所属栏目:asp.Net 来源:网络整理
导读:嗨,大家好,我想让我的用户上传大尺寸的文件,所以我将我的web.config更改为: configuration configSections sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup,System,Version=4.0.0.0,Culture=neutral,PublicK
嗨,大家好,我想让我的用户上传大尺寸的文件,所以我将我的web.config更改为:
<configuration> <configSections> <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup,System,Version=4.0.0.0,Culture=neutral,PublicKeyToken=" > <section name="delegatezanjan.Properties.Settings" type="System.Configuration.ClientSettingsSection,PublicKeyToken=" requirePermission="false" /> </sectionGroup> </configSections> <system.web> <compilation debug="true" targetFramework="4.0"> <assemblies> <add assembly="System.Design,PublicKeyToken="/> </assemblies> </compilation> <httpRuntime/> <httpRuntime maxRequestLength="200000" executionTimeout="99999"/> </system.web> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="smsSendWebServiceSoap" /> </basicHttpBinding> </bindings> <client> <endpoint address="http://aryanmsg.ir/smsSendWebService.asmx" binding="basicHttpBinding" bindingConfiguration="smsSendWebServiceSoap" contract="ServiceReference1.smsSendWebServiceSoap" name="smsSendWebServiceSoap" /> </client> </system.serviceModel> <applicationSettings> <delegatezanjan.Properties.Settings> <setting name="delegatezanjan_ir_smsline_webservice_SMS_WebServer_Service" serializeAs="String"> <value></value> </setting> </delegatezanjan.Properties.Settings> </applicationSettings> <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="2147483648" /> </requestFiltering> </security> </system.webServer> </configuration> 在添加此部分之前,我的代码已经完成,但在添加最后3行后,我的网站返回500内部服务器错误您正在查找的资源存在问题,并且无法显示. 解决方法
把它作为答案:)
您已在配置中声明了两次httpRuntime.你有 <httpRuntime /> 以及 <httpRuntime maxRequestLength="2000000000" executionTimeout="99999999"/> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- asp.net – 文件下载问题:文件名与空格被截断!
- 事件(Event),绝大多数内存泄漏(Memory Leak)的元凶[上篇
- API Test WebApiTestClient工具安装及使用
- 七步学会ASP.NET Core 2.0怎么发布\/部署到Ubuntu Linu
- asp.net-mvc-3 – 为MVC3应用程序配置Ninject的正确方法是什
- 使用SQLite做本地数据缓存的思考
- 我的ASP.Net代码可以从sendgrid得到确认邮件已发送吗?
- asp.net-mvc-4 – 如何在ASP.Net MVC 4中定义特定区域的布局
- 从ASP.NET网站将查询结果发送到Excel
- asp.net – DataTable Wrapper或如何将UI与业务逻辑分离