I'm installing my first DNN site on a web server using DNN 4.0.2. The server is running Windows 2003 and I'm connecting to a SQL2005 database. When I view the public site, everything looks OK. But when I log in as Host or Admin, I get the following error:
Could Not Load Container: bsite/Portals/_default/Containers/DNN-Blue/Text Header - White Background.ascx
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled error loading module. ---> System.Web.HttpException: The file '/Website/Portals/_default/Skins/DNN-Blue/~bsite/Portals/_default/Containers/DNN-Blue/Text Header - White Background.ascx' does not exist. at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.Skins.Skin.LoadContainer(String ContainerPath, Control objPane) --- End of inner exception stack trace ---
If I go to the Settings page and try to change the skin and/or container, I get the following error:
Error: Host Settings is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot insert the value NULL into column 'SkinID', table 'SQL2005_208602_dotnetnuke.dbo.dnn_Skins'; column does not allow nulls. INSERT fails. The statement has been terminated. ---> System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'SkinID', table 'SQL2005_208602_dotnetnuke.dbo.dnn_Skins'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteScalar() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Data.SqlDataProvider.AddSkin(String SkinRoot, Int32 PortalId, Int32 SkinType, String SkinSrc) at DotNetNuke.UI.Skins.SkinController.SetSkin(String SkinRoot, Int32 PortalId, SkinType SkinType, String SkinSrc) at DotNetNuke.Modules.Admin.Host.HostSettingsModule.cmdUpdate_Click(Object sender, EventArgs e) in E:\web\awacorg0000\htdocs\Website\admin\Host\HostSettings.ascx.vb:line 556 --- End of inner exception stack trace ---
I'm thinking there's either a bug or (more likely) some painfully obvious setting or configuration file that I've overlooked. Can any of you more experienced users point me in the right direction?