473,383 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to compile VB functions

I am learning ASP.NET using the book, "ASP.NET for Dummies". In the chapter
introducing writing your own functions, I cannot get the example to run when
I call it with LOCALHOST. It produces the IE cannot find page error because
it doesn't know how to compile the function.

I can execute .ASPX examples just fine using LOCALHOST.

What else do I need to do set up on my PC to be able to compile these
functions?

Here is the example code:

<%@Page Explicit="True" Language="VB" Debug="True" %>
<html>
<script runat="server">

Function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(Rnd * 6) + 1
Return(Roll)
End Function

</script>

<body>
<p>I'll roll two dice; let's see what
we get!</p>
<%
Dim FirstRoll, SecondRoll As Integer
FirstRoll = RollDie
SecondRoll = RollDie
%>
First roll: <%=FirstRoll%><br>
Second roll: <%=SecondRoll%><br>
</body>
</html>


Nov 17 '05 #1
14 1685
> I call it with LOCALHOST. It produces the IE cannot find page error
because
it doesn't know how to compile the function.
If you're talking about a 404 Page Not Found error, that has nothing to do
with compiling anything. It means that the URL you requested in your browser
doesn't exist on the server.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:iw*******************@news4.srv.hcvlny.cv.net ... I am learning ASP.NET using the book, "ASP.NET for Dummies". In the chapter introducing writing your own functions, I cannot get the example to run when I call it with LOCALHOST. It produces the IE cannot find page error because it doesn't know how to compile the function.

I can execute .ASPX examples just fine using LOCALHOST.

What else do I need to do set up on my PC to be able to compile these
functions?

Here is the example code:

<%@Page Explicit="True" Language="VB" Debug="True" %>
<html>
<script runat="server">

Function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(Rnd * 6) + 1
Return(Roll)
End Function

</script>

<body>
<p>I'll roll two dice; let's see what
we get!</p>
<%
Dim FirstRoll, SecondRoll As Integer
FirstRoll = RollDie
SecondRoll = RollDie
%>
First roll: <%=FirstRoll%><br>
Second roll: <%=SecondRoll%><br>
</body>
</html>

Nov 17 '05 #2
That is probably true. If I put this example on my own server, then it
compiles and runs. The question now is how can I get it to execute from the
LOCALHOST URL? All the system stuff that ran from the server exists on my PC
so how would I direct LOCALHOST to use it?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:Oi**************@TK2MSFTNGP12.phx.gbl...
I call it with LOCALHOST. It produces the IE cannot find page error because
it doesn't know how to compile the function.


If you're talking about a 404 Page Not Found error, that has nothing to do
with compiling anything. It means that the URL you requested in your

browser doesn't exist on the server.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:iw*******************@news4.srv.hcvlny.cv.net ...
I am learning ASP.NET using the book, "ASP.NET for Dummies". In the

chapter
introducing writing your own functions, I cannot get the example to run

when
I call it with LOCALHOST. It produces the IE cannot find page error

because
it doesn't know how to compile the function.

I can execute .ASPX examples just fine using LOCALHOST.

What else do I need to do set up on my PC to be able to compile these
functions?

Here is the example code:

<%@Page Explicit="True" Language="VB" Debug="True" %>
<html>
<script runat="server">

Function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(Rnd * 6) + 1
Return(Roll)
End Function

</script>

<body>
<p>I'll roll two dice; let's see what
we get!</p>
<%
Dim FirstRoll, SecondRoll As Integer
FirstRoll = RollDie
SecondRoll = RollDie
%>
First roll: <%=FirstRoll%><br>
Second roll: <%=SecondRoll%><br>
</body>
</html>


Nov 17 '05 #3
> I call it with LOCALHOST. It produces the IE cannot find page error
because
it doesn't know how to compile the function.
If you're talking about a 404 Page Not Found error, that has nothing to do
with compiling anything. It means that the URL you requested in your browser
doesn't exist on the server.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:iw*******************@news4.srv.hcvlny.cv.net ... I am learning ASP.NET using the book, "ASP.NET for Dummies". In the chapter introducing writing your own functions, I cannot get the example to run when I call it with LOCALHOST. It produces the IE cannot find page error because it doesn't know how to compile the function.

I can execute .ASPX examples just fine using LOCALHOST.

What else do I need to do set up on my PC to be able to compile these
functions?

Here is the example code:

<%@Page Explicit="True" Language="VB" Debug="True" %>
<html>
<script runat="server">

Function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(Rnd * 6) + 1
Return(Roll)
End Function

</script>

<body>
<p>I'll roll two dice; let's see what
we get!</p>
<%
Dim FirstRoll, SecondRoll As Integer
FirstRoll = RollDie
SecondRoll = RollDie
%>
First roll: <%=FirstRoll%><br>
Second roll: <%=SecondRoll%><br>
</body>
</html>

Nov 17 '05 #4
That is probably true. If I put this example on my own server, then it
compiles and runs. The question now is how can I get it to execute from the
LOCALHOST URL? All the system stuff that ran from the server exists on my PC
so how would I direct LOCALHOST to use it?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:Oi**************@TK2MSFTNGP12.phx.gbl...
I call it with LOCALHOST. It produces the IE cannot find page error because
it doesn't know how to compile the function.


If you're talking about a 404 Page Not Found error, that has nothing to do
with compiling anything. It means that the URL you requested in your

browser doesn't exist on the server.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:iw*******************@news4.srv.hcvlny.cv.net ...
I am learning ASP.NET using the book, "ASP.NET for Dummies". In the

chapter
introducing writing your own functions, I cannot get the example to run

when
I call it with LOCALHOST. It produces the IE cannot find page error

because
it doesn't know how to compile the function.

I can execute .ASPX examples just fine using LOCALHOST.

What else do I need to do set up on my PC to be able to compile these
functions?

Here is the example code:

<%@Page Explicit="True" Language="VB" Debug="True" %>
<html>
<script runat="server">

Function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(Rnd * 6) + 1
Return(Roll)
End Function

</script>

<body>
<p>I'll roll two dice; let's see what
we get!</p>
<%
Dim FirstRoll, SecondRoll As Integer
FirstRoll = RollDie
SecondRoll = RollDie
%>
First roll: <%=FirstRoll%><br>
Second roll: <%=SecondRoll%><br>
</body>
</html>


Nov 17 '05 #5
Well, I'm not sure. Usually, localhost refers to your local web server.
Apparently, you're using it to denote something else?
What is the URL you are using to get it from your local machine, and what is
the file location of the ASPX file?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:TT*******************@news4.srv.hcvlny.cv.net ...
That is probably true. If I put this example on my own server, then it
compiles and runs. The question now is how can I get it to execute from the LOCALHOST URL? All the system stuff that ran from the server exists on my PC so how would I direct LOCALHOST to use it?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:Oi**************@TK2MSFTNGP12.phx.gbl...
I call it with LOCALHOST. It produces the IE cannot find page error

because
it doesn't know how to compile the function.


If you're talking about a 404 Page Not Found error, that has nothing to do with compiling anything. It means that the URL you requested in your

browser
doesn't exist on the server.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:iw*******************@news4.srv.hcvlny.cv.net ...
I am learning ASP.NET using the book, "ASP.NET for Dummies". In the

chapter
introducing writing your own functions, I cannot get the example to
run when
I call it with LOCALHOST. It produces the IE cannot find page error

because
it doesn't know how to compile the function.

I can execute .ASPX examples just fine using LOCALHOST.

What else do I need to do set up on my PC to be able to compile these
functions?

Here is the example code:

<%@Page Explicit="True" Language="VB" Debug="True" %>
<html>
<script runat="server">

