ASP.net question from a student, help greatly appreciated
Discussion
Hi all,
On one of my university modules we have just started doing ASP.net and I can't for the life of me get this to work on my home computer. I have tried numerous different things and have tried using google to find out what to do but I don't seem to be able to find anything useful/anything that works.
I understand that i have to have a webserver on my computer in order to run asp.net pages, so i downloaded Apache onto my laptop (running vista) and i can't seem to get it to work. I tried copying my asp.net file to a directory in apache called "htdocs" . When i ran http://localhost/myfilename.aspx it rendered any html that i had typed and the title on the page but none of the asp.net code. I thought this might be because i didnt have the framework so i installed the latest version but it still doesn't work!
The problem i'm having is that all my practical and lecture notes are telling me to copy my asp.net file into a "wwwroot" directory and i either don't seem to have it or i can't find it.
I have also tried using a program called asp.net web matrix but thats not really what i'm after.
I have a desktop PC running windows xp if that would be easier to use and both my laptop and desktop both have the latest versions of the asp.net framework installed.
At this stage i am not using any sort of complicated code its very basic so it's not the code thats wrong.
So if someone could possibly run me through what i have to do to make this work i would be very grateful. If you need me to provide any more information i can do.
Ragards
Phil
On one of my university modules we have just started doing ASP.net and I can't for the life of me get this to work on my home computer. I have tried numerous different things and have tried using google to find out what to do but I don't seem to be able to find anything useful/anything that works.
I understand that i have to have a webserver on my computer in order to run asp.net pages, so i downloaded Apache onto my laptop (running vista) and i can't seem to get it to work. I tried copying my asp.net file to a directory in apache called "htdocs" . When i ran http://localhost/myfilename.aspx it rendered any html that i had typed and the title on the page but none of the asp.net code. I thought this might be because i didnt have the framework so i installed the latest version but it still doesn't work!
The problem i'm having is that all my practical and lecture notes are telling me to copy my asp.net file into a "wwwroot" directory and i either don't seem to have it or i can't find it.
I have also tried using a program called asp.net web matrix but thats not really what i'm after.
I have a desktop PC running windows xp if that would be easier to use and both my laptop and desktop both have the latest versions of the asp.net framework installed.
At this stage i am not using any sort of complicated code its very basic so it's not the code thats wrong.
So if someone could possibly run me through what i have to do to make this work i would be very grateful. If you need me to provide any more information i can do.
Ragards
Phil
Phil999 said:
I understand that i have to have a webserver on my computer in order to run asp.net pages, so i downloaded Apache onto my laptop (running vista) and i can't seem to get it to work. I tried copying my asp.net file to a directory in apache called "htdocs" . When i ran http://localhost/myfilename.aspx it rendered any html that i had typed and the title on the page but none of the asp.net code. I thought this might be because i didnt have the framework so i installed the latest version but it still doesn't work!
Could be wrong, but I don't think Apache supports asp.net. You need to install / enable IIS - shouldn't be a problem with XP Pro but will be if it's XP Home, the Vista box might not be so easy depending on what edition it is.Apache doesn't support ASP.net right out of the box, and getting it working is an arseache.
If you're looking for the easy way to start working with ASP.net, this may contain what you're looking for:
http://www.microsoft.com/express/vwd/Default.aspx
If you're looking for the easy way to start working with ASP.net, this may contain what you're looking for:
http://www.microsoft.com/express/vwd/Default.aspx
Phil999 said:
Hi all,
On one of my university modules we have just started doing ASP.net and I can't for the life of me get this to work on my home computer. I have tried numerous different things and have tried using google to find out what to do but I don't seem to be able to find anything useful/anything that works.
I understand that i have to have a webserver on my computer in order to run asp.net pages, so i downloaded Apache onto my laptop (running vista) and i can't seem to get it to work. I tried copying my asp.net file to a directory in apache called "htdocs" . When i ran http://localhost/myfilename.aspx it rendered any html that i had typed and the title on the page but none of the asp.net code. I thought this might be because i didnt have the framework so i installed the latest version but it still doesn't work!
The problem i'm having is that all my practical and lecture notes are telling me to copy my asp.net file into a "wwwroot" directory and i either don't seem to have it or i can't find it.
I have also tried using a program called asp.net web matrix but thats not really what i'm after.
I have a desktop PC running windows xp if that would be easier to use and both my laptop and desktop both have the latest versions of the asp.net framework installed.
At this stage i am not using any sort of complicated code its very basic so it's not the code thats wrong.
So if someone could possibly run me through what i have to do to make this work i would be very grateful. If you need me to provide any more information i can do.
Ragards
Phil
I don't think asp, and apache work together.On one of my university modules we have just started doing ASP.net and I can't for the life of me get this to work on my home computer. I have tried numerous different things and have tried using google to find out what to do but I don't seem to be able to find anything useful/anything that works.
I understand that i have to have a webserver on my computer in order to run asp.net pages, so i downloaded Apache onto my laptop (running vista) and i can't seem to get it to work. I tried copying my asp.net file to a directory in apache called "htdocs" . When i ran http://localhost/myfilename.aspx it rendered any html that i had typed and the title on the page but none of the asp.net code. I thought this might be because i didnt have the framework so i installed the latest version but it still doesn't work!
The problem i'm having is that all my practical and lecture notes are telling me to copy my asp.net file into a "wwwroot" directory and i either don't seem to have it or i can't find it.
I have also tried using a program called asp.net web matrix but thats not really what i'm after.
I have a desktop PC running windows xp if that would be easier to use and both my laptop and desktop both have the latest versions of the asp.net framework installed.
At this stage i am not using any sort of complicated code its very basic so it's not the code thats wrong.
So if someone could possibly run me through what i have to do to make this work i would be very grateful. If you need me to provide any more information i can do.
Ragards
Phil
If you have vista, there is every chance that it comes with IIS7.
Control Panel - Programs and features - Turn windows features on and off.....
If you have it, it's in the list.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff