Link to home
Start Free TrialLog in
Avatar of José Perez
José PerezFlag for Chile

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of José Perez

ASKER

Ok. I'll try tomorrow.