Function RollDie As Integer
Dim Roll As Integer
Randomize
Roll = Int(Rnd * 6) + 1
Return(Roll)
End Function

</script>

<body>
<p>I'll roll two dice; let's see what
we get!</p>
<%
Dim FirstRoll, SecondRoll As Integer
FirstRoll = RollDie
SecondRoll = RollDie
%>
First roll: <%=FirstRoll%><br>
Second roll: <%=SecondRoll%><br>
</body>
</html>



Nov 17 '05 #6
I haven't changed anything in localhost. It still is 127.0.0.1

http://localhost/hello/rolldie.aspx (This fails to compile the function and
outputs the Page Cannot Be Displayed error screen. Port 80)
http://www.myhostname.com/hello/rolldie.aspx (This works.)

I have to change the port number in the property sheet when testing the two
formats above.

Another issue is to set up the property sheet so that I can use two
different port numbers for the default web site. Is this possible? The
Advance button looks like I can add any ports, but when I add them, they do
not seem to do anything.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...
Well, I'm not sure. Usually, localhost refers to your local web server.
Apparently, you're using it to denote something else?
What is the URL you are using to get it from your local machine, and what is the file location of the ASPX file?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:TT*******************@news4.srv.hcvlny.cv.net ...
That is probably true. If I put this example on my own server, then it
compiles and runs. The question now is how can I get it to execute from the
LOCALHOST URL? All the system stuff that ran from the server exists on my PC
so how would I direct LOCALHOST to use it?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:Oi**************@TK2MSFTNGP12.phx.gbl...
> I call it with LOCALHOST. It produces the IE cannot find page error
because
> it doesn't know how to compile the function.

If you're talking about a 404 Page Not Found error, that has nothing
to do with compiling anything. It means that the URL you requested in your

browser
doesn't exist on the server.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer

Nov 17 '05 #7
> I haven't changed anything in localhost. It still is 127.0.0.1

http://localhost/hello/rolldie.aspx (This fails to compile the function and outputs the Page Cannot Be Displayed error screen. Port 80)
Let's forget about whether it's compiling anything for now, and forget about
port 80, unless you've done some reconfiguring of your local IIS.
http://www.myhostname.com/hello/rolldie.aspx (This works.)
Are you sure that ASP.Net is installed on your local web server? If not, to
do so, you would run the following command-line utility (adjust paths
according to your local system):

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspne t_regiis.exe -i
Another issue is to set up the property sheet so that I can use two
different port numbers for the default web site. Is this possible? The
Advance button looks like I can add any ports, but when I add them, they do not seem to do anything.
I don't know what Property Sheet you're referring to, as we haven't
discussed what software you're developing with yet.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:0x********************@news4.srv.hcvlny.cv.ne t... I haven't changed anything in localhost. It still is 127.0.0.1

http://localhost/hello/rolldie.aspx (This fails to compile the function and outputs the Page Cannot Be Displayed error screen. Port 80)
http://www.myhostname.com/hello/rolldie.aspx (This works.)

I have to change the port number in the property sheet when testing the two formats above.

Another issue is to set up the property sheet so that I can use two
different port numbers for the default web site. Is this possible? The
Advance button looks like I can add any ports, but when I add them, they do not seem to do anything.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:OF**************@TK2MSFTNGP11.phx.gbl...
Well, I'm not sure. Usually, localhost refers to your local web server.
Apparently, you're using it to denote something else?
What is the URL you are using to get it from your local machine, and what
is
the file location of the ASPX file?

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:TT*******************@news4.srv.hcvlny.cv.net ...
That is probably true. If I put this example on my own server, then it
compiles and runs. The question now is how can I get it to execute from the
LOCALHOST URL? All the system stuff that ran from the server exists on

my
PC
so how would I direct LOCALHOST to use it?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:Oi**************@TK2MSFTNGP12.phx.gbl...
> > I call it with LOCALHOST. It produces the IE cannot find page

error > because
> > it doesn't know how to compile the function.
>
> If you're talking about a 404 Page Not Found error, that has nothing

to
do
> with compiling anything. It means that the URL you requested in your
browser
> doesn't exist on the server.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer


Nov 17 '05 #8
OK. That was the problem. I needed to install ASP.NET into my local web
server. Since I am new to all of this, I had no clue as to how to do it.
When I downloaded the ASP framework last week, I just followed the prompts
without understanding what was happening. Apparently the framework was
installed in such a way that the IIS web server was able to find it but not
the local one.

That leaves the final issue. How can I execute .ASPX files on either
localhost or myhostname without having to change the port number for the
corresponding web server. For example, I have to set it to 80 for localhost
and some other port for myhostname. What I want to do it set up a web host
on my own PC and use it for testing.

The property sheet where I change the ports is found by running the IIS
Microsoft Management Console then right-click on the Default Web Site in the
folder tree of the IIS screen. Then click on Properties and go to the Web
Site tab.

I have to enter the TCP port for the web server I want to run. The Advanced
button opens a screen, Multiple identities for this Web Site. I was under
the impression that I can add other IP Addresses and ports here. But they
don't do anything. I guess I don't understand the purpose of this feature.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eH**************@TK2MSFTNGP12.phx.gbl...
I haven't changed anything in localhost. It still is 127.0.0.1

http://localhost/hello/rolldie.aspx (This fails to compile the function and
outputs the Page Cannot Be Displayed error screen. Port 80)


Let's forget about whether it's compiling anything for now, and forget

about port 80, unless you've done some reconfiguring of your local IIS.
http://www.myhostname.com/hello/rolldie.aspx (This works.)
Are you sure that ASP.Net is installed on your local web server? If not,

to do so, you would run the following command-line utility (adjust paths
according to your local system):

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspne t_regiis.exe -i
Another issue is to set up the property sheet so that I can use two
different port numbers for the default web site. Is this possible? The
Advance button looks like I can add any ports, but when I add them, they

do
not seem to do anything.


I don't know what Property Sheet you're referring to, as we haven't
discussed what software you're developing with yet.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

Nov 17 '05 #9
Well, since you don't really understand how to administer IIS (yet), my
suggestion would be that you leave the Advanced features alone. IIS has
default settings that are default because they are the most commonly-used.
In any case, you certainly don't need to change the port number of any of
your local web sites. Let me try to explain a bit:

A web site is an entity on a web server. The web server is a listener that
listens for HTTP requests on a TCP/IP port. The default port is 80 for HTTP.
The location of a web site is determined by the IP address of the web site,
which, in the case of a stand-alone machine such as your home machine, is
generally the same IP address as the machine. On an Internet Domain web
server, the machine may host more than one IP address, but that's an
advanced topic. In a web site, you can have multiple child webs, which are
designated by a forward slash after the IP address or domain name of the web
site, plus the folder name of the sub-folder containing the child web site.
Therefore, you can create multiple web sites that live on the same IP
address under a root web. That is what you want to do with your machine's
ASP.Net projects.

The domain name is a convenience for us humans, who don't speak numbers very
well. It is translated by the computer to an IP address when it is used.
This is either done by the computer itself, or by a Domain Name Server. In
the case of your local web server, the local machine uses the name
"localhost" for the local (internal) IP address of the machine, which is
127.0.0.1. You can also access the local machine's root web via the machine
name.

So, as you can see, it doesn't matter that your local machine and the remote
web site both use TCP/IP port 80; almost all web sites do. The real
difference is the IP address of the web server. And again, you can create as
many sub-webs as you wish. To make each sub-web a separate ASP.Net
application, you can use the IIS Admin snap-in to create an Application for
any sub-folder of the root. Just right-click the sub-folder, select
"Properties" from the context menu, and in the Directory tab, click the
"Create" button next to the "Application Name" box. Once this is done, the
sub-directory is now a sub-web.

