Fix: Needed a "upload component" on the destination server.
**
Thanks to iko_knyphausen for the direction.
C# Code on file: postfile.aspx
-------------------------------------
protected void Page_Load(object sender, EventArgs e)
{
HttpFileCollection uploadedFiles = Request.Files;
string path = saveToFolder; // d:\\files
for (int i = 0; i < uploadedFiles.Count; i++)
{
HttpPostedFile F = uploadedFiles[i];
if (uploadedFiles[i] != null && F.ContentLength > 0)
{
string newName =
F.FileName.Substring(F.FileName.LastIndexOf("\\") + 1);
F.SaveAs(path + "/" + newName);
}
}
}
----------------------------
** Sampled from here:
http://community.sgdotnet.org/blogs/shunjie/archive/2005/08/20/19656.a
spx
Additional IIS configuration: the HttpPostedFile.SaveAs directory
must have NTFS Permissions (I used full for the IUSR_xxx).
--- In [email protected], "bsausser" <[EMAIL PROTECTED]> wrote:
>
> Nothing.
>
> It appeared to me from the documentation that it was not needed for
> IIS, however this would not be the first time I miss read the
> documentation.
>
> Is there a server side upload component for IIS 6.0 and/or ASP.NET
> 2.0?
>
> Brian
>
> --- In [email protected], "iko_knyphausen" <iko@> wrote:
> >
> >
> > What are you using as a server side upload component?
> >
> >
> > --- In [email protected], "bsausser" <bsausser@> wrote:
> > >
> > > Upload Progresses, then fails at the end of the POST. Why?
and
> > What
> > > can be done to fix it?
> > >
> > > Flex Error Text:
> > > Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O
> > > Error.
> > >
> > > HTTP Sniff Result:
> > > http://www.dendera.com/dir/fr_upload_snif_result.xml
> > >
> > > Multiple IIS configurations did not change the result.
> > > Write on/off
> > > Integrated Windows Authentication on/off
> > > Anonymous access on/off
> > > NTFS file security IUSR_xxxx | Full Control
> > > NTFS file secutiry EVERYONE | Full Control
> > >
> > > ** The IIS Server(s) is a part of an Active Directory Domain
> > > *** Hosted on two different IIS Machines with the same result on
> > > each one of them.
> > >
> > > ==== sniff result ====
> > > <?xml version="1.0" encoding="UTF-16"?>
> > > <log homepage="http://www.ieinspector.com"
product="HttpAnalyzer"
> > > version="1">
> > > <entry method="POST" url="http://fm.dendera.com/IMG_1567.JPG">
> > > <timestart>2007-03-31T07:52:17.655Z</timestart>
> > > <timeend>2007-03-31T07:52:19.118Z</timeend>
> > > <duration>1.463 s</duration>
> > > <processname/>
> > > <result>404</result>
> > > <size>1795</size>
> > > <stage>REQUEST_CLOSE</stage>
> > > <mimetype>text/html</mimetype>
> > > <redirecturl/>
> > > <requestCamefromCache>False</requestCamefromCache>
> > > <responseCamefromCache>False</responseCamefromCache>
> > > <requestobjectname>/IMG_1567.JPG</requestobjectname>
> > > <winet_sr_result>True</winet_sr_result>
> > > <winet_sr_errormessage/>
> > > <bodySize>1635</bodySize>
> > > <headers>
> > > <requestheaders>
> > > <header>POST /IMG_1567.JPG HTTP/1.1</header>
> > > <header>Accept: text/*</header>
> > > <header>Content-Type: multipart/form-data; boundary=---------
> > > -cH2ae0ei4KM7Ij5KM7GI3gL6ae0gL6</header>
> > > <header>User-Agent: Shockwave Flash</header>
> > > <header>Host: fm.dendera.com</header>
> > > <header>Content-Length: 3595908</header>
> > > <header>Connection: Keep-Alive</header>
> > > <header>Cache-Control: no-cache</header>
> > > </requestheaders>
> > > <responseheaders>
> > > <header>HTTP/1.1 404 Not Found</header>
> > > <header>Content-Length: 1635</header>
> > > <header>Content-Type: text/html</header>
> > > <header>Server: Microsoft-IIS/6.0</header>
> > > <header>X-Powered-By: ASP.NET</header>
> > > <header>Date: Sat, 31 Mar 2007 14:52:18 GMT</header>
> > > </responseheaders>
> > > </headers>
> > > <content>
> > > <contentLength>1635</contentLength>
> > > <mimetype>text/html</mimetype>
> > > <text> <![CDATA
]]>
> > > </text>
> > > </content>
> > > <cookies>
> > > <sent/>
> > > <received/>
> > > </cookies>
> > > <cache>
> > > <BeforeRequest>
> > > <UrlInCache>False</UrlInCache>
> > > </BeforeRequest>
> > > <AfterRequest>
> > > <UrlInCache>False</UrlInCache>
> > > </AfterRequest>
> > > </cache>
> > > <QueryString/>
> > > <PostData/>
> > > </entry>
> > > </log>
> > >
> >
>