These forums are read-only and considered to be an archive. Please use the new Community for future interaction and posts.

Error uploading

I have filevistacontrol running on IIS7 with form authentication enabled (no other authentication).
The control works except for uploading.
The iis log reports the following, the 3th logline is strange, since after the upload page is loaded there is a redirect to the login page. This login should not be necessary since I was logged in already...

Anyone any idea's?

2009-09-17 12:57:05 192.168.10.107 GET /FileVistaControl/images/fileicons/unknown.png - 80 - 192.168.10.149 Mozilla/5.0+(Windows;+U;+Windows+NT+6.0;+en-US)+AppleWebKit/530.5+(KHTML,+like+Gecko)+Chrome/2.0.172.43+Safari/530.5 200 0 0 200

2009-09-17 12:57:06 192.168.10.107 POST /FileVistaControl/upload.aspx rootFolderID=0&relativePath=customer&ASP.NET_SessionId=4n2oiyvmont5ra55rcntc0y4&FT.Active=1&FT.OverrideProvider=1&FT.
UploadID=12531922265585467 80 - 192.168.10.149 Shockwave+Flash 302 0 0 2

2009-09-17 12:57:06 192.168.10.107 GET /login.aspx ReturnUrl=%2fFileVistaControl%2fupload.aspx%3frootFolderID%3d0%26relativePath%3dcustomer%26ASP.NET_SessionId%3d4n2oiyvmont5ra55rcntc0y4%26FT.Active%3d1%26FT.OverrideProvider%3d1%26FT.UploadID%3d12531922265585467&rootFolderID=0&relativePath=customer&ASP.NET_SessionId=4n2oiyvmont5ra55rcntc0y4&FT.Active=1&FT.
OverrideProvider=1&FT.UploadID=12531922265585467 80 - 192.168.10.149 Shockwave+Flash 500 0 0 4

2009-09-17 12:57:06 192.168.10.107 POST /FileVistaControl/filevista.asmx/GetUploadProgress - 80 p 192.168.10.149 Mozilla/5.0+(Windows;+U;+Windows+NT+6.0;+en-US)+AppleWebKit/530.5+(KHTML,+like+Gecko)+Chrome/2.0.172.43+Safari/530.5 200 0 0 4

2009-09-17 12:57:06 192.168.10.107 POST /FileVistaControl/filevista.asmx/GetList - 80 p 192.168.10.149 Mozilla/5.0+(Windows;+U;+Windows+NT+6.0;+en-US)+AppleWebKit/530.5+(KHTML,+like+Gecko)+Chrome/2.0.172.43+Safari/530.5 200 0 0 193


Thanks!

Martijn
Martijn 9/28/2009 2:52 AM
I'm seeing the same thing in my IIS logs.  Did you ever figure out what was going on?   I figured this might be happening because I'm using Forms Authentication against an AD server.  What's weird is that in IE the upload will work, but in FF it won't.  
Ted Eysenbach 10/29/2009 10:22 AM
A shot in the dark would be that somehow the session is being lost during the upload event, so IIS redirects to the specified login page, at which time the login page recognizes the user is logged in and refreshes the control.  Doing all of this behind the upload.aspx page.  I switched over to Browser upload and sure enough the login redirect isn't there.  Good eyes, I missed that when going over the logs.  The strange thing is that in IE 7 it works fine, but is not in FF 2 or 3.  

What do you think Cem?  Any help is appreciated.   
Ted Eysenbach 10/29/2009 10:54 AM
Stange thing is that it works on my development machine without a problem...
But I unformtunately do have no good suggestion to resolve this.

The sequence of files is strange:

1.  /FileVistaControl/images/fileicons/unknown.png
2.  /FileVistaControl/upload.aspx 
3.  /login.aspx?ReturnUrl=/FileVistaControl/upload.aspx
4.  /FileVistaControl/filevista.asmx/GetUploadProgress
5.  /FileVistaControl/filevista.asmx/GetList

Because of the request for access for upload and after that a login I do belive that a part (iFrame?) of the control used to perform the upload causes the request for login...especially since after that it does request "GetUploadProgress"...
Martijn 10/29/2009 10:59 AM
This issue was discussed before, please see  this topic:
Upload with Forms Authentication
Cem Alacayir 10/29/2009 11:27 AM
Thanks for the quick reply Cem.  I actually remember reading that a long time ago when I was trying to get Forms authentication working.  The problem with that solution, as far as I can tell, is that if I bypass Forms auth for the FileVistaControl subfolder, it uses IIS's credentials to try to upload to my remote share \\server_name\personal_folder\yadayadayada.  I get a permission denied error when implementing the referenced fix.  The folder I'm trying to upload to is locked down to the authenticated user's account only.  Thoughts?
Ted Eysenbach 10/29/2009 11:43 AM
Maybe you should create a common upload user and set IIS to use it as the credentials. You can then assign write permissions for this user on personal folders.
Cem Alacayir 1/15/2010 9:00 AM