Learn More





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 StartedNew to DNN Plat...New to DNN Plat...Run DotNetNuke Website on local machine using localhost.Run DotNetNuke Website on local machine using localhost.
New Post
5/19/2010 5:30 PM

I have a dotnetnuke website hosted using godaddy. The website was not created by me and I am new to dotnetnuke. I downloaded all the files with the database "datafile.bak" from the hosting site.

The rootname was like "filemain"

I wanted to run the website on my computer using a command like "http://localhost/filemain"

I did the following:

I made a new database and then restored it using the backup database file and changed the web config with the path to this database.
Also made a virtual directory "DOTNETNUKE" and assigned the physical path to the location "C:\filemain".

In the browser when I insert url "http://localhost/DotNetNuke/Default.aspx"

It gives the following error:


The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

A name was started with an invalid character. Error processing resource 'http://localhost/DotNetNuke/Default.aspx'. Line 1...

<%@ Page Language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.Framework.DefaultPage" CodeFile="Defa...


Please help with this error or kindly guide me on how to proceed to get a live website to run on local machine using localhost.
New Post
5/20/2010 10:29 AM
If you want the URL to be the same, the virtual directory should be setup using the extension you like.

Based on the XML rendering of the page, you must also make sure that ASP.NET is installed on your machine before you start.

-Mitchel Sellers
Microsoft C# MVP, MCITP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit for my mostly DNN Blog and support forum.

Visit for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
New Post
5/20/2010 11:50 AM
I do that all the time. Did you change the contents of the PortalAlias table to the HTTPAlias you are using?
New Post
5/20/2010 5:44 PM
Thank you very much for the replies.

I have a new problem and I am stuck at this one.

I have setup the virtual directory on my machine which has windows xp with iis 5. When I use the "localhost/Directory/Default.aspx" it loads the page. Directory is name of the virtual diectory.

On Default.aspx all the further tabs work but the Links do not redirect properly. Example if I want to navigate to "LinkClick.aspx".

I am redirected to "http://localhost/LinkClick.aspx?link=92&tabid=52" and it should have been "http://localhost/Directory/LinkClick.aspx?link=92&tabid=52".

Also I have to access the website only using the default.aspx page http://localhost/Directory/Default.aspx but if I use only http://localhost/Directory it gives an error
the website declined to show this page http 403.

My main problem is that on the default page the links are not using the directory but rather taking path as http://localhost/LinkClick.aspx?link=92&tabid=52".
I know it should be http://localhost/Directory/LinkClick.aspx?link=92&tabid=52".

How to tell the application to navigate internally only thru the virtual directory that is "Directory"?

I know the website works fine since it is online.

I think it is not accessing the links thru the virtual directory.

Please help. I really need it.
New Post
5/21/2010 10:18 AM
In the PortalAlais table did you set HTTPAlias to localhost/Directory? If not, give that a try. If the links are referring to are in an HTML module, then you will have to edit the HTML module and change them. I have this problem when I move a production site to my development server. Tthe links in my HTML modules are always inserted as absolute URLs instead of relative URLs.
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Run DotNetNuke Website on local machine using localhost.Run DotNetNuke Website on local machine using localhost.

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?