View Full Version : Newbie Question how to get start
01-19-2006, 05:34 AM
Hello, I have this code saved as hello.aspx
<%@ Page Language="VB" %>
<title>ASP.NET Hello World</title>
<p><%= "Hello World!" %></p>
I installed Microsoft .Net 1.1 on my computer, then I view that file (hello.aspx) in the IE, but it showed me the code not just Hello World. What would be my problem? I thought I got a run time already.
01-19-2006, 06:18 AM
Before you can run your first .NET page, you need to also install Internet Information Services (IIS) and the .NET SDK (software development kit). Have a look at this tutorial (http://www.w3schools.com/aspnet/aspnet_install.asp) from the W3Schools website on how to setup everything.
01-20-2006, 05:14 AM
Ok, I got everything installed but then why it shows only the title ASP.NET Hello World and on the page is blank no content at all. I mean there's nothing printing "hello world"... what would be the problem?
01-20-2006, 05:39 AM
You should get both the page title and the body content, so something is definitely wrong.
It's been a while since I installed everything on my PC but in doing a little research, I found an entry in one of my books that states:
Installing the .NET framework before you install IIS will prevent your application from working correctly.
This may be your problem. I would uninstall everything, then do it over again. Install IIS first, then the .NET framework, then the .NET SDK. Then try your "hello world" script again. It should work this time.
Yeah, I know, it's a royal pain but you'll be glad you made the effort.
01-20-2006, 06:39 PM
Oh what is IIS? I thought I had the IE that is 6.0. Are they the same? I went to Microsoft and searched for IIS download. There are many link, I don't know which one that is ued for asp.net.
01-20-2006, 11:20 PM
If you don't know what IIS is then you should mess with it just yet. Are you runing XP Home on your computer? If so then down load Visual Web Developer 2005. Its free and it comes with a built in server, what this means is you can code your pages and view then. After you have finished coding your site you can then upload your site to a server host. Here is a link to VWD have fun.
01-21-2006, 08:56 AM
It makes my computer so slow to run that program after complete installation *sigh* so what is IIS? Maybe I can just code in note pad and run that in browser?
01-21-2006, 04:48 PM
Unless you have Windows 2000 or XP pro, you can not run IIS. You would be better off upgrading the Ram on your computer.
01-21-2006, 05:42 PM
ASP.NET applications need to be run on a web server on your local PC, so that you can debug them during development. You cannot debug them on your web hosting account, as that is not configured to show you errors.
Internet Information Services (IIS) is your web server on your local PC. If you have Windows 2000 or Windows XP Professional, those operating systems both come with IIS. If you have XP Home Edition, it does NOT come with IIS. Furthermore - and this is my own experience from my old PC - with XP Home Edition, you cannot setup all the necessary components to be able to run ASP.NET applications on your local PC. You might find other people that tell you different about this, but again, I was never able to find a way to do it on my old PC.
That said, and assuming you have one of the above operating systems, the following is how you add IIS to your PC, and is quoted from the book, Build Your Own ASP.NET Website Using C# & VB.NET (http://www.sitepoint.com/books/aspnet1/):
In the Control Panel, select Add or Remove Programs.
Choose Add/Remove Windows Components. The list of components will become visible within a few seconds.
In the list of components, check Internet Information Services (IIS).
Click Next. Windows prompts you to insert the Windows CD and installs IIS.
Once IIS is installed, close the Add or Remove Programs dialog. You can check that IIS has installed correctly by seeing if you can find it within the Administrative Tools menu. If you can, it's installed.
I would just like to also add that the first three (or is it four?) chapters from the above mentioned book can be downloaded for free. That download section has an excellent discussion for setting up your local PC's web server. It's also an excellent book for teaching yourself ASP.NET, in my opinion.
01-25-2006, 02:28 AM
I did the IIS thing but I'm using xp home edition. There is no IIS component that I can select. So I can't run asp.net after all by using xp home edition? It's a laptop. I run the windows developer, it's very slow. Any other suggestions?
01-25-2006, 03:57 AM
I just found out about a page (http://www.webthang.co.uk/tuts/tuts_server/iis_xph/pippo_xp.asp) which walks you through a tutorial on how to setup IIS on a Windows XP Home Edition PC. It seems a bit complicated, and they do warn that their workaround is not for beginners. In other words, use it at your own risk, but there are people on that page that report they had success using it. Anyway, you might study their method and give it a go if you're brave.
01-29-2006, 03:49 AM
There is no IIS component that I can select. So I can't run asp.net after all by using xp home edition?Correct.
Use PHP and Apache. It runs on anything and its free.
02-14-2006, 01:55 AM
Does phpdev work? I have that program but don't know how to run asp.net using it.
02-14-2006, 10:32 PM
the workaround for iis on home is dodgy and illegal.
you cannot set up iis or pws on xp home (without this dodgy illegal workaround)
use vwd. if its slow then modify settings such as virtual memory. Some hosts DO let you debug on them, thats probably the best solution. (infact most do as asp.net settings are in web.config all you have to do is set the compilation debug and/or the page debug in the indevidual page)
get a decent host. :)
apache cannot run asp.net. php is a different thing to asp.net alltogether. asp.net is better imho but use php if you really have to.
02-15-2006, 03:21 AM
the workaround for iis on home is dodgy and illegal.
No, it isn't illegal, but Microsoft does not offer any kind of support for IIS on XP Home.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.