Article View: borland.public.cppbuilder.internet.web
Article #1794Re: Has this CGI problem been solved (BCB 6 CGI cannot run under Windows 2003 Server)?
From: Lua Kim Teng
Date: Thu, 08 Jul 2004 16:16
Date: Thu, 08 Jul 2004 16:16
110 lines
3891 bytes
3891 bytes
Dear Hans,
Sorry, forget to mention that I began my project as a New Web Server
Application, under Standard alone executable CGI. I am using WebModules
components.
Regards,
Lua KT.
"Hans Galema" <dontusethis@dontusethis.nl> wrote in message
news:40ebe2cd@newsgroups.borland.com...
> Lua Kim Teng wrote:
>
> > My program is a simplest one, one line only:
> >
> > Response->Content="Hello";
>
> That is not the simplest one. Moreover I asked you if you used
> special components or techniques. So you are using a special
> component that has a property Response.
>
> Which component is that ? It is not TIdHTTP is it ? As you
> would not need IIS at all then.
>
> > I am using Stand alone CGI. I transfer the program called bcb6cgi1.exe
to my
> > Windows 2003 server. I set the IIS to allow execution of
> >
> > http://www.colips.org/cgi-bin/testcgi/bcb6cgi1.exe
> >
> > and I received:
> > HTTP 500 - Internal server error
> > Internet Explorer
> > If you do not believe, please run the above URL. I am sure you will get
the
> > same result.
>
> I did. I got a specific errorreport:
> Internal Server Error 500
> Exception: EAccessViolation
> Message: Access violation at address 77F4831D in module 'ntdll.dll'. Write
of
> address 40006D09
>
> So are you using a NT dll on Windows 2003 Server ?
>
> > Please give me your CGI and let me run on my machine.
>
> helloworld.cpp:
>
> #pragma hdrstop
> #include <condefs.h>
> #include <stdio.h>
>
>
>
//--------------------------------------------------------------------------
-
> #pragma argsused
> int main(int argc, char **argv)
> {
> // no headers
> printf ("Content-Type: text/html\n\n");
> printf ( "<html>\n" );
> printf ( "<head>\n" );
> printf ( "<title>hello world</title>\n" );
> printf ( "</head>\n" );
> printf ( "<body bgcolor=\"yellow\">\n" );
> printf ( "<hr>\n" );
>
> printf ( "<h1><font color=\"blue\">\n" );
> printf ( "<center>\n" );
>
> printf ( "Hello World" );
>
> printf ( "</font></h1>\n" );
>
> printf ( "</center>\n" );
> printf ( "<hr>\n" );
> printf ( "</body>\n" );
> printf ( "<html>\n" );
>
> return 0;
> }
>
> Please compile with bcb6. If that does not run you can get helloworld.exe
> compiled and linked with bcb3 from me. If the latter then does run I will
> consider eating my hat.
>
> > You may also try my other CGIs compiled using BCB5 under exacting the
same
> > conditions.
> > http://www.colips.org/cgi-bin/testcgi/bcb5cgi1.exe
> >
> > This program works.
>
> Indeed.
>
> > I was told by the Singapore support person that CGIs compiled by BCB6
will
> > not run under Windows 2003.
>
> The Support person of which software/company ? Did you ask for the reason
too ?
>
> Hans.
>
>
>
Technical Details
Message-ID:
<40ed7347$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40ea988c$1@newsgroups.borland.com> <40eaa096$1@newsgroups.borland.com> <40ebc94b@newsgroups.borland.com> <40ebe2cd@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,4f6d467f58b2d9dc X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Lua Kim Teng" <luakt@colips.org> From: "Lua Kim Teng" <luakt@colips.org> Newsgroups: borland.public.cppbuilder.internet.web References: <40ea988c$1@newsgroups.borland.com> <40eaa096$1@newsgroups.borland.com> <40ebc94b@newsgroups.borland.com> <40ebe2cd@newsgroups.borland.com> Subject: Re: Has this CGI problem been solved (BCB 6 CGI cannot run under Windows 2003 Server)? Date: Fri, 9 Jul 2004 00:16:08 +0800 Lines: 112 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 218.186.177.41 Message-ID: <40ed7347$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089303367 218.186.177.41 (8 Jul 2004 09:16:07 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail