Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Dmitry.Obukhov  
#1 Posted : Friday, February 10, 2012 1:17:06 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Symptoms:
  1. You use Image Uploader ASP.NET control.
  2. You set AllFilesUploaded event to handle uploaded files.
  3. The upload process is success and all the files are saved on your server.
  4. When you try to navigate to another page on your site in some Java-enabled browsers (Chrome, Firefox), you are redirected to the login page.
Reasons:

The reason of the problem is that deleting Asp.NET 2.0 application sub-directory restarts web application. When you use the AllFilesUploaded event, files are saved in a temporary directory first, and then they are moved to a specified folder you set. After moving files to the necessary folder, the temporary directory which is located inside of your application (in App_Data/ by default) is removed. When it is removed, your web application is restarted. This fact causes losing sessions and you should log in again.

Resolution:

There are two ways to resolve this problem:
  1. Use FileUploaded event.
  2. Set TempDirectory property to any folder which is located outside of your web application, e.g. to C:\ImageUploaderTemp\.

Edited by user Monday, February 20, 2012 7:38:29 PM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.