Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15
  1. #1
    Regular Coder
    Join Date
    Aug 2005
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Newbie Question how to get start

    Hello, I have this code saved as hello.aspx

    Code:
    <%@ Page Language="VB" %>
    
    <html>
    <head>
    <title>ASP.NET Hello World</title>
    </head>
    <body bgcolor="#FFFFFF">
    
    <p><%= "Hello World!" %></p>
    
    </body>
    </html>
    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.

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    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 from the W3Schools website on how to setup everything.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    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.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #5
    Regular Coder
    Join Date
    Aug 2005
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #6
    Regular Coder Freon22's Avatar
    Join Date
    May 2005
    Location
    USA
    Posts
    287
    Thanks
    3
    Thanked 5 Times in 5 Posts
    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.

    http://msdn.microsoft.com/vstudio/ex...d/default.aspx

  • #7
    Regular Coder
    Join Date
    Aug 2005
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #8
    Regular Coder Freon22's Avatar
    Join Date
    May 2005
    Location
    USA
    Posts
    287
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Unless you have Windows 2000 or XP pro, you can not run IIS. You would be better off upgrading the Ram on your computer.

  • #9
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    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:

    1. In the Control Panel, select Add or Remove Programs.
    2. Choose Add/Remove Windows Components. The list of components will become visible within a few seconds.
    3. In the list of components, check Internet Information Services (IIS).
    4. 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.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #10
    Regular Coder
    Join Date
    Aug 2005
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #11
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    I just found out about a page 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.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #12
    Senior Coder
    Join Date
    Oct 2005
    Posts
    1,340
    Thanks
    0
    Thanked 61 Times in 60 Posts
    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.

  • #13
    Regular Coder
    Join Date
    Aug 2005
    Posts
    279
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Does phpdev work? I have that program but don't know how to run asp.net using it.

  • #14
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    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.

  • #15
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Quote Originally Posted by ghell
    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.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •