Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Help with ASP server calls

Reply
Thread Tools

Help with ASP server calls

 
 
Marek Krzeminski
Guest
Posts: n/a
 
      01-30-2005
I am new to ASP and I am having some problems that I hope someone can help
me with.

I am using WindowsXP and a book to try to learn ASP.

The book instructed me to install IIS & .Net Framework v1.1 (which I did)

In the book they gave me the following code:

<script language="vb" runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>

<html>
<head><title>The Punctual Web Server</title></head>
<body>
<h1>Welcome</h1>
In WebServerLand the time is currently:
<asp:label id="time" runat="server" />
</body>
</html>

which I saved under the name "test.aspx" in my "C:\Inetpub\wwwroot"
directory.

When I open http://localhost/test.aspx in internet explorer, I only see:

Welcome
In WebServerLand the time is currently:



For some reason the server side code does not execute.

How can I fix this problem? I'm guessing that there is a setup step that I
am missing somewhere.

Help!



 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      01-31-2005
Hi Marek,

Try doing the steps in the Resolution section here?

http://support.microsoft.com/kb/325093/EN-US/


"Marek Krzeminski" <> wrote in message
news:Aq8Ld.1343$...
>I am new to ASP and I am having some problems that I hope someone can help
>me with.
>
> I am using WindowsXP and a book to try to learn ASP.
>
> The book instructed me to install IIS & .Net Framework v1.1 (which I did)
>
> In the book they gave me the following code:
>
> <script language="vb" runat="server">
> Sub Page_Load()
> time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
> End Sub
> </script>
>
> <html>
> <head><title>The Punctual Web Server</title></head>
> <body>
> <h1>Welcome</h1>
> In WebServerLand the time is currently:
> <asp:label id="time" runat="server" />
> </body>
> </html>
>
> which I saved under the name "test.aspx" in my "C:\Inetpub\wwwroot"
> directory.
>
> When I open http://localhost/test.aspx in internet explorer, I only see:
>
> Welcome
> In WebServerLand the time is currently:
>
>
>
> For some reason the server side code does not execute.
>
> How can I fix this problem? I'm guessing that there is a setup step that
> I am missing somewhere.
>
> Help!
>
>
>


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      01-31-2005
Sounds like your web server or web site is not configured to run ASP.Net.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Marek Krzeminski" <> wrote in message
news:Aq8Ld.1343$...
>I am new to ASP and I am having some problems that I hope someone can help
>me with.
>
> I am using WindowsXP and a book to try to learn ASP.
>
> The book instructed me to install IIS & .Net Framework v1.1 (which I did)
>
> In the book they gave me the following code:
>
> <script language="vb" runat="server">
> Sub Page_Load()
> time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
> End Sub
> </script>
>
> <html>
> <head><title>The Punctual Web Server</title></head>
> <body>
> <h1>Welcome</h1>
> In WebServerLand the time is currently:
> <asp:label id="time" runat="server" />
> </body>
> </html>
>
> which I saved under the name "test.aspx" in my "C:\Inetpub\wwwroot"
> directory.
>
> When I open http://localhost/test.aspx in internet explorer, I only see:
>
> Welcome
> In WebServerLand the time is currently:
>
>
>
> For some reason the server side code does not execute.
>
> How can I fix this problem? I'm guessing that there is a setup step that
> I am missing somewhere.
>
> Help!
>
>
>



 
Reply With Quote
 
Marek Krzeminski
Guest
Posts: n/a
 
      02-01-2005
I followed the instructions in the link you provided and my ASP code now
works

HOWEVER, when I try to use Visual Studio to compile any C++ programs I get
the following error:

Build Log
------- Build started: Project: test, Configuration:
Debug|Win32 -------


Command Lines
Creating temporary file "c:\Documents and Settings\Marek\My
Documents\Visual Studio Projects\Temp\test\Debug\RSP000001.rsp" with
contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd
/Yu"stdafx.h" /Fp"Debug/test.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c
/Wp64 /ZI /TP
".\test.cpp"
]
Creating command line "cl.exe @"c:\Documents and Settings\Marek\My
Documents\Visual Studio Projects\Temp\test\Debug\RSP000001.rsp" /nologo"
Creating temporary file "c:\Documents and Settings\Marek\My Documents\Visual
Studio Projects\Temp\test\Debug\RSP000002.rsp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd
/Yc"stdafx.h" /Fp"Debug/test.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c
/Wp64 /ZI /TP
".\stdafx.cpp"
]
Creating command line "cl.exe @"c:\Documents and Settings\Marek\My
Documents\Visual Studio Projects\Temp\test\Debug\RSP000002.rsp" /nologo"

Output Window

Results
Build log was saved at "file://c:\Documents and Settings\Marek\My
Documents\Visual Studio Projects\Temp\test\Debug\BuildLog.htm"
test - 1 error(s), 0 warning(s)


I can't even make a hello world application!

Help please!




