DotNetNuke - Invalid URI: The hostname could not be parsed error
Generally, I would like to blog post any errors that I face duing development. So that it would be helpful to me for my future reference in case I face it again as well as for the sake of any blog readers who may face same error.
Talking about the error "Invalid URI: The hostname could not be parsed error": This the same and common error I faced previously some times back and which I also stated in my blog entry DotNetNuke - Invalid URI: The hostname could not be parsed
This time I was about to run a DNN application which is configured from my local server to live application server when I faced the same error. I tried the same work-a-round which I stated in my previous blog entry. But, this time that didn't work even after investing some hrs investigation. I noticed that portal alias was not getting changed in the url when running the application. So, I tried to change the database name (in web.config connectionstring) to some arbitrary (i dont know why!!) names and ran the applicaiton again. Obviously, this will give sql server related error, as it would not found that catalog in sql server. After running the application once with wrong database name, I again changed the database name in connection string to correct name and recycled the application pool. Great!! This time it worked any anyhow. (again, I dont know, Why!!)