I missed this earlier question in this thread:
Quote:
quote:
1. Can you run multiple apps in a single domain on a shared server, or is TBH the only site you can run?
|
Answer: yes and no. The built-in forms authentication only works on a one-per application basis. The word "application" means "IIS Application", which can be either the root or a virtual directory marked as an application. This is also true of the cache, session state, etc. With a cheap shared hosting site you're normally not allowed to create new virtual directories, and your app runs in the virtual root. That is the way mine is running. You can create new regular folders, though.
The good news is that it is possible to run more that one logical web application in this environment
if you are willing to let them share one repository of users, and the same cache, session state, etc. Your first thought may be "that would be a bad idea - I want separation", and that separation is possible if you roll your own common authentication code (instead of the built-in code), and you could track users by the domain they request. The key here is that you almost certainly want to register separate domain names for each logical site, and map them all to different folders on the one real site. And since each domain that a user is requesting is available as part of the request, that lets you distinguish the users. Cache and session variable names should have a prefix that defines the logical site, such as TBH.
So it is possible to have several different domains pointing to different folders (not virtual directories) of one shared hosting account. But you'll have to roll up your sleeves to write the authentication code. Users would be none the wiser and they would be totally separate from users of other domains being served by the same hosting account.
Setting up the connection string is discussed in the readme, and the only thing you need to do is migrate the DB to the remote DB server. I always recommend the Database Publication Wizard for that, which is a free download from msdn. That also comes with VS 2008. This wizard did not exist when the book was written. It's basically a friendly front-end to the SSIS program. I have a sticky message in this forum that explains this tool.
Eric