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 ...Invalid URI: The hostname could not be parsedInvalid URI: The hostname could not be parsed
Previous
 
Next
New Post
7/31/2007 5:28 PM
 

Hi,

I'm trying to set up a DotNetNuke portal for my company, and having some issues.

I downloaded two things from someone else - a folder called DNN (which contains many folders and files including  web.config - I guess it's the equivalent of the dotnetnuke folder you could make) and a .bak file. I've tried to set up DotNetNuke, but can't get it to work.

I put a .mdf file and a .log file in the App_Data folder (so the folder path is C:\Websites\DNN\App_Data). I also have a database in SQL called DNN, and set up a Virtual Directory.

Now in web.config I can't get it to recognize the right database. Here is some of my code:

  <connectionStrings>
    <!-- Connection String for SQL Server 2005 Express -->
    <add
      name="SiteSqlServer"
      connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True; AttachDBFilename=|DataDirectory|DNN.mdf;"
      providerName="System.Data.SqlClient" />
    <!-- Connection String for SQL Server 2000/2005
    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
      providerName="System.Data.SqlClient" />
   -->
  </connectionStrings>

But I keep getting the following error message when I go to http://localhost/dnn - help please!

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UriFormatException: Invalid URI: The hostname could not be parsed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[UriFormatException: Invalid URI: The hostname could not be parsed.]
   System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +1647210
   System.Uri.CreateUri(Uri baseUri, String relativeUri, Boolean dontEscape) +31
   System.Uri..ctor(Uri baseUri, String relativeUri) +34
   System.Web.HttpResponse.ConvertToFullyQualifiedRedirectUrlIfRequired(String url) +289
   System.Web.HttpResponse.Redirect(String url, Boolean endResponse) +115
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +5737
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

Server Error in '/Dnn' Application.

Invalid URI: The hostname could not be parsed.

 

 
New Post
8/1/2007 3:58 AM
 

What are you trying to do? Take a copy of an existing installation and replicate it, or create a new installation?

If a copy, look at this post and the associated blog - http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/threadid/105609/scope/posts/Default.aspx

If a new installation, you need to download the install files from here - http://www.dotnetnuke.com/tabid/125/default.aspx

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
8/1/2007 11:36 AM
 

Ok I'm trying to take an existing database and use it to launch the site and modify it. So the portal already exists, if that makes sense. 

I have a database in SQL Express called DNN. This takes its files from the location C:\dnndb.
Then I have my Virtual Directory called DNN. This takes its files from the location C:\Websites\DNN.

I think the big issue I'm having it getting my virtual directory code (ie. web.config) to recognize and use the database. I currently have these two lines:
connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True; AttachDBFilename=C:\dnndb\DNN_Data.mdf;"
<add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True; AttachDBFilename=C:\dnndb\DNN_Data.mdf;"/>

But I get this error:

DotNetNuke Upgrade Error

The Assembly Version ( [ASSEMBLYVERSION] ) does not match the Database Version ( [DATABASEVERSION] )

ERROR: Could not connect to database.

Unable to open the physical file "C:\dnndb\DNN_Data.mdf". Operating system error 5: "5(Access is denied.)". An attempt to attach an auto-named database for file C:\dnndb\DNN_Data.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

 
New Post
8/2/2007 3:51 AM
 

Looks like yolu've moved on from the orginal error. I'm not too good on SQL Express. My guess is that the userid that is running your web service (I think Network Service), does not have access to your database. You've specified integrated security, so I believe you'd need to logon to the database using managament studio and set the appropriate permissions on the database.

In theory all you need to do for copying DNN is:-

  • Add the appropriate web url (alias) you are going to use to the orginal site
  • Copy all the files
  • Backup the database
  • Restore database to new server
  • Put all files on new server and modify web.config to point to new server database
  • Give the appropriate user access to the database
  • Off you go.

Something you may wish to consider is setting up DNN from a standard install package. That way you know whether you have set permissions right, etc, and what the structure should look like on your environment. The install wizard will check your database permissions for you. Then you can use this knowledge to setup your copied version correctly.

Cheers
Roger


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Invalid URI: The hostname could not be parsedInvalid URI: The hostname could not be parsed


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