BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

WebSnap and IIS 6.0

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
Joachim
Guest





PostPosted: Wed Sep 03, 2003 6:05 am    Post subject: WebSnap and IIS 6.0 Reply with quote



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





PostPosted: Wed Sep 03, 2003 7:06 am    Post subject: Re: WebSnap and IIS 6.0 Reply with 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
Morten H
Guest





PostPosted: Thu Sep 18, 2003 10:26 am    Post subject: Re: WebSnap and IIS 6.0 Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.