Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Newb, just wondering about Virtual DirectoryNewb, just wondering about Virtual Directory
Previous
 
Next
New Post
8/22/2006 10:40 AM
 

Whats up all,
  I am a Newb to dotnetnuke and am going through the install right now...Just wondering, is there a reason why I need to set the dotnetnuke site to a virtual directory and not just make it the default website?

Thanks!

 
New Post
8/31/2006 1:21 PM
 
I'm also a newb, but I think I can answer this question - because it doesn't work if you don't.  I tried everything I could think of or find in the forums to get it to work on the website level, but no matter what I tried the installation would get to the part where it creates the portal and blows up with the "Object reference not set to an instance of an object" error.  Every time, no matter what.

As for why it does that, I have no idea.  I am personally finding it annoying - I'm wondering how a website like dotnetnuke.com manages to direct their name www.dotnetnuke.com to their DNN homepage with any success.  If anyone posts a reply to this, I'm curious how that is supposed to be set up.  I'm also curious if I can apply different domains (i.e. www.abc.com and www.xyz.com) to different portals on the same DNN installation or if I need to separate them out.

So an answer that's not really an answer, but avoid the pain and just use the virtual directory.
 
New Post
9/1/2006 9:49 AM
 
mschwaiger:

Well, I have to say that your statement about DNN not working if not in a virtual directory is not necessarily true. Based on what you are saying I’m assuming you are setting up DNN on Windows XP or 2000 Professional. You need to understand and differentiate the roles of the physical directory on disk, the IIS virtual directory, the host headers for the sites, the alias for the sites within DNN, and even the DNS resolution to get to the site. This causes a lot of confusion at the beginning because there are different ways to do it and depending how your setup is done is what you enter in the URL for the browser to connect. I for instance have multiple versions of DNN running on my laptop (and server) installed on different physical directories and accessing different databases. Some of these DNN installations host only one site, others host multiple ones, each with its own domain that is totally independent from the others. Also, realize that IIS on Win XP or 2000 Pro do not support multiple, separate Web sites like the server versions of IIS do. In other words, when you run the IIS Admin tool, you can not say RClick, New, Web Site, you only get the option to create a new Virtual Directory.

You would need to provide more details about your configuration, DNN version, etc. for others to be able to help you with the Object Reference error or more specific recommendations about your specific problems.

Carlos
 
New Post
9/1/2006 2:34 PM
 

Hi guys -

To: Wolverine10 - sure, you can set DNN up in the website root (which is what I did).   I just find it easier which is why I did..........

 

To Mscgwaiger - When you use the source code, you unzip it to a directory....let's say c:\website\DNN.    Now to access that directory as a web address, you need a virtual directory.  Lets call the localhost by the name of server1.  If you created a virual directory (we will call the virtual directory DNN) and accessed that site via localhost then you would use the url http://localhost/DNN and if you accessed it with the server name, it would be http://server1/DNN  (localhost would not be accessible to any other computer NOT localhost).  You would NOT be able to access it from the website root Inetpub\wwwroot using Inetpub\wwwroot\DNN because the directory Inetpub\wwwroot\DNN doesn't exist.  The directory webiste\DNN does.....you would not be able to navigate the file structure outside the website root which is why you created the virtual directory under the website root - (I hope I explained that right!)


Shadow
 
New Post
9/1/2006 5:24 PM
 
Shadow,
Thanks for the response, but I don't think we're talking about the same thing.  Here's the thing, and I'll use your same example.  I have http://server1/DNN with my portal running.  Ok, fine.  But lets assume I have a domain name ABC.com, and I want to use DNN as my primary website.  So I point www.abc.com to the IP of server1.  Now somebody outside browses to www.abc.com and they get.... nothing, because they needed to browse to www.abc.com/DNN where the portal is.  Clearly this doesn't work, because nobody looking for my website is going to think to add the /DNN.  See my problem?  I need http://www.abc.com to direct to http://server1/DNN.  OR I need to install DNN as a website instead of a virtual directory, which I simply cannot seem to get working on my web server.  Did you follow all of the same installation steps except exchanged 'website' for 'virtual directory'?
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Newb, just wondering about Virtual DirectoryNewb, just wondering about Virtual Directory


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out