Good luck!

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:uG*******************@news4.srv.hcvlny.cv.net ...
OK. That was the problem. I needed to install ASP.NET into my local web
server. Since I am new to all of this, I had no clue as to how to do it.
When I downloaded the ASP framework last week, I just followed the prompts
without understanding what was happening. Apparently the framework was
installed in such a way that the IIS web server was able to find it but not the local one.

That leaves the final issue. How can I execute .ASPX files on either
localhost or myhostname without having to change the port number for the
corresponding web server. For example, I have to set it to 80 for localhost and some other port for myhostname. What I want to do it set up a web host
on my own PC and use it for testing.

The property sheet where I change the ports is found by running the IIS
Microsoft Management Console then right-click on the Default Web Site in the folder tree of the IIS screen. Then click on Properties and go to the Web
Site tab.

I have to enter the TCP port for the web server I want to run. The Advanced button opens a screen, Multiple identities for this Web Site. I was under
the impression that I can add other IP Addresses and ports here. But they
don't do anything. I guess I don't understand the purpose of this feature.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eH**************@TK2MSFTNGP12.phx.gbl...
I haven't changed anything in localhost. It still is 127.0.0.1

http://localhost/hello/rolldie.aspx (This fails to compile the functi
on and
outputs the Page Cannot Be Displayed error screen. Port 80)
Let's forget about whether it's compiling anything for now, and forget

about
port 80, unless you've done some reconfiguring of your local IIS.
http://www.myhostname.com/hello/rolldie.aspx (This works.)


Are you sure that ASP.Net is installed on your local web server? If not, to
do so, you would run the following command-line utility (adjust paths
according to your local system):

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspne t_regiis.exe -i
Another issue is to set up the property sheet so that I can use two
different port numbers for the default web site. Is this possible? The
Advance button looks like I can add any ports, but when I add them,

they do
not seem to do anything.


I don't know what Property Sheet you're referring to, as we haven't
discussed what software you're developing with yet.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.


Nov 17 '05 #10
Thank you for all of your help and patience. I know it is frustrating
dealing with inexperienced users but I am very interested in learning all of
this stuff. The big problem is knowing where to start. Reading a thousand
pages of help files from start to finish is not a good way to learn. So I
need to start with things that I have immediate problems with and go on from
there.

Can you suggest some simplified reading material to get me to this next
step?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ea****************@TK2MSFTNGP12.phx.gbl...
Well, since you don't really understand how to administer IIS (yet), my
suggestion would be that you leave the Advanced features alone. IIS has
default settings that are default because they are the most commonly-used.
In any case, you certainly don't need to change the port number of any of
your local web sites. Let me try to explain a bit:

A web site is an entity on a web server. The web server is a listener that
listens for HTTP requests on a TCP/IP port. The default port is 80 for HTTP. The location of a web site is determined by the IP address of the web site, which, in the case of a stand-alone machine such as your home machine, is
generally the same IP address as the machine. On an Internet Domain web
server, the machine may host more than one IP address, but that's an
advanced topic. In a web site, you can have multiple child webs, which are
designated by a forward slash after the IP address or domain name of the web site, plus the folder name of the sub-folder containing the child web site. Therefore, you can create multiple web sites that live on the same IP
address under a root web. That is what you want to do with your machine's
ASP.Net projects.

The domain name is a convenience for us humans, who don't speak numbers very well. It is translated by the computer to an IP address when it is used.
This is either done by the computer itself, or by a Domain Name Server. In
the case of your local web server, the local machine uses the name
"localhost" for the local (internal) IP address of the machine, which is
127.0.0.1. You can also access the local machine's root web via the machine name.

