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.