Ok, this problem has really stumped me!
I created two instances of DotNetNuke 4.0.2 on my hard drive. (C:\DotNetNuke_vd and C:\DotNetNuke_ws) After extracting the files to there respective folders I set the file permissions for each folder to allow the ASPNET full access to each folder. I am using the Microsoft Windows 2000 Advanced Server operating system, IIS 5.1, and Microsoft SQL Server 2000.
Next, I went into IIS and created a virtual directory to the C:\DotNetNuke_vd\Website\ folder (http://localhost/dotnetnuke_vd). I also created a new web site to the C:\DotNetNuke_ws\Website\ folder (http://DotNetNuke_TST:81). I also set the default document for each site to Default.aspx. I then ensured that each site was set to use .NET v2.0 under the ASP.NET tab in IIS.
Next, I created two separate databases for each site instance respectively (DotNetNuke_vd and DotNetNuke_ws). After creating both databases I then created two separate users to access the databases respectively (dnnadmin_vd and dnnadmin_ws). After both usernames were created I then set the default database to the user names respectively. I then sent access to there respective databases and granted each user db_owner access to there respective databases.
Next, I went into each websites directory and renamed the Release.config to web.config. I then set the following settings for the virtual directory DotNetNuke web site:
<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=DotNetNuke_TST;Database=DotNetNuke_vd;uid=dnnadmin_vd;pwd=mypassword;" 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=DotNetNuke_TST;Database=DotNetNuke_vd;uid=dnnadmin_vd;pwd=mypassword;" />
<add key="InstallTemplate" value="DotNetNuke.install.config" />
<!-- Alternative Install Templates (included in package)
<add key="InstallTemplate" value="Club.install.config" />
<add key="InstallTemplate" value="Personal.install.config" />
<add key="InstallTemplate" value="SmallBusiness.install.config" />
-->
<add key="AutoUpgrade" value="true" />
<add key="InstallMemberRole" value="true" />
<add key="ShowMissingKeys" value="false" />
<add key="EnableWebFarmSupport" value="false" />
<add key="EnableCachePersistence" value="false" />
<add key="InstallationDate" value="3/14/2006" />
</appSettings>
Next, I did the same thing for the website version.
<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=DotNetNuke_TST;Database=DotNetNuke_ws;uid=dnnadmin_ws;pwd=mypassword;" 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=DotNetNuke_TST;Database=DotNetNuke_ws;uid=dnnadmin_ws;pwd=mypassword;" />
<add key="InstallTemplate" value="DotNetNuke.install.config" />
<!-- Alternative Install Templates (included in package)
<add key="InstallTemplate" value="Club.install.config" />
<add key="InstallTemplate" value="Personal.install.config" />
<add key="InstallTemplate" value="SmallBusiness.install.config" />
-->
<add key="AutoUpgrade" value="true" />
<add key="InstallMemberRole" value="true" />
<add key="ShowMissingKeys" value="false" />
<add key="EnableWebFarmSupport" value="false" />
<add key="EnableCachePersistence" value="false" />
<add key="InstallationDate" value="3/14/2006" />
</appSettings>
After setting all of this up I then navigated to http://DotNetNuke_TST:81 to install DotNetNuke. After that was installed I then installed the virtual directory version by navigating to http://localhost/DotNetNuke_vd/. Both versions installed just fine.
Now, since I had both versions installed I then navigated to both installations of DotNetNuke. Both displayed without any problems. I then went to logon as admin to each of the DotNetNuke sites. After logging on to http://localhost/DotNetNuke_vd/ I was able to see the admin toolbar at the top of the web page and I was also allowed access to the admin menu which allowed me to make site changes. Next, I logged on to http://DotNetNuke:81. After logging on the site I did not see the admin toolbar at the top of the web page and I did NOT see the admin menu.
For the life of me I can not understand why I was not given the admin menus in both cases after logging on as admin. To check into this problem even further I did a Beyond Compare on both directories only to find that the only real difference was the usernames, directory locations, and databases in the web.config file. I then ensured that the directory permissions were correct and the same. I then did a database comparison on DotNetNuke_vd and DotNetNuke_ws with my Red Gate SQL Data Compare and found that the only differences were GUIDs and dates. Can anyone explain to me why I am having this problem? I would really like to get this working but unfortunately I have been unable to go any further because of this problem. Please help me. I am sure other users are also having this problem as well. Any help would be appreciated.
Craig Holdheide