Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 2nd, 2009, 10:01 AM
Authorized User
 
Join Date: Oct 2009
Posts: 31
Thanks: 11
Thanked 0 Times in 0 Posts
Default Hosting ASP website

Hi Imar...

After completing working out this book, i have created a website which i have to host now...

The website has got databases, global.asax, videos, pictures and text files...

I have got domain name and all...

How should i proceed to host my site on net economically...
Plz give me a general idea...

Thanking you in advance...
Reply With Quote
  #2 (permalink)  
Old December 2nd, 2009, 01:34 PM
Authorized User
 
Join Date: Oct 2008
Location: , , .
Posts: 23
Thanks: 0
Thanked 1 Time in 1 Post
Default

You need to find a window server with .NET framework 3.5 (if you following the book) to host your website with backend MS SQL server (assuming you are using MS SQL server). You can still host your website with .NET Framework 2.0, however some features might not working properly, forexample you can not use LINQ to connect to your database and AJAX won't work on 2.0 as well.

You can host it yourself, but my personal opinion, if you just have 1 site, find some else to host it for you, save yourself some headache to keep the server updated witl all the security measures:)
Reply With Quote
The Following User Says Thank You to melania For This Useful Post:
varunbwj (December 3rd, 2009)
  #3 (permalink)  
Old December 2nd, 2009, 01:39 PM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi varunbwj,

In addition to what melania said, you may also want to take a look here:

http://www.asp.net/(S(sf10gzjodvrpce...ial-01-cs.aspx


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!
Reply With Quote
The Following User Says Thank You to Imar For This Useful Post:
varunbwj (December 3rd, 2009)
  #4 (permalink)  
Old December 2nd, 2009, 04:40 PM
Friend of Wrox
 
Join Date: Feb 2009
Posts: 194
Thanks: 5
Thanked 3 Times in 3 Posts
Default

I use this company to host websites that require .NET technologies , they have good 24hour support and an uptime guarantee.

This isn't intended as advertising so message me privately if you want some more information regarding this.
Reply With Quote
The Following User Says Thank You to Will For This Useful Post:
varunbwj (December 3rd, 2009)
  #5 (permalink)  
Old December 3rd, 2009, 01:23 AM
Authorized User
 
Join Date: Oct 2009
Posts: 31
Thanks: 11
Thanked 0 Times in 0 Posts
Default ASP website Hosting

Thanks a lot Melania, Imar and Will....

I ll study all the info and links you have sent me....
Thanks a lot for helping me out...

Thanks again....
Reply With Quote
  #6 (permalink)  
Old January 21st, 2010, 08:53 PM
Registered User
 
Join Date: Feb 2009
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default Hosting In a Virtual Directory

I have taken the final step for this book and uploaded my site to a virtual directory with my hosting company.

The problem is that my url displays the virtual directory folder name.
example:
www.mywebdesigncompany.com/foldername/default.aspx

When I place my site in the root hosting folder it displays fine.
example:
www.mywebdesigncompany.com/default.aspx

The hosting company believes that I have scripted my site to show the folder name.
My question, is it possible that I have somehow included code to do that or have I possibly used improper paths for the root?

Thanks,
tompatamcat
Reply With Quote
  #7 (permalink)  
Old January 22nd, 2010, 04:13 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I am not sure I see what the problem is. When you upload files to a Virtual Directory, that Virtual Directory is in your path. If you upload files to the root, the end up in the root. So, what you're describing seems to make perfect sense to me.

What were you expecting instead?

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!
Reply With Quote
  #8 (permalink)  
Old January 22nd, 2010, 09:55 AM
Registered User
 
Join Date: Feb 2009
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar,

Thanks for your wonderful book!

I was expecting my previous experience where the domain I have mapped to the virtual directory folder does include the folder name.

I uploaded another site to the same virtual directory and the directory folder name was not in the url.

To test it further, I uploaded the book final source code.
The directory folder name was again visible in the url.

Right now I am changing all my "~/" paths to "/" and will test it that way.
I'll let you know if it makes any difference.

Thanks,
tompatamcat
Reply With Quote
  #9 (permalink)  
Old January 22nd, 2010, 10:13 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Quote:
Right now I am changing all my "~/" paths to "/" and will test it that way.
You shouldn't have to do that. ~/ refers to the *application root*. So, if you access your site like this:

www.domainname.com

and have a folder called Images, then

~/Images/SomeImage.gif refers to www.domainname.com/Images/SomeImage.gif

If you setup IIS with a virtual directoy, called App1 for example, then:

~/Images/SomeImage.gif

ends up as www.domainname.com/App1/Images/SomeImage.gif

The ~ syntax is designed specifically to avoid these kind of issues when switching between a root-based and a VD based application.

To set up your site without a VD, point the root of the web site in IIS to your application's root folder (e.g. the one containing web.config). Don't create a new Virtual Directory in IIS, and don't point the IIS root to a folder above your web site's root.

Hope this helps,

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!
Reply With Quote
  #10 (permalink)  
Old January 23rd, 2010, 10:13 AM
Registered User
 
Join Date: Feb 2009
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Imar,

The following did not make any difference.

"Right now I am changing all my "~/" paths to "/" and will test it that way."

I'm going to stick with root based hosting.

Thanks for you time,
tompatamcat
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net hosting error compad ASP.NET 2.0 Professional 0 September 16th, 2008 03:25 AM
free asp hosting aprnip Classic ASP Databases 2 September 6th, 2004 01:23 AM



All times are GMT -4. The time now is 07:28 PM.


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