• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 806
  • Last Modified:

ASP.Net 2013: Error when sending email from ASP.Net Form

Hi, we have a WebForm that takes information from the current form and creates a new email form (like a contact form) and when clicking 'send', it falls down.
Can someone help? (attached is the source code of the form).


Error de servidor en la aplicación '/'.

Se detectó un posible valor Request.Form peligroso en el cliente (htx="...          <tbody><tr class="li...").

Descripción: ASP.NET ha detectado datos en la solicitud que son potencialmente peligrosos porque incluyen script o marcado HTML. Es posible que los datos representen un intento de poner en peligro la seguridad de la aplicación, como un ataque XSS. Si el tipo de entrada es apropiado en la aplicación, puede incluir código en una página web para permitirlo explícitamente. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=212874.

Detalles de la excepción: System.Web.HttpRequestValidationException: Se detectó un posible valor Request.Form peligroso en el cliente (htx="...          <tbody><tr class="li...").

Error de código fuente:

[Líneas de código fuente no relevantes]

Archivo de origen: c:\Users\JaPi\AppData\Local\Temp\Temporary ASP.NET Files\root\bd4d9060\2a3e2919\App_Web_rilrwmk2.18.cs    Línea: 0

Seguimiento de la pila:

[HttpRequestValidationException (0x80004005): Se detectó un posible valor Request.Form peligroso en el cliente (htx="...          <tbody><tr class="li...").]
   System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +9685209
   System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection) +184
   System.Web.HttpRequest.get_Form() +55
   System.Web.HttpRequest.get_HasForm() +9686771
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +95
   System.Web.UI.Page.DeterminePostBackMode() +69
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6704
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
   System.Web.UI.Page.ProcessRequest() +72
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +58
   ASP.views_clientcallact_aspx.ProcessRequest(HttpContext context) in c:\Users\JaPi\AppData\Local\Temp\Temporary ASP.NET Files\root\bd4d9060\2a3e2919\App_Web_rilrwmk2.18.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

Información de versión: Versión de Microsoft .NET Framework:4.0.30319; Versión ASP.NET:4.0.30319.34212
ClientCallAct.txt
0
José Perez
Asked:
José Perez
1 Solution
 
David Johnson, CD, MVPOwnerCommented:
you can disable script checking for that page
https://msdn.microsoft.com/en-us/library/hh882339.aspx
0
 
José PerezAuthor Commented:
Ok. I'll try tomorrow.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now