Greetings.

My pc runs Windows 2003 Server and IIS 6.0. I've had problems getting a cgi
script to run and finally ended up testing with a perl script that prints the
environment. (I've searched this forum as best I could but couldn't find
anything exactly like the configuration my pc runs with the problem I'm
seeing. Sorry if you've seen this one before.) The script runs at the
command prompt when I fully specify the path to perl and the script name.
When I try to run it from IE I get
"The page cannot be displayed"
displayed at the top of the page and
"Can not find server or DNS error"
displayed at the bottom.

I'd apprecately greatly any suggestions about how to get the script to work.

Thanks very much.

alan

RE: "The page cannot be displayed"/Can not find server or DNS error by alan

alan
Fri Aug 26 12:53:06 CDT 2005

Please disreagard this post. I made a silly mistake somehow not starting the
webserver. A netstat -a showed that port 80 was not active.

Sorry about that.

"alan" wrote:

> Greetings.
>
> My pc runs Windows 2003 Server and IIS 6.0. I've had problems getting a cgi
> script to run and finally ended up testing with a perl script that prints the
> environment. (I've searched this forum as best I could but couldn't find
> anything exactly like the configuration my pc runs with the problem I'm
> seeing. Sorry if you've seen this one before.) The script runs at the
> command prompt when I fully specify the path to perl and the script name.
> When I try to run it from IE I get
> "The page cannot be displayed"
> displayed at the top of the page and
> "Can not find server or DNS error"
> displayed at the bottom.
>
> I'd apprecately greatly any suggestions about how to get the script to work.
>
> Thanks very much.
>
> alan

Re: "The page cannot be displayed"/Can not find server or DNS error by Chris

Chris
Fri Aug 26 12:54:49 CDT 2005

By default IIS is not installed on Windows 2003 - do you have it enabled?

Also IIS is configured to only allow certain executables to run under
WebServiceExtensions.

If you are getting can't find server or dns error then that means the
browser was not able to find the web server. How are you trying to run this
command?

http://localhost/myexe.exe

Something like that?

Check that IIS is installed.
Check that IIS Service is not disabled, this includes the IIS Admin service
and the W3SVC (World Wide Web Publishing) service.

You can type this into a cmd prompt to see the running services.

net start


--
Cheers

Chris

Chris Crowe [IIS MVP]
http://blog.crowe.co.nz


"alan" <alan@discussions.microsoft.com> wrote in message
news:D38EB598-D98F-4C3C-A44D-93DCC8725D7A@microsoft.com...
> Greetings.
>
> My pc runs Windows 2003 Server and IIS 6.0. I've had problems getting a
> cgi
> script to run and finally ended up testing with a perl script that prints
> the
> environment. (I've searched this forum as best I could but couldn't find
> anything exactly like the configuration my pc runs with the problem I'm
> seeing. Sorry if you've seen this one before.) The script runs at the
> command prompt when I fully specify the path to perl and the script name.
> When I try to run it from IE I get
> "The page cannot be displayed"
> displayed at the top of the page and
> "Can not find server or DNS error"
> displayed at the bottom.
>
> I'd apprecately greatly any suggestions about how to get the script to
> work.
>
> Thanks very much.
>
> alan



Re: "The page cannot be displayed"/Can not find server or DNS erro by alan

alan
Fri Aug 26 17:59:01 CDT 2005

Chris:

I got it working. I ran telent first and couldn't connect to IIS. Then I
ran netstat -ano and discovered that port 80 was active. I started IIS and
that particular error message went away. (Now I'm trying to deal with the
"404 2 1260" code I'm getting in the logfile when I attempt to run the perl
script. I've put a separate post in about that one.

Thanks for responding. I appreciate it.

alan

"Chris Crowe [MVP]" wrote:

> By default IIS is not installed on Windows 2003 - do you have it enabled?
>
> Also IIS is configured to only allow certain executables to run under
> WebServiceExtensions.
>
> If you are getting can't find server or dns error then that means the
> browser was not able to find the web server. How are you trying to run this
> command?
>
> http://localhost/myexe.exe
>
> Something like that?
>
> Check that IIS is installed.
> Check that IIS Service is not disabled, this includes the IIS Admin service
> and the W3SVC (World Wide Web Publishing) service.
>
> You can type this into a cmd prompt to see the running services.
>
> net start
>
>
> --
> Cheers
>
> Chris
>
> Chris Crowe [IIS MVP]
> http://blog.crowe.co.nz
>
>
> "alan" <alan@discussions.microsoft.com> wrote in message
> news:D38EB598-D98F-4C3C-A44D-93DCC8725D7A@microsoft.com...
> > Greetings.
> >
> > My pc runs Windows 2003 Server and IIS 6.0. I've had problems getting a
> > cgi
> > script to run and finally ended up testing with a perl script that prints
> > the
> > environment. (I've searched this forum as best I could but couldn't find
> > anything exactly like the configuration my pc runs with the problem I'm
> > seeing. Sorry if you've seen this one before.) The script runs at the
> > command prompt when I fully specify the path to perl and the script name.
> > When I try to run it from IE I get
> > "The page cannot be displayed"
> > displayed at the top of the page and
> > "Can not find server or DNS error"
> > displayed at the bottom.
> >
> > I'd apprecately greatly any suggestions about how to get the script to
> > work.
> >
> > Thanks very much.
> >
> > alan
>
>
>