So, as you can see, it doesn't matter that your local machine and the remote web site both use TCP/IP port 80; almost all web sites do. The real
difference is the IP address of the web server. And again, you can create as many sub-webs as you wish. To make each sub-web a separate ASP.Net
application, you can use the IIS Admin snap-in to create an Application for any sub-folder of the root. Just right-click the sub-folder, select
"Properties" from the context menu, and in the Directory tab, click the
"Create" button next to the "Application Name" box. Once this is done, the
sub-directory is now a sub-web.

Good luck!

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

Nov 17 '05 #11
> Thank you for all of your help and patience. I know it is frustrating

I haven't needed any patience dealing with you, my friend. It has been my
pleasure to help you as others have helped me.
Can you suggest some simplified reading material to get me to this next
step?
Can you define what the next step is? Are you still having a problem?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:HM*******************@news4.srv.hcvlny.cv.net ... Thank you for all of your help and patience. I know it is frustrating
dealing with inexperienced users but I am very interested in learning all of this stuff. The big problem is knowing where to start. Reading a thousand
pages of help files from start to finish is not a good way to learn. So I
need to start with things that I have immediate problems with and go on from there.

Can you suggest some simplified reading material to get me to this next
step?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ea****************@TK2MSFTNGP12.phx.gbl...
Well, since you don't really understand how to administer IIS (yet), my
suggestion would be that you leave the Advanced features alone. IIS has
default settings that are default because they are the most commonly-used. In any case, you certainly don't need to change the port number of any of your local web sites. Let me try to explain a bit:

A web site is an entity on a web server. The web server is a listener that listens for HTTP requests on a TCP/IP port. The default port is 80 for HTTP.
The location of a web site is determined by the IP address of the web

site,
which, in the case of a stand-alone machine such as your home machine, is generally the same IP address as the machine. On an Internet Domain web
server, the machine may host more than one IP address, but that's an
advanced topic. In a web site, you can have multiple child webs, which are designated by a forward slash after the IP address or domain name of the

web
site, plus the folder name of the sub-folder containing the child web

site.
Therefore, you can create multiple web sites that live on the same IP
address under a root web. That is what you want to do with your machine's ASP.Net projects.

The domain name is a convenience for us humans, who don't speak numbers

very
well. It is translated by the computer to an IP address when it is used.
This is either done by the computer itself, or by a Domain Name Server. In the case of your local web server, the local machine uses the name
"localhost" for the local (internal) IP address of the machine, which is
127.0.0.1. You can also access the local machine's root web via the

machine
name.

So, as you can see, it doesn't matter that your local machine and the

remote
web site both use TCP/IP port 80; almost all web sites do. The real
difference is the IP address of the web server. And again, you can create as
many sub-webs as you wish. To make each sub-web a separate ASP.Net
application, you can use the IIS Admin snap-in to create an Application

for
any sub-folder of the root. Just right-click the sub-folder, select
"Properties" from the context menu, and in the Directory tab, click the
"Create" button next to the "Application Name" box. Once this is done,

the sub-directory is now a sub-web.

Good luck!

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.


Nov 17 '05 #12
I understood the information you put in your last note. I am going to resume
studying ASP.NET. The other step is to learn IIS which is a different topic
than what we started with here. I am going to switch to the
microsoft.public.inetserver.iss newsgroup to discuss how I can put two IP
addresses on the same default web page. I found a web site that discusses
this topic but I haven't been successful doing it.
http://www.iisanswers.com/Top10FAQ/t10-hostheaders.htm

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:u7**************@TK2MSFTNGP12.phx.gbl...
Thank you for all of your help and patience. I know it is frustrating


I haven't needed any patience dealing with you, my friend. It has been my
pleasure to help you as others have helped me.
Can you suggest some simplified reading material to get me to this next
step?


Can you define what the next step is? Are you still having a problem?

Nov 17 '05 #13
This link at the Microsoft web site should be of help:

http://www.microsoft.com/windows2000...atures/web.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:NZ********************@news4.srv.hcvlny.cv.ne t...
I understood the information you put in your last note. I am going to resume studying ASP.NET. The other step is to learn IIS which is a different topic than what we started with here. I am going to switch to the
microsoft.public.inetserver.iss newsgroup to discuss how I can put two IP
addresses on the same default web page. I found a web site that discusses
this topic but I haven't been successful doing it.
http://www.iisanswers.com/Top10FAQ/t10-hostheaders.htm

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:u7**************@TK2MSFTNGP12.phx.gbl...
Thank you for all of your help and patience. I know it is frustrating


I haven't needed any patience dealing with you, my friend. It has been my pleasure to help you as others have helped me.
Can you suggest some simplified reading material to get me to this next step?


Can you define what the next step is? Are you still having a problem?


Nov 17 '05 #14
I was able to get the two addresses working yesterday. It took me about 3
hours of fiddling with all of the settings. I found that I had to start my
TZO Dynamic DNS program as a service; there was a checkbox in one of its
menus to allow it.

The discussion in the link I gave you last time was correct in how to
actually set up the Advance menu for two or more addresses. But even here it
was tricky. I finally just deleted all of the default ones and entered the
new ones but with the Port 80 entry first in the list. I also had to
explicitly specify 127.0.0.1 and localhost rather than the generic text
provided by MS. It also took awhile to figure out exactly what text to use
for my remote host name. In my case I had to leave off the "www." part.
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ee**************@TK2MSFTNGP11.phx.gbl...
This link at the Microsoft web site should be of help:

http://www.microsoft.com/windows2000...atures/web.asp

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

"NRGeti" <ng***@optonline.net> wrote in message
news:NZ********************@news4.srv.hcvlny.cv.ne t...
I understood the information you put in your last note. I am going to

resume
studying ASP.NET. The other step is to learn IIS which is a different

topic
than what we started with here. I am going to switch to the
microsoft.public.inetserver.iss newsgroup to discuss how I can put two IP
addresses on the same default web page. I found a web site that discusses this topic but I haven't been successful doing it.
http://www.iisanswers.com/Top10FAQ/t10-hostheaders.htm

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:u7**************@TK2MSFTNGP12.phx.gbl...
> Thank you for all of your help and patience. I know it is frustrating
I haven't needed any patience dealing with you, my friend. It has been

my pleasure to help you as others have helped me.

> Can you suggest some simplified reading material to get me to this next > step?

Can you define what the next step is? Are you still having a problem?



Nov 17 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Nick Coghlan | last post by:
Time for another random syntax idea. . . So, I was tinkering in the interactive interpreter, and came up with the following one-size-fits-most default argument hack: Py> x = 1 Py> def...
4
by: frankg | last post by:
When I compile this file ------------------------------------------------------ #include <stdarg.h> template <class Any> void var_arg_func(int dimension_count, ...) { int dimensions;...
17
by: newbiecpp | last post by:
I have hard time to understand run-time environment. Let assume that I have a program that has a simple variable alpha. When this variable is statically allocated, the compiler can use the...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
4
by: Lodewijk Smit | last post by:
Hi, In the C standard of 1999 additional mathematical functions are added. For example, beside the traditional double sin(double x); there are also the functions: float sinf(float x);...
7
by: dc | last post by:
Can anybody think of a situation where virtual function's address resolution/ something related to virtual is done at compile time
13
by: Genady Beryozkin | last post by:
Hi, I've read the article at http://msdn2.microsoft.com/en-us/library/ms235211.aspx about how to compile MFC/ATL code, but I still have one question unanswered: Should I have the CComModule...
4
by: mickey22 | last post by:
Hi all, I have a source file a.cpp in my project. To this project I have added a new source file (b.cpp) which is not even compiled and also header file (b.h) in which I have declared a class b...
16
by: desktop | last post by:
I have read that using templates makes types know at compile time and using inheritance the types are first decided at runtime. The use of pointers and casts also indicates that the types will...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.