Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error when adding portals and unable to edit them once addedError when adding portals and unable to edit them once added
Previous
 
Next
New Post
11/11/2009 1:14 PM
 

So i was trying to add a new portal to my webserver and I encountered the following errors:

AssemblyVersion: 5.1.4
PortalID: 22
PortalName: Test
UserID: 1
ActiveTabID: 17
ActiveTabName: Portals
RawURL: /tabid/17/portalid/22/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://testportal.com/tabid/17/portalid/22/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0; MS-RTC LM 8; .NET CLR 3.0.30729; Creative AutoUpdate v1.40.02)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 904b45a8-0c1f-420b-a873-accf3014efc3
InnerException: Object cannot be cast from DBNull to other types.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.DBNull.System.IConvertible.ToInt32
StackTrace:
Message: System.InvalidCastException: Object cannot be cast from DBNull to other types. at System.DBNull.System.IConvertible.ToInt32(IformatProvider provider) at System.Convert.ToInt32(Object value) at DotNetNuke.Entities.Users.UserController.DeleteUser(UserInfo& objUser, Boolean notify, Boolean deleteAdmin)
Source:


ModuleId: 321
ModuleDefId: 63
FriendlyName:
ModuleControlSource: DesktopModules/Admin/Portals/SiteSettings.ascx
AssemblyVersion: 5.1.4
PortalID: 3
UserID: 46
ActiveTabID: 17
ActiveTabName: Portals
RawURL: /tabid/17/ctl/Edit/mid/321/pid/29/portalid/3/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://www.crmsolinc.com/tabid/17/ctl/Edit/mid/321/pid/29/portalid/3/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; MS-RTC LM 8; .NET CLR 3.0.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 2120b635-2fef-41f5-8766-78e9a7d030fd
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Modules.Admin.Portals.SiteSettings.cmdUpdate_Click
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Modules.Admin.Portals.SiteSettings.cmdUpdate_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:


ModuleId: 1284
ModuleDefId: 167
FriendlyName: Portal Aliases
ModuleControlSource: DesktopModules/Admin/PortalAliases/PortalAlias.ascx
AssemblyVersion: 5.1.4
PortalID: 3
UserID: 46
ActiveTabID: 101
ActiveTabName: Site Settings
RawURL: /Admin/SiteSettings/tabid/101/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; MS-RTC LM 8; .NET CLR 3.0.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 904bf83b-4afd-44af-a3ad-d5602fa28a71
InnerException: The file '/DesktopModules/Admin/PortalAliases/PortalAlias.ascx' does not exist.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Web.UI.Util.CheckVirtualFileExists
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The file '/DesktopModules/Admin/PortalAliases/PortalAlias.ascx' does not exist. ---> System.Web.HttpException: The file '/DesktopModules/Admin/PortalAliases/PortalAlias.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.Compilation.BuildManager.GetVPathBuildResult(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.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---
Source:

Upon searching around the forum, i found some similar issues and saw it was related to a source reference mistake but I can't seem to match it to the portals module definition. Here is the portal module def page:

Would appreciate your input on this issue as I can't find a certain fix for it.

 
New Post
11/11/2009 1:42 PM
 

This message pops up inside the Portal Creation window when trying to create a new portal. We though the portal was not being create but it does create an instance in the Portals Database. But you can see that no language and no Portal alias rows were created.

Error parsing Portal TemplateViolation of UNIQUE KEY constraint 'IX_FolderPermission'. Cannot insert duplicate key in object 'dbo.FolderPermission'. 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.AddFolderPermission(Int32 FolderID, Int32 PermissionID, Int32 roleID, Boolean AllowAccess, Int32 UserID, Int32 createdByUserID) at DotNetNuke.Security.Permissions.PermissionProvider.SaveFolderPermissions(FolderInfo folder) at DotNetNuke.Security.Permissions.FolderPermissionController.SaveFolderPermissions(FolderInfo folder) at DotNetNuke.Entities.Portals.PortalController.AddFolderPermissions(Int32 PortalId, Int32 folderId) at DotNetNuke.Entities.Portals.PortalController.ParseTemplate(Int32 PortalId, String TemplatePath, String TemplateFile, Int32 AdministratorId, PortalTemplateModuleAction mergeTabs, Boolean IsNewPortal) at DotNetNuke.Entities.Portals.PortalController.CreatePortal(String PortalName, UserInfo objAdminUser, String Description, String KeyWords, String TemplatePath, String TemplateFile, String HomeDirectory, String PortalAlias, String ServerPath, String ChildPath, Boolean IsChildPortal)
 

 
New Post
11/11/2009 1:58 PM
 

it looks like portalalias control has not been properly registered.it should be found at /desktopmodules/admin/Portals/portalAliases.ascx. I have no clue, why your site is looking for it in a different location, other than a file not being properly unzipped. I suggest to reunzipping all files from upgrade package and retry.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/11/2009 2:52 PM
 

I was verifying the database and it is writting to the Portals table for the new portal, but it did not write to the Languages or PortalAliases tables. I did have issues upgrading from 4.9 up to 5.1.3 (did 4.9->5.0->5.1->5.1.2-5.1.3) with the SQLProvider. But for 5.1.4 the SQLProvider it went through with no errors (the whole upgrade went through). I was looking into my PortalAliases module and it did have that common path mistaken issue:

 

Fixed the path for PortalAliases.ascx as you can see in the picture but not for the EDIT control, i didn't see the file in that path but rather at %dnnroot%\admin\Portal\editportalalias.ascx. Also did noticed at the top of the module settings it still says Folder Name: Admin/PortalAliases but I am assuming this is just saved as simple text and does not affect the module pathing, or does it? Might that be what is causing my Portal creation to blow up? This did fix my "cannot find file" issue with the Admin->Site Settings page and i can view/edit my site portal alias through admin.

 
New Post
11/11/2009 4:32 PM
 

The way i see it, there is something wrong when i try to update my portal settings or where it is redirecting me. Here you can see what the script for the "Update" on the Host->Portals editing page gives:

Shouldn't that postback to Portals again? keep in mind this is through my Host-Portals page, my Admin->Site Settings is working correctly now. Is the EDIT control on the Portals Module suppose to point to another source instead of "Site Settings" which is the one it currently is?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Error when adding portals and unable to edit them once addedError when adding portals and unable to edit them once added


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out