I installed IIS 5.0 build 2195 on my W2K SP4 machine I will be using the
PWS. The installation of IIS went well. I rebooted my machine and have the
icon in my task bar letting me know that IIS is up and running.



I created a directory under Inetpub called ABG_ASP. I will be using that
directory to place my asp files in as I am learning ASP.



In the ABG_ASP directory there is a file called FirstFile.asp.



When I attempt to reach the file via IE6 I get nothing - a blank screen!
Here is the URL I am using in my attempts to reach the file:



http://localhost/ABG_ASP/FirstFile.asp



So I check on the directory thinking that the permissions may not be right.
I looked at the webpub directory and notice under Web Sharing that the
folder is shared and the permission is set to READ.



OK so I return to the ABG_ASP directory and give it the same permissions as
webpub. When I enter http://localhost/ABG_ASP/FirstFile.asp I still receive
nothing but a blank screen.



Any suggestions or comments are welcome!
Thanks!

Re: IIS5 PWS - Can't view pages! by George

George
Sun Feb 22 01:59:13 CST 2004

Try putting this ASP at the root (in wwwroot) and call it hello.asp

<%@language=3D"VBScript"%>
<%=3D"Hello"%>

Access by http://localhost/hello.asp

what happens?

--=20
George Hester
__________________________________
"Ciberguy" <slipnot@rogers.com> wrote in message =
news:eOVdL3L#DHA.1052@TK2MSFTNGP12.phx.gbl...
> I installed IIS 5.0 build 2195 on my W2K SP4 machine I will be using =
the
> PWS. The installation of IIS went well. I rebooted my machine and have =
the
> icon in my task bar letting me know that IIS is up and running.
>=20
>=20
>=20
> I created a directory under Inetpub called ABG_ASP. I will be using =
that
> directory to place my asp files in as I am learning ASP.
>=20
>=20
>=20
> In the ABG_ASP directory there is a file called FirstFile.asp.
>=20
>=20
>=20
> When I attempt to reach the file via IE6 I get nothing - a blank =
screen!
> Here is the URL I am using in my attempts to reach the file:
>=20
>=20
>=20
> http://localhost/ABG_ASP/FirstFile.asp
>=20
>=20
>=20
> So I check on the directory thinking that the permissions may not be =
right.
> I looked at the webpub directory and notice under Web Sharing that the
> folder is shared and the permission is set to READ.
>=20
>=20
>=20
> OK so I return to the ABG_ASP directory and give it the same =
permissions as
> webpub. When I enter http://localhost/ABG_ASP/FirstFile.asp I still =
receive
> nothing but a blank screen.
>=20
>=20
>=20
> Any suggestions or comments are welcome!
> Thanks!
>=20
>

Re: IIS5 PWS - Can't view pages! by Ciberguy

Ciberguy
Sun Feb 22 09:48:39 CST 2004


"George Hester" <hesterloli@hotmail.com> wrote in message
news:ug9REnR%23DHA.1936@TK2MSFTNGP12.phx.gbl...
Try putting this ASP at the root (in wwwroot) and call it hello.asp

<%@language="VBScript"%>
<%="Hello"%>

Access by http://localhost/hello.asp

what happens?

Thank you George for replying!

When I use the script above the browser returns with "hello". By the way I
am using PWS IIS 5.0 W2K SP4...

OK

If I execute an easy script like this:
<html>
<body>
<p>
<b>This is my first ASP page!</b>
</p>
Today's date is <%=Date()%>
</body>
</html>

Displayed on my browser window is the DATE. No problem with that script.
BUT if I attempt to run a script like this:

<html>
<title>Working with the File Object</title>
<body>
<b>Working with the File object!</b>
<hr>
<%
set TestFile=Server.CreateObject("Scripting.FileSystemObject")
set
TFileStream=TestFile.CreateTextFile("c:\inetpub\wwwroot\ABG_ASP\TestFile.txt
")
TFileStream.WriteLine "File Object in ASP!"
TFileStream.Close
%>
</body>
</html>

I receive nothing on the screen. The file is not created. The location were
the file "TestFile.txt" is to be created does exist and the path is correct.
I have checked this many times.

PWS is working, The problem is that I can run scripts that work only if I am
not attempting to open a file insert a line of text and close the file.
Strange!

The top script works when I use http://myPCname/ABG_ASP/TestPage.asp or
http://localhost/TestPage.asp
The second script does not work when I use
http://myPCname/ABG_ASP/FirstPage.asp or http://localhost/FirstPage.asp



Re: IIS5 PWS - Can't view pages! by George

George
Sun Feb 22 14:24:00 CST 2004

No no like this:

<%@language=3D"VBScript"%>
<%
Dim TestFile, TFileStream
Set TestFile=3DServer.CreateObject("Scripting.FileSystemObject")
Set =
TFileStream=3DTestFile.CreateTextFile("c:\inetpub\wwwroot\ABG_ASP\TestFil=
e.txt")
%>
<html>
<title>Working with the File Object</title>
<body>
<b>Working with the File object!</b>
<hr>
<%
TFileStream.WriteLine "File Object in ASP!"
TFileStream.Close
%>
</body>
</html>

You must have NTFS write permissions in ABG_ASP

There you go I just tested it. Remember you must give Everyone =
(IIS_MachineName) Write access in the folder using NTFS. I also give =
Network the same permissions in this folder.

--=20
George Hester
__________________________________
"Ciberguy" <slipnot@rogers.com> wrote in message =
news:OXijxtV#DHA.1672@TK2MSFTNGP12.phx.gbl...
>=20
> "George Hester" <hesterloli@hotmail.com> wrote in message
> news:ug9REnR%23DHA.1936@TK2MSFTNGP12.phx.gbl...
> Try putting this ASP at the root (in wwwroot) and call it hello.asp
>=20
> <%@language=3D"VBScript"%>
> <%=3D"Hello"%>
>=20
> Access by http://localhost/hello.asp
>=20
> what happens?
>=20
> Thank you George for replying!
>=20
> When I use the script above the browser returns with "hello". By the =
way I
> am using PWS IIS 5.0 W2K SP4...
>=20
> OK
>=20
> If I execute an easy script like this:
> <html>
> <body>
> <p>
> <b>This is my first ASP page!</b>
> </p>
> Today's date is <%=3DDate()%>
> </body>
> </html>
>=20
> Displayed on my browser window is the DATE. No problem with that =
script.
> BUT if I attempt to run a script like this:
>=20
> <html>
> <title>Working with the File Object</title>
> <body>
> <b>Working with the File object!</b>
> <hr>
> <%
> set TestFile=3DServer.CreateObject("Scripting.FileSystemObject")
> set
> =
TFileStream=3DTestFile.CreateTextFile("c:\inetpub\wwwroot\ABG_ASP\TestFil=
e.txt
> ")
> TFileStream.WriteLine "File Object in ASP!"
> TFileStream.Close
> %>
> </body>
> </html>
>=20
> I receive nothing on the screen. The file is not created. The location =
were
> the file "TestFile.txt" is to be created does exist and the path is =
correct.
> I have checked this many times.
>=20
> PWS is working, The problem is that I can run scripts that work only =
if I am
> not attempting to open a file insert a line of text and close the =
file.
> Strange!
>=20
> The top script works when I use http://myPCname/ABG_ASP/TestPage.asp =
or
> http://localhost/TestPage.asp
> The second script does not work when I use
> http://myPCname/ABG_ASP/FirstPage.asp or =
http://localhost/FirstPage.asp
>=20
>

Re: IIS5 PWS - Can't view pages! by Ciberguy

Ciberguy
Sun Feb 22 15:24:48 CST 2004

"George Hester" <hesterloli@hotmail.com> wrote in message
news:O27bQHY%23DHA.2664@TK2MSFTNGP09.phx.gbl...

You must have NTFS write permissions in ABG_ASP

There you go I just tested it. Remember you must give Everyone
(IIS_MachineName) Write access in the folder using NTFS. I also give
Network the same permissions in this folder.

--
George Hester

Thanks again for the info George! I have already printed your suggestion out
and placed it in my binder. I am going to check out on my system what you
have outlined as well.

It appears that the culprit is Norton.

When you are running Norton Antivirus and have script blocking enabled
that -can- create a problem.



ISS/PWS worked perfectly after I turned script blocking off and rebooted!



Read more over here:

http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=192



Info from Norton:

http://service4.symantec.com/SUPPORT/nav.nsf/aab56492973adccd8825694500552355/fa999a879aac3b2f88256b450071c66e?OpenDocument




The downside to this solution is that one must remember to turn script
blocking on after using ASP.

There has got to be a better way! I will let you know what I discover after
checking out my system as per your suggestions.



Thanks again!



Re: IIS5 PWS - Can't view pages! by George

George
Sun Feb 22 17:00:51 CST 2004

Norton is well My mouth is shut. Pssst... don't use it. I believe the =
best AV software is your brain. If that's working decently you have =
nothing to fear from virii.

--=20
George Hester
__________________________________
"Ciberguy" <slipnot@rogers.com> wrote in message =
news:eGFbpqY#DHA.2704@TK2MSFTNGP12.phx.gbl...
> "George Hester" <hesterloli@hotmail.com> wrote in message
> news:O27bQHY%23DHA.2664@TK2MSFTNGP09.phx.gbl...
>=20
> You must have NTFS write permissions in ABG_ASP
>=20
> There you go I just tested it. Remember you must give Everyone
> (IIS_MachineName) Write access in the folder using NTFS. I also give
> Network the same permissions in this folder.
>=20
> --=20
> George Hester
>=20
> Thanks again for the info George! I have already printed your =
suggestion out
> and placed it in my binder. I am going to check out on my system what =
you
> have outlined as well.
>=20
> It appears that the culprit is Norton.
>=20
> When you are running Norton Antivirus and have script blocking enabled
> that -can- create a problem.
>=20
>=20
>=20
> ISS/PWS worked perfectly after I turned script blocking off and =
rebooted!
>=20
>=20
>=20
> Read more over here:
>=20
> http://www.aspfaqs.com/aspfaqs/ShowFAQ.asp?FAQID=3D192
>=20
>=20
>=20
> Info from Norton:
>=20
> =
http://service4.symantec.com/SUPPORT/nav.nsf/aab56492973adccd882569450055=
2355/fa999a879aac3b2f88256b450071c66e?OpenDocument
>=20
>=20
>=20
>=20
> The downside to this solution is that one must remember to turn script
> blocking on after using ASP.
>=20
> There has got to be a better way! I will let you know what I discover =
after
> checking out my system as per your suggestions.
>=20
>=20
>=20
> Thanks again!
>=20
>