Login  
Search All Forums
Dart Home | PowerWEB File Upload for ASP.NET | Custom Development Reply | PowerWEB File Upload for ASP.NET Topics | Forums   
AuthorForum: PowerWEB File Upload for ASP.NET
Topic: File upload control error in the server
karthik_ease

From: Mission Viejo, CA USA
Posts: 4
Member Since: 01/18/08
posted April 10, 2012 12:35 PM

Hi
I am using File Upload control (version 4.0.0.12) and .Net framework version 4.0 on ASP.NET platform. The control works fine in the development machine. When I deploy the application in the Web server(2003 server) , getting strange behaviour.

Here are the issues.

1. I have a page to upload the file and after the upload is complete, redirecting to a second page. I am getting the following error while redirecting.

A potentially dangerous Request.Cookies value was detected from the client (ease7="...SNOTREG)).<br>Source  : App_...").

And the stack trace for the page is

[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Cookies value was detected from the client (ease7="...SNOTREG)).<br>Source  : App_...").]
  System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +8859800
  System.Web.HttpRequest.ValidateCookieCollection(HttpCookieCollection cc) +9034380
  System.Web.HttpRequest.get_Cookies() +54
  System.Web.HttpRequest.get_Item(String key) +65
  Dart.FileUpload.FileUploadModule.context_BeginRequest(Object sender, EventArgs args) +93
  System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +148
  System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


2. Upload file sizes are around 100KB. After I select the file, the file imported to the server and the file is available in the directory. But, the Progress manager is still visible and the "UploadManager1_UploadComplete' event never gets fired. This issue happens frequently (1 in 6 times).

The control is added into httpModules section in the 'Web.config' as mentioned in the documentation.

We're stuck on this issue and appreciate, your assitance in resolving the issue.

Regards, Karthik
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted April 10, 2012 1:58 PM

The first issue sounds like you are sending a cookie named "ease7" and the cookie value contains unencoded HTML. Search google for "A potentially dangerous Request.Cookies value was detected from the client" and you should find many topics dealing with this problem.

I am unable to duplicate this issue. Here is what I tried:
1) Create brand new FW4 ASP.NET Website
2) Add Webform
3) Add an Upload, UploadManager and ProgressPanel to the form
4) For the ProgressPanel set CloseBehavior to AutoCloseOnComplete
5) Repeatedly upload a 100K file.

Every time I repeated this the ProgressPanel closed and I was able to start another upload.

Please tell me what more steps I need to take to duplicate the problem you are reporting.
karthik_ease

From: Mission Viejo, CA USA
Posts: 4
Member Since: 01/18/08
posted April 10, 2012 4:56 PM

Tony,

Thanks for the quick update.

We were using a 'third-party' control to unzip the file, which was causing the issue.

Regards, Karthik
Reply | PowerWEB File Upload for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX