Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Diego Gonçalves

Upload em Windows Mobile

Recommended Posts

Fala galera!

 

Alguém pode me informar se é possível realizar upload através de um PDA com Windows Mobile?

 

Tenho uma aplicação quando rodo ela através do PC, ela roda normalmente realiza o upload das fotos...

 

Porém quando acesso o site através do meu PDA, e quando clico no botão "Upload", ocorre o seguinte erro:

 

scription: Request Validation has detected a potentially dangerous client input value, and processing of the request has been aborted. This value may indicate an attempt to compromise the security of your application, such as a cross-site scripting attack. You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case. 

 Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (FileUpload1="...\QE���^�-<TkR���斃HS�-�⒝@ ...").

Source Error:


[No relevant source lines]
 Source File:  App_Web_up.aspx.cdcab7d2.itfjirxb.0.cs	Line:  0 

Stack Trace:


[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (FileUpload1="...\QE���^�-<TkR���斃HS�-�⒝@ ...").]
   System.Web.HttpRequest.ValidateString(String s, String valueName, String collectionName) +3307682
   System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection nvc, String collectionName) +108
   System.Web.HttpRequest.get_Form() +119
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +66
   System.Web.UI.Page.DeterminePostBackMode() +65
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7350
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.up_aspx.ProcessRequest(HttpContext context) in App_Web_up.aspx.cdcab7d2.itfjirxb.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Ex
ecute() +358
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

 

 

 

Obrigado!

 

 

 

Diego Gonçalves

Compartilhar este post


Link para o post
Compartilhar em outros sites

Da uma olhada nisso:

 

You can disable request validation by setting validateRequest=false in the Page directive or in the configuration section. However, it is strongly recommended that your application explicitly check all inputs in this case.

 

Flww, grande abraço.

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.