 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Joachim Guest
|
Posted: Wed Sep 03, 2003 6:05 am Post subject: WebSnap and IIS 6.0 |
|
|
Hallo,
works somebody with a Websnap application in IIS 6.0. (CGI or ISAPI). I cant
run my applicatin, a CBuilder CGI exe under this system. I works fine under
IIS 5.0.
I have read the nicrosoft documentation and I think I 've nothing forget.
I set CGI in the Web Service Extensions.
I give the directorys execute permissions.
I set the rights for the IIS_WPG group.
What is wrong ?
Thanks in advanced
Joachim
|
|
| Back to top |
|
 |
Frits Regtien Guest
|
Posted: Wed Sep 03, 2003 7:06 am Post subject: Re: WebSnap and IIS 6.0 |
|
|
Hallo,
Thanks to Jesper Bang Jensen who gave me this bug fix on Borland Quality
Central. I would like to share his solution here:
Locate SysUtil.pas. Edit definition of GetEnvironmentVariable as below and
place it in lib-folder.
function GetEnvironmentVariable(const Name: string): string;
var
Len: integer;
W : String;//Jb 14.8.03 Server 2003 CGI-fix
begin
Result := '';
SetLength(W,1);//Jb 14.8.03 Server 2003 CGI-fix
Len := GetEnvironmentVariable(PChar(Name), PChar(W), 1); //Jb 14.8.03
Server 2003 CGI-fix
// Len := GetEnvironmentVariable(PChar(Name), Nil, 0);
if Len > 0 then
begin
SetLength(Result, Len - 1);
GetEnvironmentVariable(PChar(Name), PChar(Result), Len);
end;
end;
It didn't break when testing with an older version of IIS.
Groetjes,
Frits.
|
|
| Back to top |
|
 |
Morten H Guest
|
Posted: Thu Sep 18, 2003 10:26 am Post subject: Re: WebSnap and IIS 6.0 |
|
|
Hi
Which bug does this fix ?
If it's supposed to fix the "access violation ... ntdll.dll", it won't work
for me. Still get the ntdll.dll error.
Anyone got a fix for this error ?
Kind regards
Morten
"Frits Regtien" <newgroups.borland (AT) firstsoftware (DOT) nl> wrote
| Quote: | Hallo,
Thanks to Jesper Bang Jensen who gave me this bug fix on Borland Quality
Central. I would like to share his solution here:
Locate SysUtil.pas. Edit definition of GetEnvironmentVariable as below and
place it in lib-folder.
function GetEnvironmentVariable(const Name: string): string;
var
Len: integer;
W : String;//Jb 14.8.03 Server 2003 CGI-fix
begin
Result := '';
SetLength(W,1);//Jb 14.8.03 Server 2003 CGI-fix
Len := GetEnvironmentVariable(PChar(Name), PChar(W), 1); //Jb 14.8.03
Server 2003 CGI-fix
// Len := GetEnvironmentVariable(PChar(Name), Nil, 0);
if Len > 0 then
begin
SetLength(Result, Len - 1);
GetEnvironmentVariable(PChar(Name), PChar(Result), Len);
end;
end;
It didn't break when testing with an older version of IIS.
Groetjes,
Frits.
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|