如何使用网络表单为sitecore mvc中的营销人员2.5发送电子邮件..?

时间:2014-12-30 16:09:01

标签: sitecore web-forms-for-marketers sitecore7.2 sitecore-mvc

我在sitecore mvc项目中使用网络表单为营销人员2.5,我成功设计表单但在提交按钮上我收到错误,我无法弄清楚为什么会出现此错误请任何人帮我理解这个错误的原因,错误说:

 "The request filtering module is configured to deny a request where the query string is too long." 

我的配置如下:

 <add name="analytics" connectionString="mongodb://myServer_Name/DncMvc_Analytics" />
 <add name="tracking.live" connectionString="mongodb://localhost/tracking_live" />
 <add name="tracking.history" connectionString="mongodb://localhost/tracking_history" />
 <add name="reporting" connectionString="user id=sa;password=simple;Data Source=myServer_Name\unicolumn;Database=DncMvc_Analytics" />

1 个答案:

答案 0 :(得分:1)

您可以尝试两件事:

首先:更改web.config以增加“maxQueryString”

<system.web>
<httpRuntime maxUrlLength="#" maxQueryStringLength="#" />

<system.webServer>
<security>
  <requestFiltering>
    <requestLimits maxUrl="#" maxQueryString="#" />
  </requestFiltering>
</security>

如果上述方法无效,您可以在IIS中启用匿名身份验证。