Archive

Archive for January, 2009

File I/O Error #2038 in Flex File Upload

January 5, 2009 3 comments

While working on my current assignment, where we were required to allow File upload using .Net in back end. Well things worked smoothly like creating a web service in .Net 2.0 and integration with Flex 3.0. I won’t fall in the details of creating Web Service and passing parameters. The weired issue (which turns out to be an obvious) is to allow the rights/permission to the Upload directory under Virtual Directory.

The Web Service is supposed to upload the Image (which is passed as parameter from Flex) to the local folder of the same directory level. In order to upload/copy an image, we need to provide write permission on that folder.

We have given Anonymous Access to the Virtual directory(which should be avoided) for Application demo. But as in IIS 6.0 the IUSR_XXX account is dramatically low-privileged, ANY function but reading static content (.html, .jpg, .bmp) is disabled by default. Check out what Microsoft has to say on IIS 6.0 on  http://technet.microsoft.com/en-us/library/bb693984.aspx.

More IIS 6.0 settings can be viewed on http://www.apdsoft.com/afo/iis6.htm

Until and unless, we gave the full read,write and delete rights on the Upload directory to the IUSER, it was getting File I/O error.

So there it is folks, if you are getting Flex File I/O Error #2038, checking rights/permission is one of the few points to take care first.

Cheers

submitgooglesitemap.com Sitemap Generator

Categories: Flex
Follow

Get every new post delivered to your Inbox.