Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2011, 07:36 AM
Authorized User
 
Join Date: Nov 2010
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default Web Hosting Issue

Hi Imar
Is it possible to use my home laptop as the host to publish my websites?
If yes, then what hardware and software I required to install into my laptop?
If no, then what are the different options I have to publish my Site?
Please help and suggest as you always do.
Many thanks.
Sharif
 
Old December 5th, 2011, 11:56 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

In theory you could, as all it requires to host a site is a Windows machine running .NET and IIS, which means Windows XP and up.

In reality, you probably want to use a remote host though. Your laptop won't be online 24/7, and thus your site won't be accessible. For more info about deployment, check out Chapter 19 of my book Beginning ASP.NET 4. In addition, take a look here for hosting companies: http://www.microsoft.com/web/hosting/home

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 6th, 2011, 06:35 AM
Authorized User
 
Join Date: Nov 2010
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default Web Hosting Issue‏

Hi Imar
Thank you so much for your valuable information and the link to hosting companies.
You’ve mentioned that to host a web I just need a machine with Windows running, .Net and IIS. My home laptop has Windows Vista Business, .Net and IIS installed. I have deployed my website by following the Chapter 18 of your book Beginning ASP.NET 3.5. So it works fine in my laptop. If I type ‘http://localhost/' in Internet Explorer, it loads fine. However, when I use my other laptop that is also on the same network and type the address 'http://localhost/', it can't find the page. That means it doesn't work. Is there anything needs to be configured in my first laptop so that I can see the website from my second laptop? Secondly, can I give the web address name something similar to 'http://www.PlanetWrox.com'?
Your any help is highly appreciated.
Thanks again
Sharif
 
Old December 6th, 2011, 06:54 AM
awebdesk
Guest
 
Posts: n/a
Thumbs up Learn ASP

Get the best learning tips and ASP .net practices by bringing excellent notes for php like wrox
 
Old December 7th, 2011, 07:32 AM
Authorized User
 
Join Date: Nov 2010
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by awebdesk View Post
Get the best learning tips and ASP .net practices by bringing excellent notes for php like wrox
Hi
Many thanks for responding my message. However, I am not sure how your answer correlates to my question. Could you please be as specific as possible? Thank you.
 
Old December 7th, 2011, 01:27 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
However, I am not sure how your answer correlates to my question.
I think that message was a spam attempt, so you can safe;y ignore it.

Quote:
and type the address 'http://localhost/', it can't find the page. That means it doesn't work.
Well, it *does* work, but differerent from what you expect. localhost always points to the local machine. So if you try that on a different machine, it would look for a web site in that specific machine, not yours. Try http://machinename instead where machinename refers to the name of your laptop that runs the web site.

Quote:
Secondly, can I give the web address name something similar to 'http://www.PlanetWrox.com'?
Yes, but it's not that easy, and one can wonder if it's worth the trouble for a site that's not online most of the time. If you want to continue (which I would not recommend), do something like this:

1. Make sure your network has a fixed IP. Your ISP needs to support that
2. Register a domain name and configure it to point your IP from 1.
3. Open up the firewall to allow http traffic and set up the site to listen to the domain name from 2.
4. Optionally, if you have things like a broadband router, forward incoming traffic on port 80 to the local ip of your laptop on port 80.

All in all, not that easy, and I can't help you with it over forum posts. You'll need to do some digging and googling yourself. But again, I would recommend hosting the site at a professional hosting company.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
shariful (December 8th, 2011)
 
Old December 8th, 2011, 09:17 AM
Authorized User
 
Join Date: Nov 2010
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
I think that message was a spam attempt, so you can safe;y ignore it.

Well, it *does* work, but differerent from what you expect. localhost always points to the local machine. So if you try that on a different machine, it would look for a web site in that specific machine, not yours. Try http://machinename instead where machinename refers to the name of your laptop that runs the web site.

Yes, but it's not that easy, and one can wonder if it's worth the trouble for a site that's not online most of the time. If you want to continue (which I would not recommend), do something like this:

1. Make sure your network has a fixed IP. Your ISP needs to support that
2. Register a domain name and configure it to point your IP from 1.
3. Open up the firewall to allow http traffic and set up the site to listen to the domain name from 2.
4. Optionally, if you have things like a broadband router, forward incoming traffic on port 80 to the local ip of your laptop on port 80.

All in all, not that easy, and I can't help you with it over forum posts. You'll need to do some digging and googling yourself. But again, I would recommend hosting the site at a professional hosting company.

Cheers,

Imar
Hi Imar
Thank you so much for taking your time to explain the hosting issue. At least I know now that it's not as easy as I thought before. Although you gave me the link of some hosting companies; would you please recommend just one company that is very good in web hosting?
Thanks again
Sharif
 
Old December 8th, 2011, 09:46 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
would you please recommend just one company that is very good in web hosting?
I can't really, as I hardly use them. In the past I have worked with Brinkster and a few others. Right now, some of my sites run at Orcsweb. Whether they are "very good" depends on your requirements and budget.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old December 8th, 2011, 12:52 PM
Authorized User
 
Join Date: Nov 2010
Posts: 13
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Imar View Post
I can't really, as I hardly use them. In the past I have worked with Brinkster and a few others. Right now, some of my sites run at Orcsweb. Whether they are "very good" depends on your requirements and budget.

Cheers,

Imar
Thank you Imar for your recommendations.
Sharif
 
Old December 16th, 2011, 07:57 AM
Registered User
 
Join Date: Dec 2011
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default

"I researched your site further for ways to speed up the site. I have uploaded a custom php.ini file to your hosting package and configured your site to create its sessions on your hosting package’s htdocs/tmp folder to allow it process your database queries more efficiently. When I researched your website’s source code, I found that it was making calls to no fewer than 10 external .CSS file and no fewer than 10 external .JS files. This causes latency opening the site because the browser must download and process all 20 of those files before it even begins to render your site. In order to allow your site run more quickly you’ll want to combine those into one Cascading Style Sheet and one external Javascript. Most of those external files were probably added as a result of Joomla plugins on your site."





Similar Threads
Thread Thread Starter Forum Replies Last Post
Your web hosting provider? 0zas ASP.NET 4 General Discussion 0 August 25th, 2010 04:30 AM
web hosting asp to go ASP.NET 3.5 Basics 0 March 21st, 2008 02:38 PM
WEB HOSTING SITES? hunzian78@yahoo.com ASP.NET 1.0 and 1.1 Professional 0 June 21st, 2006 06:13 AM
Web Hosting gokul_blr Classic ASP Databases 2 January 23rd, 2006 03:59 PM
Web Hosting dipesh .NET Web Services 0 September 8th, 2003 03:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.