Re: * CGI can not open files in Windows 2003 Server IIS 6 *

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 12/23/03


Date: Tue, 23 Dec 2003 14:27:24 -0800

In IIS5 Isolation Mode, IIS debugging should be the same as before.
http://support.microsoft.com/?id=183480

In IIS6 Worker Process Isolation Mode, you can directly launch w3wp.exe in a
"debug" standalone mode (run %windir%\system32\inetsrv\w3wp.exe) to host
your ISAPI and then attach-to and debug it.

-- 
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Aras" <arastaha@hotmail.com> wrote in message
news:f9406120.0312231256.7d9c0af2@posting.google.com...
Here is Delphi code:
procedure THttpFileFilter.Put;
var
  F: TFileStream;
  BytesRead: Integer;
  S: string;
  TheFileName: string;
begin
  if FileName = '' then
    FileName := Copy(ExeOrDllPath, 1, Pos('.', ExeOrDllPath)) + 'htm';
  if (Pos(':\', FileName) <> 2) and (Pos('\\', FileName) <> 1) then
    TheFileName := ExtractFilePath(ExeOrDllPath) + FileName
  else
    TheFileName := FileName;
  F := TFileStream.Create(TheFileName, fmOpenRead or fmShareDenyNone);
  SetLength(S, F.Size);
  BytesRead := 0;
  while (BytesRead < F.Size) and (F.Read(S[BytesRead + 1], Min(F.Size
- BytesRead, 4096)) > 0) do
    BytesRead := Bytesread + 4096;
  F.Destroy;
  CallLevel := (Abs(CallLevel) + 1) mod MaxCallLevel;
  PutString(S);
  CallLevel := (CallLevel - 1 + MaxCallLevel) mod MaxCallLevel;
end;
I am suspecting TStreamFile but I can't get the dwebugger to run
either under IIS so I can not verify this.
Any ideas?
"David Wang [Msft]" <someone@online.microsoft.com> wrote in message
news:<OQuGP7TyDHA.1060@TK2MSFTNGP12.phx.gbl>...
> It sounds like your CGI is not able to open files with \\?\  prepended.
How
> is the CGI opening files?
> -- 
> //David
> IIS
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> //
> "Aras" <arastaha@hotmail.com> wrote in message
> news:f9406120.0312221346.49810059@posting.google.com...
> I copied (no changes) my CGIExpert-based .EXE files into a Windows
> 2003 Server PC with IIS 6 (they worked fine under Win2K and IIS 5).  I
> enabled the proper WebSvcRestrictionList and now the .EXEs execute.
> However, the .EXEs fail when they try to open any of my HTML Template
> files. I get an error like this:
>
> Unhandled Exception: Cannot open file "\\?\C:\website\file.htmt". The
> filename, directory name, or volume label syntax is incorrect
>
> file.htmt is my template sitting in the parent directory. All
> directories having same permissions.
>
> What is missing here?


Relevant Pages

  • Re: Need help ProcessModelInfo.GetCurrentProcessInfo()
    ... Open the IIS MMC, Right-click the Web Sites folder, ... Under Isolation mode, select or clear the Run Web service ... isolation mode or worker process isolation mode, ... IIS 5.0 isolation mode uses the process model built into ASP.NET. ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Repost: Help-Debug classic ASP with VS.NET and Windows Server 2003
    ... IIS6's worker process isolation model ... And here is the referece on configuring IIS for running IIS5 isolation mode: ... Configuring IIS for IIS 5.0 Isolation Mode ... worker process isolation mode until the applications are modified. ...
    (microsoft.public.vsnet.debugging)
  • RE: Repost: Help-Debug classic ASP with VS.NET and Windows Server
    ... Changed service for isolation mode to run in IIS 5.0 mode. ... > worker process isolation mode until the applications are modified. ...
    (microsoft.public.vsnet.debugging)
  • MSExchangeSA Monitoring issue
    ... I have recently upgraded an Exchange 2000 server to Exchange 2003 and am now ... Server requires that IIS 6 is using Worker Process Isolation mode. ...
    (microsoft.public.exchange.admin)
  • Re: ADODB.Stream Problem with IIS6 and IE
    ... IIS issue or not. ... when i trigger this script from a link in an email ... > download is not triggered correctly. ... It seems filename and content type ...
    (microsoft.public.inetserver.iis)