Re: IIS 6 - HTTP From ActiveX Control Problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 02/16/05


Date: Wed, 16 Feb 2005 11:48:05 -0800

I'd like to have a Network Monitor capture of the failing POST (including
HTTP and TCP level traffic) and please send it here.

Otherwise, please give me a simplified working page that uses the control,
instructions on how to reproduce the error (including request URL/name,
upload file size, location of saving file, other IIS configuration,
everything), and I'll see if I can reproduce it for debugging.

My gut feeling is that it is probably an issue with the ActiveX control. I
can POST hundreds of megabytes of data, no truncation, using my own client
against IIS6, so I know it is possible to POST correctly to IIS6. It is a
matter of the client code being correct, at that point.

-- 
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
<alarrabee@gmail.com> wrote in message
news:1108554814.121992.278140@z14g2000cwz.googlegroups.com...
Has anyone else seen this issue?  We are having a similar issue with
the amont of data an ActiveX control receives back from IIS 6.  In IIS
5 it is the complete data but in IIS6 it seems to be truncated.
GF wrote:
> We recently moved an application to IIS 6 that utilizes and ActiveX
> control that performs an HTTP Post to upload files from the local
> client.  The POST is done with the "Internet Transfer Control"
> library.  It was working fine in  IIS4 and IIS5, but now since we've
> moved it, the files are not being uploaded.  The ASP post handler
> script works fine manually when upload a file from a HTML form, but
> not from this control anymore.
>
> Is there something I need to configure in IIS6?
>
> Here are some additional details:
> 1) ActiveFile is used as a post handler.  Works fine manually and
> permissions are set correctly.
> 2) IIS log indicates that that HTTP post is fine.  It returns a 200
> code. See example:
> 2003-08-20 18:20:49 169.236.x.x POST /admin/web_editor/post.asp - 80
> adminuser 169.x.x.x Microsoft+URL+Control+-+6.00.8862 200 0 0
> 3) URLScan was installed, but has been removed just in case.
> 4) Here is a sample of the body of the request:
> --AaB03x
> Content-Disposition: attachment; name=""FILE1"";
> filename="filename.gif"
> Content-Type: image/jpeg
> Content-Transfer-Encoding: binary
>
>
> ... BINARY CODE HERE...
> --AaB03x--
>
> Any help would be appreciated.  Thanks!


Relevant Pages

  • Re: User-Agent restrictions with IIS 6.0
    ... IIS6 does not have User-Agent restrictions. ... User-Agent header which is NOT CR LF terminated (per HTTP spec) -- this will ... cause 400 Bad Request on IIS6 whereas previous IIS versions blindly accepted ...
    (microsoft.public.inetserver.iis)
  • Re: How can a control detect whether it runs in an IIS service?
    ... your code will probably fail on IIS6 since the process ... A control that can be used on a web server should not pop up any UI. ... runs in an IIS or system environment (so that it does not pop up a message ...
    (microsoft.public.inetserver.iis)
  • Re: Automate Connection Access
    ... control on a plain SMTP 6.0 service? ... Anyway, IIS exposes the Connection Control list via the Metabase property `IPSecurity.` Unlike many other props, even with direct Metabase editing enabled, though, you can't easily automate the editing of metabase.xml for this property, because it is of the binary data type IPSECLIST rather than plain-text. ... but you don't need to know that, because IIS handily serves up the property via ADSI scripting without you having to do any binary encoding yourself. ... With ADSI and the IIS namespace, you can append to the current array of denied IPs, re-put the options into IIS, and the settings take effect immediately. ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • Re: SSL Issue - Urgent
    ... Generically extensible -- the translation device gives some hint of the ... so the device would need to set a proprietary HTTP Request header indicating ... This has been done on Apache and IIS as well. ...
    (microsoft.public.inetserver.iis.security)
  • Re: IIS7 : SetWindowsHookEx fails with Access Is Denied
    ... We've modified the active X control to not put up any modal dialogs. ... I'd rather not have a parent window or create my own parent. ... The ActiveX control uses MFC windows. ... If I construct the out-of-proc com object using a test application not running IIS, this code completes without problem and we are able to construct the ActiveX control and programatically interact with it. ...
    (microsoft.public.inetserver.iis.security)