Home > Flex > File I/O Error #2038 in Flex File Upload

File I/O Error #2038 in Flex File Upload

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
  1. May 9, 2009 at 5:09 am | #1

    Thanks for the pointer. This may help to solve my problem!

    Keep this blog up and live! :)

  2. Tuyen Nguyen
    July 7, 2010 at 3:04 am | #2

    Thanks Mayur for pointing out this situation which I’m currently facing. Hope this can solve mine.

    Thanks again.

  3. Virat
    August 6, 2010 at 10:03 am | #3

    Hi I m able to Upload File with Small size … For File with 7 mB its throws Error

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.