DotNetNuke - Invalid URI: The hostname could not be parsed

I was having few hours of work-a-round when I was trying to Set-up/Deploy the DotNetNuke Environment at my local pc.
I restore the DB Backup of DNN, copied the source at my local pc drive and configured the Virtual Directory for the application.
I also made the changes in Web.Config file; that is Connection String related changes.

As we have to specify the Portal Alias in PortalAlias Table in DBB DataBase, I defined it as localhost/dnnapp (you need to make sure that this would be the first PortalAlias entry, like localhost/dnnapp; and Do not add the http:// part.

After all these settings, I hopefully tried to access the application with "http://localhost/dnnapp" URL; but I got one (it seemed to me a common error) error, "Invalid URI: The hostname could not be parsed". I again checked my DataBase Settings (UserID, pwd, PortalAlias etc.) , Web.Config Settings; but didn't get any success; except some variation in error message; that is "Page cannot be displayed". But the most common error I was having is of "Invalid URL:  The hostname could not be parsed" only. Lastly, I attempted to stop IIS and start it again, and it worked finally. I am not sure that this is the solution of this error message but it worked for me.

 

Comments

# DotNetNuke - Invalid URI: The hostname could not be parsed « KaushaL.NET

Pingback from  DotNetNuke - Invalid URI: The hostname could not be parsed « KaushaL.NET

# re: DotNetNuke - Invalid URI: The hostname could not be parsed

Thursday, July 24, 2008 4:52 PM by mikrope

when I start creating new sites, I start it up at my localhost.

Unfortunately, when I setup it up in production and link the domainname to it, the alias is localhost and on some modules that is a problem.

Now I found a solution by "tricking" the local DNS on my PC and refer the domainname of the site to localhost in my hosts file (windows/drivers/etc).

# Recent URLs tagged Hostname - Urlrecorder

Tuesday, December 02, 2008 2:16 PM by Recent URLs tagged Hostname - Urlrecorder

Pingback from  Recent URLs tagged Hostname - Urlrecorder

# DotNetNuke - Invalid URI: The hostname could not be parsed error

Monday, April 27, 2009 5:22 AM by KaushaL.NET

Generally, I would like to blog post any errors that I face duing development. So that it would be helpful

# DotNetNuke - Invalid URI: The hostname could not be parsed error « KaushaL.NET

Pingback from  DotNetNuke - Invalid URI: The hostname could not be parsed error «  KaushaL.NET