Im new to the DotNetNuke framework and even to the new Visual Web Developer 2005, SQL 2005 Express. Have been working with ASP.Net 1.1, C# in Visual Studio 2003, with the framework (CMS) EPiServer. Now we will give DotNetNUke a try!
This is the scenario:
- Visual Web Developer 2005 (have installed the DotNetNuke 4.3.4 Starter Kit)
- Created a new DotNetNuke framework project (File-new-...)
- Builded it.
- Preview the site with "View in browser"
- The installation process starts... http://localhost:3035/TJResor/some query for install
- The demo site is shown.
- I've developed a new skin to the site and viewed it with "View in browser" (wiht the ASP.NET Development Server, VWDS). Looks great!
No problem yet...
But here it comes, I want to show the site for X. VWDS does onley respond to 127.0.0.1, so I have to move to the IIS, still on the same machine (Win XP Pro, with ASP.NET 2.0, WORKING). I set up a Virtual directory http://localhost/TJResor to point out my website: C:\Inetpub\WebSites\TJResor. Making it to an applocation.
The DotNetNuke site respond at http://localhost/TJResor but with the error:
Error Installing DotNetNuke
Current Assembly Version: 04.03.04
ERROR: Could not connect to database specified in connectionString for SqlDataProvider
Okay, its a DB problem, since the default installation of DotNetNuke uses a SQL Server File, Database.mdf. I have SQLServer Express 2005 and SQL Server Management Studio Express installed. I know I have to do some attach of the DB-file, maybe rename the db from (C:\inetpub\websites\TJ.Re.......) to DotNetNuke (a simple name).
What do I have to do (have searched for info long time now)? Changes in web.config?
This is my current Web.confog (default):
<connectionStrings>
<!-- Connection String for SQL Server 2005 Express -->
<add
name="SiteSqlServer"
connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.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>
<
appSettings>
<!--
Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules -->
<
add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>
<!--
Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules
<add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>
-->
</
appSettings>
Why are there 2 active connectionStrings ? Are bouth of them used? Can I switch between viewing the website in VWDS, SQL-file or IIS, SQL Express 2005?
Thanks for your support and a great framework.
Sam B