|
|
|
www.themann00.com Joined: 1/13/2006
Posts: 68
|
|
|
I'm getting the follwing error when trying to load my site for the first time on the same machine that is running the server and database.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30002: Type 'PortalSettings' is not defined.
Source Error:
|
Line 99: Dim strURL As String = ""
Line 100:
Line 101: objTab = objTabs.GetTabByName(Request.QueryString("TabName"), CType(HttpContext.Current.Items("PortalSettings"), PortalSettings).PortalId) Line 102: If Not objTab Is Nothing Then
Line 103:
|
Source File: D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb Line: 101
Show Detailed Compiler Output:
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832
C:\WINDOWS\SysWOW64\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\vbc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\2dcd8218\00e44a37_0e66c901\CountryListBox.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\aa2e8357\00e44a37_0e66c901\DotNetNuke.Services.Syndication.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\a08eb7f7\00e44a37_0e66c901\DotNetNuke.SqlDataProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\3f0832f7\00e44a37_0e66c901\DotNetNuke.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\b0e0a9ee\00d6247b_cef0c801\DotNetNuke.WebControls.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\1d57088b\00e44a37_0e66c901\DotNetNuke.HttpModules.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\89b3cd9c\0050a39a_8008c901\DotNetNuke.FckHtmlEditorProvider.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\bb3a6b4b\0082169b_5d3bc801\Microsoft.ApplicationBlocks.Data.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\f213d57e\0082169b_5d3bc801\System.Web.Extensions.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\1bd99178\00d6247b_cef0c801\DotNetNuke.WebUtility.DLL" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\assembly\dl3\27526de9\0082169b_5d3bc801\SharpZipLib.DLL" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.dll" /debug- /win32resource:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\a_m87txc.res" /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.8.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.6.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.3.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.2.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.1.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.0.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.7.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.5.vb" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a61f5889\e3dae2ed\App_Web_a_m87txc.4.vb"
Microsoft (R) Visual Basic Compiler version 8.0.50727.832
for Microsoft (R) .NET Framework version 2.0.50727.832
Copyright (c) Microsoft Corporation. All rights reserved.
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx(26) : warning BC40004: withEvents variable 'form' conflicts with property 'form' in the base class 'Page' and should be declared 'Shadows'.
Protected WithEvents form As Global.DotNetNuke.Common.Controls.form
~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(101) : error BC30002: Type 'PortalSettings' is not defined.
objTab = objTabs.GetTabByName(Request.QueryString("TabName"), CType(HttpContext.Current.Items("PortalSettings"), PortalSettings).PortalId)
~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(116) : error BC30451: Name 'NavigateURL' is not declared.
Response.Redirect(NavigateURL(objTab.TabID, Null.NullString, params), True)
~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(116) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
Response.Redirect(NavigateURL(objTab.TabID, Null.NullString, params), True)
~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(138) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
If PortalSettings.ActiveTab.PageHeadText <> Null.NullString Then
~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(288) : warning BC40000: 'Public ReadOnly Property HostSettings() As System.Collections.Hashtable' is obsolete: 'Replaced in DotNetNuke 5.0 by Host.GetHostSettingDictionary'
If Convert.ToString(Common.Globals.HostSettings("SiteLogStorage")) <> "" Then
~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(289) : warning BC40000: 'Public ReadOnly Property HostSettings() As System.Collections.Hashtable' is obsolete: 'Replaced in DotNetNuke 5.0 by Host.GetHostSettingDictionary'
strSiteLogStorage = Convert.ToString(Common.Globals.HostSettings("SiteLogStorage"))
~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(292) : warning BC40000: 'Public ReadOnly Property HostSettings() As System.Collections.Hashtable' is obsolete: 'Replaced in DotNetNuke 5.0 by Host.GetHostSettingDictionary'
If Convert.ToString(Common.Globals.HostSettings("SiteLogBuffer")) <> "" Then
~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(293) : warning BC40000: 'Public ReadOnly Property HostSettings() As System.Collections.Hashtable' is obsolete: 'Replaced in DotNetNuke 5.0 by Host.GetHostSettingDictionary'
intSiteLogBuffer = Integer.Parse(Convert.ToString(Common.Globals.HostSettings("SiteLogBuffer")))
~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(299) : error BC30002: Type 'UserInfo' is not defined.
Dim objUserInfo As UserInfo = UserController.GetCurrentUserInfo
~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(317) : error BC30451: Name 'CreateValidID' is not declared.
ID = CreateValidID(Common.Globals.HostPath)
~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(321) : error BC30451: Name 'CreateValidID' is not declared.
ID = CreateValidID(PortalSettings.ActiveTab.SkinPath)
~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(328) : warning BC40000: 'Public ReadOnly Property PerformanceSetting() As Common.Globals.PerformanceSettings' is obsolete: 'Replaced in DotNetNuke 5.0 by Host.PerformanceSetting'
If Not Common.Globals.PerformanceSetting = Common.Globals.PerformanceSettings.NoCaching Then
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(337) : error BC30451: Name 'CreateValidID' is not declared.
ID = CreateValidID(Replace(PortalSettings.ActiveTab.SkinSrc, ".ascx", ".css"))
~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(344) : warning BC40000: 'Public ReadOnly Property PerformanceSetting() As Common.Globals.PerformanceSettings' is obsolete: 'Replaced in DotNetNuke 5.0 by Host.PerformanceSetting'
If Not Common.Globals.PerformanceSetting = Common.Globals.PerformanceSettings.NoCaching Then
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(354) : error BC30451: Name 'CreateValidID' is not declared.
ID = CreateValidID(PortalSettings.HomeDirectory)
~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(365) : warning BC40000: 'Public ReadOnly Property PerformanceSetting() As Common.Globals.PerformanceSettings' is obsolete: 'Replaced in DotNetNuke 5.0 by Host.PerformanceSetting'
If Not Common.Globals.PerformanceSetting = Common.Globals.PerformanceSettings.NoCaching Then
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(463) : error BC30451: Name 'Localization' is not declared.
Dim heading As String = Localization.GetString("PageDisabled.Header")
~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(464) : error BC30451: Name 'Localization' is not declared.
Dim message As String = Localization.GetString("PageDisabled.Text")
~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(466) : error BC30451: Name 'Skins' is not declared.
DotNetNuke.UI.Skins.Skin.AddPageMessage(ctlSkin, heading, message, Skins.Controls.ModuleMessage.ModuleMessageType.YellowWarning)
~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(469) : error BC30451: Name 'NavigateURL' is not declared.
Response.Redirect(NavigateURL(PortalSettings.HomeTabId), True)
~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(471) : error BC30451: Name 'GetPortalDomainName' is not declared.
Response.Redirect(GetPortalDomainName(PortalSettings.PortalAlias.HTTPAlias, Request), True)
~~~~~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(479) : error BC30002: Type 'UserInfo' is not defined.
Dim userInfo As UserInfo = HttpContext.Current.Items("UserInfo")
~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(484) : error BC30451: Name 'Skins' is not declared.
UI.Skins.Skin.AddPageMessage(ctlSkin, messageTitle.ToString, messageText.ToString, Skins.Controls.ModuleMessage.ModuleMessageType.RedError)
~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(553) : error BC30451: Name 'IsAdminControl' is not declared.
If Not IsAdminControl() Then
~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(593) : error BC30451: Name 'Personalization' is not declared.
Return Personalization.Personalization.GetProfile(objDict("namingcontainer"), objDict("key"))
~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\Default.aspx.vb(595) : error BC30451: Name 'Personalization' is not declared.
Personalization.Personalization.SetProfile(objDict("namingcontainer"), objDict("key"), objDict("value"))
~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\ErrorPage.aspx(12) : warning BC40004: withEvents variable 'form' conflicts with property 'form' in the base class 'Page' and should be declared 'Shadows'.
Protected WithEvents form As Global.System.Web.UI.HtmlControls.Htmlform
~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\ErrorPage.aspx(19) : error BC30451: Name 'glbAppVersion' is not declared.
__w.Write(glbAppVersion )
~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\ErrorPage.aspx.vb(68) : error BC30822: 'Null' is not declared. 'Null' constant is no longer supported; use 'System.DBNull' instead.
Dim strLocalizedMessage As String = Null.NullString
~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\ErrorPage.aspx.vb(81) : error BC30002: Type 'PortalSettings' is not defined.
Dim _portalSettings As PortalSettings = PortalController.GetCurrentPortalSettings
~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\ErrorPage.aspx.vb(99) : error BC30451: Name 'ApplicationPath' is not declared.
hypReturn.Text = "<img src=""" + ApplicationPath + "/images/lt.gif"" border=""0"" /> " + strLocalizedMessage
~~~~~~~~~~~~~~~
D:\!Compsulting LIVE\Websites\compsulting.com\webroot\SiteMap.aspx.vb(101) : error BC30451: Name 'PortalSecurity' is not declared.
If PortalSecurity.IsInRoles(objTab.AuthorizedRoles) Then
~~~~~~~~~~~~~~
|
|
|
|
|
| |
|
|
|
Joined: 1/30/2006
Posts: 5038
|
|
|
Does following the comments from Charles made here:
http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=9025&PROJID=2
Resolve this issue? (please let us know)...
Thanks.
|
|
|
|
| |
|
|
www.themann00.com Joined: 1/13/2006
Posts: 68
|
|
|
I'm not sure where I'm supposed to find these lines of code. My error is happening from default.aspx.vb, and the code that Chrles is talking about doens't appear in that file. This is a clean install, not an upgrade.
Is this what you are talking about from the other post?
Fix:
Remove the following code:
' add portal alias module
If CoreModuleExists("PortalAliases") = False Then
ModuleDefID = AddModuleDefinition("PortalAliases", "Allows you to view portal aliases.", "Portal Aliases")
AddModuleControl(ModuleDefID, "", "", "DesktopModules/Admin/PortalAliases/PortalAlias.ascx", "", SecurityAccessLevel.Host, 0)
AddModuleControl(ModuleDefID, "Edit", "Portal Aliases", "DesktopModules/Admin/PortalAliases/EditPortalAlias.ascx", "", SecurityAccessLevel.Host, 0)
'Add the Module/Page to all configured portals (with InheritViewPermissions = False)
AddAdminPages("Site Settings", "icon_sitesettings_16px.gif", False, ModuleDefID, "Portal Aliases", "icon_sitesettings_16px.gif", False)
End If
and replace with
' remove portal alias module
If CoreModuleExists("PortalAliases") = False Then
RemoveCoreModule("PortalAliases", "Admin", "Site Settings", False)
End If
|
|
|
|
| |
|
|
|
no, the correct statement is "The workaround is to simple delete the Portal Aliases module from the Site Settings page."
if you are not familiar with programming, wait for 5.0.1
|
|
|
|
| |
|
|
www.themann00.com Joined: 1/13/2006
Posts: 68
|
|
|
What?!
You mean version 5.0, which is no longer in beta, needs a programmer to get it to work?
I can't get to a site settings page. This is a FRESH install- so when it never comes up, there is no way to delete portal aliases on the site settings page.
|
|
|
|
| |