»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-05-2004, 07:46 PM   #1 (permalink)
Registered User
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: SoCal
Posts: 1,122
Tekk is on a distinguished road
IIS and Win2003

Im trying to setup my simple IIS server so I can easily develope and test my ASPX pages for my class. I installed IISv6.0 and created the virtual directory in the IIS Manager and set the permissions to run ASPX pages and all but for some reason I cannot get it to properly work. Here's the most simple page I am testing.

Code:
<% Page language="VBSCript" %>
<script runat="server">

    Sub Page_Load
      Response.Write("THIS IS MY FIRST ASP.NET PAGE")
    End Sub

</script>
<html>
<head>
</head>
<body>
    <form runat="server">
        <table cellpadding="5" border="1">
            <tbody>
                <tr>
                    <td>
                        <font size=+0><strong>Hello! If you can see the above text then this page was a successful
                        first ASP page!<strong> </strong></strong></font></td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>


The error it gives me:

A runtime error has occurred.
Do you wish to Debug?

Line: 3
Error: Expected ';'


Why is it doing that? The code worked perfect when I used Microsofts own program 'Web Matrix' which creates a virtual server when you want to test an asp page. Of course when i want to work with IIS is doesn't work right!!! Any help?

__________________
Im very explosive right now...BOOM! Very explosive.
Tekk is offline   Reply With Quote
Old 04-05-2004, 07:50 PM   #2 (permalink)
Registered User
 
Join Date: Sep 2002
Posts: 265
Creosote is on a distinguished road
Did you use the code-behind when you use WebMatrix?
Creosote is offline   Reply With Quote
Old 04-05-2004, 07:59 PM   #3 (permalink)
Registered User
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: SoCal
Posts: 1,122
Tekk is on a distinguished road
if you are talking about the code tab on the bottom of the content window then no I did not. I used the 'ALL' tab.

Another question is that it (IIS) keeps requesting a damn username/password when I try to access a test file in the directory. I fiddled with permissions but since Im really new to this I dont know what settings Im playing with
__________________
Im very explosive right now...BOOM! Very explosive.
Tekk is offline   Reply With Quote
Old 04-05-2004, 09:54 PM   #4 (permalink)
Registered User
 
Join Date: Sep 2002
Posts: 265
Creosote is on a distinguished road
Aha, I think I know what it is. Look at your very first line, that should give you a hint. I don't think its your permissions.

I am surprised that you guys are working with VBScript instead of using VB or C# or J# in the code-behind files.
Creosote is offline   Reply With Quote
Old 04-06-2004, 12:03 AM   #5 (permalink)
Registered User
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: SoCal
Posts: 1,122
Tekk is on a distinguished road
if you're thinking its the 'language="VB"' then thats not it because I tried that and it still gives me the same damn error. Im feeling like I should start the whole IIS setup over again. Any good sites on how this should properly be done on server 2003?
__________________
Im very explosive right now...BOOM! Very explosive.
Tekk is offline   Reply With Quote
Old 04-06-2004, 12:05 AM   #6 (permalink)
Registered User
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: SoCal
Posts: 1,122
Tekk is on a distinguished road
Well Im taking an advanced java class that teaches us about JSP/Servlets so Im gonna be focusing more on that really. I dont know why they focus on VB rather than C/J#. Microsoft gives us lots of money so maybe they like us focusing on those things. who knows
__________________
Im very explosive right now...BOOM! Very explosive.
Tekk is offline   Reply With Quote
Old 04-06-2004, 12:14 AM   #7 (permalink)
Registered User
 
Join Date: Sep 2002
Posts: 265
Creosote is on a distinguished road
Nah, VBScript is completely different than Visual Basic, in much the same way JavaScript is different from Java. What you are doing is web programming, but not object oriented in the way Visual Basic proper C#, etc. are.

Look in your book, I think you will notice what I was talking about in your first line.

BTW, you use Server 2003 on your home PC?
Creosote is offline   Reply With Quote
Old 04-06-2004, 04:12 PM   #8 (permalink)
Registered User
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: SoCal
Posts: 1,122
Tekk is on a distinguished road
no no I use Server 2003 to learn I've never really used a true Server OS so Im trying to learn about it. Im taking several different classes where we learn JSP/Servelts/ASP.NET and I just wanted to try and get my server running so that I can test those pages from my main computer on my network. Im gonna try everything again tonight so I'll let you know.

Here's another question....can I have IIS running with Tomcat (the service we are given to run JSP/Servlets?) at the same time?
__________________
Im very explosive right now...BOOM! Very explosive.
Tekk is offline   Reply With Quote
Old 04-07-2004, 11:32 PM   #9 (permalink)
Registered User
 
Tekk's Avatar
 
Join Date: Oct 2001
Location: SoCal
Posts: 1,122
Tekk is on a distinguished road
ok now I've figured out how to get *.asp pages to work correctly but ASPX pages will still give me that ridiculous error.

even this simple code
Code:
<%@ Page Language="VB" %>
<script runat="server">

Sub Page_Load()
	response.write("HELLO")
End Sub

</script>
<html>
<head></head>
<body></body>
</html>
works perfect in web matrix but not with IIS. Whyyyy?!
__________________
Im very explosive right now...BOOM! Very explosive.
Tekk is offline   Reply With Quote
Old 04-07-2004, 11:49 PM   #10 (permalink)
Registered User
 
davidamarkley's Avatar
 
Join Date: May 2002
Location: Joplin, MO
Posts: 2,208
davidamarkley is on a distinguished road
Send a message via ICQ to davidamarkley Send a message via AIM to davidamarkley
I know nothing about this, but could it be that the "C" in VBSCript is capitalized?


Code:
<% Page language="VBSCript" %>
Also, shouldn't there be an @ symbol after the <% ?

Like this:

Code:
<%@ Page Language="VBScript" %>
Dave
__________________
-David

Last edited by davidamarkley; 04-07-2004 at 11:57 PM.
davidamarkley is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 07:57 PM.