"Ken Cox [Microsoft MVP]" <> wrote in message
news:%...
> Hi Marek,
>
> Try doing the steps in the Resolution section here?
>
> http://support.microsoft.com/kb/325093/EN-US/
>
>
> "Marek Krzeminski" <> wrote in message
> news:Aq8Ld.1343$...
>>I am new to ASP and I am having some problems that I hope someone can help
>>me with.
>>
>> I am using WindowsXP and a book to try to learn ASP.
>>
>> The book instructed me to install IIS & .Net Framework v1.1 (which I did)
>>
>> In the book they gave me the following code:
>>
>> <script language="vb" runat="server">
>> Sub Page_Load()
>> time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
>> End Sub
>> </script>
>>
>> <html>
>> <head><title>The Punctual Web Server</title></head>
>> <body>
>> <h1>Welcome</h1>
>> In WebServerLand the time is currently:
>> <asp:label id="time" runat="server" />
>> </body>
>> </html>
>>
>> which I saved under the name "test.aspx" in my "C:\Inetpub\wwwroot"
>> directory.
>>
>> When I open http://localhost/test.aspx in internet explorer, I only see:
>>
>> Welcome
>> In WebServerLand the time is currently:
>>
>>
>>
>> For some reason the server side code does not execute.
>>
>> How can I fix this problem? I'm guessing that there is a setup step that
>> I am missing somewhere.
>>
>> Help!
>>
>>
>>

>




 
Reply With Quote
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      02-01-2005
You might want to reinstall VStudio to see if that fixes C++

"Marek Krzeminski" <> wrote in message
news:EGBLd.162$...
>I followed the instructions in the link you provided and my ASP code now
>works
>
> HOWEVER, when I try to use Visual Studio to compile any C++ programs I get
> the following error:
>
> Build Log
> ------- Build started: Project: test, Configuration:
> Debug|Win32 -------
>
>
> Command Lines
> Creating temporary file "c:\Documents and Settings\Marek\My
> Documents\Visual Studio Projects\Temp\test\Debug\RSP000001.rsp" with
> contents
> [
> /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd
> /Yu"stdafx.h" /Fp"Debug/test.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c
> /Wp64 /ZI /TP
> ".\test.cpp"
> ]
> Creating command line "cl.exe @"c:\Documents and Settings\Marek\My
> Documents\Visual Studio Projects\Temp\test\Debug\RSP000001.rsp" /nologo"
> Creating temporary file "c:\Documents and Settings\Marek\My
> Documents\Visual Studio Projects\Temp\test\Debug\RSP000002.rsp" with
> contents
> [
> /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd
> /Yc"stdafx.h" /Fp"Debug/test.pch" /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c
> /Wp64 /ZI /TP
> ".\stdafx.cpp"
> ]
> Creating command line "cl.exe @"c:\Documents and Settings\Marek\My
> Documents\Visual Studio Projects\Temp\test\Debug\RSP000002.rsp" /nologo"
>
> Output Window
>
> Results
> Build log was saved at "file://c:\Documents and Settings\Marek\My
> Documents\Visual Studio Projects\Temp\test\Debug\BuildLog.htm"
> test - 1 error(s), 0 warning(s)
>
>
> I can't even make a hello world application!
>
> Help please!
>
>
>
>
> "Ken Cox [Microsoft MVP]" <> wrote in message
> news:%...
>> Hi Marek,
>>
>> Try doing the steps in the Resolution section here?
>>
>> http://support.microsoft.com/kb/325093/EN-US/
>>
>>
>> "Marek Krzeminski" <> wrote in message
>> news:Aq8Ld.1343$...
>>>I am new to ASP and I am having some problems that I hope someone can
>>>help me with.
>>>
>>> I am using WindowsXP and a book to try to learn ASP.
>>>
>>> The book instructed me to install IIS & .Net Framework v1.1 (which I
>>> did)
>>>
>>> In the book they gave me the following code:
>>>
>>> <script language="vb" runat="server">
>>> Sub Page_Load()
>>> time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
>>> End Sub
>>> </script>
>>>
>>> <html>
>>> <head><title>The Punctual Web Server</title></head>
>>> <body>
>>> <h1>Welcome</h1>
>>> In WebServerLand the time is currently:
>>> <asp:label id="time" runat="server" />
>>> </body>
>>> </html>
>>>
>>> which I saved under the name "test.aspx" in my "C:\Inetpub\wwwroot"
>>> directory.
>>>
>>> When I open http://localhost/test.aspx in internet explorer, I only see:
>>>
>>> Welcome
>>> In WebServerLand the time is currently:
>>>
>>>
>>>
>>> For some reason the server side code does not execute.
>>>
>>> How can I fix this problem? I'm guessing that there is a setup step
>>> that I am missing somewhere.
>>>
>>> Help!
>>>
>>>
>>>

>>

>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are system calls sometimes costlier than library calls? Richard Tobin C Programming 24 11-11-2007 08:52 AM
Voipdiscount Outgoing Calls with Sipgate Incoming Calls on a Linksys PAP2 Giganews UK VOIP 27 10-09-2006 11:28 PM
ods calls business object then method calls ta with output params andy6 ASP .Net 2 06-09-2006 01:54 AM
MoVoIP - FREE MOBILE Inetrnet Phone Calls - FREE Internet Phone Calls ubifone VOIP 0 07-29-2005 04:31 PM
Sequence of constructor calls and destructor calls. Honne Gowda A C++ 2 10-31-2003 09:31 AM



Advertisments