🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1235

Re: CGI Web server Application

#1235
From: Hans Galema
Date: Sun, 27 Mar 2005 16:57
39 lines
2151 bytes
Butch McLeod wrote:

> I build the app (named MyWebApp) directing the final output to the default 
> web site defined in the Internet Information Service snap in.Permissions are 
> set to scripts and executables.

Is that webserver running on the same computer as IE and bcb >

> The result is: The page cannot be displayed
> There is a problem with the page you are trying to reach and it cannot be 
> displayed.
> HTTP 500 - Internal server error

And did you look in the error.log file of the webserver ?

 > Then I add a TDatabase component (named Database1) to the TWebModule and set
 > the Database AliasName property and the DatabaseName propertyto BCDEMOS and
 > the connect property to true.

Are you sure that the alias for a your database is valid for the
cgi-exe ?

>    Database1->Connected = true;
>    Database1->Connected = false;
>    Response->Content = "<p>Hello</p>";

You did not add a try-catch block around the statement that
causes troubles.

  try
	{
         Database1->Connected = true;
         }
  catch ( &Exception &exception )
	{
	//error
	}

Hans.
Technical Details
Message-ID: <4246e664@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <424613ab@newsgroups.borland.com> <42469f0f$1@newsgroups.borland.com> <4246dfeb$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,af8465d282730681
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 27 Mar 2005 18:57:08 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: CGI Web server Application
References: <424613ab@newsgroups.borland.com> <42469f0f$1@newsgroups.borland.com> <4246dfeb$1@newsgroups.borland.com>
In-Reply-To: <4246dfeb$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <4246e664@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1111942756 129.125.201.248 (27 Mar 2005 08:59:16 -0800)
Lines: 39
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail