|
|
|
Joined: 2/27/2006
Posts: 4
|
|
|
I am not so sure, as all my existing portals are fine and I am able to access them
Can you suggest what I could look at in the database that might confirm/not confirm that the "fix" script has updated the database successfully?
|
|
|
|
| |
|
|
Joined: 4/13/2004
Posts: 1
|
|
|
Hi,
I had the exact same problem. Guess what? I've done the upgrade from 4.3.4 to 4.3.5 using the upgrade package and the problem is gone.
-- Manuel Costa http://www.factordigital.com
|
|
|
|
| |
|
|
Joined: 5/29/2006
Posts: 42
|
|
|
Hi All,
I have the same problem, but with a different version, Error creating Portal (ver. 4.4.1)
Strange thing is it works fine in my development environment but not in production.
Prod uses SQL2000
Dev uses SQL 2005 express.
Anybody else out there who has this problem?
Replacing the StoredProc as mentiond with older versions of DNN does not work for me....
Best regards,
Jerry Tjon
Regards,
Jerry Tjon
IT Consultant
Amsterdam,
the Netherlands
|
|
|
|
| |
|
|
Joined: 5/29/2006
Posts: 42
|
|
|
Hi All,
Just was investigating the error and noticed that the message is generated at the following line in signup.ascx.vb file, at line 251
While trying to execute the function:
objSecurity.Encrypt()
Also see the following code:
'-------------------------------------------------------------------------
'Create Portal
'-------------------------------------------------------------------------
If strMessage = "" Then
Dim strTemplateFile As String = cboTemplate.SelectedItem.Text & ".template"
'Attempt to create the portal
Try
intPortalId = objPortalController.CreatePortal(txtTitle.Text, txtFirstName.Text, txtLastName.Text, txtUsername.Text, objSecurity.Encrypt(Convert.ToString(Common.Globals.HostSettings("EncryptionKey")), txtPassword.Text), txtEmail.Text, txtDescription.Text, txtKeyWords.Text, Common.Globals.HostMapPath, strTemplateFile, HomeDir, strPortalAlias, strServerPath, strChildPath, blnChild)
Catch ex As Exception
intPortalId = Null.NullInteger
'strMessage = ex.Message & txtTitle.Text & txtFirstName.Text & txtLastName.Text & txtUsername.Text & objSecurity.Encrypt(Convert.ToString(Common.Globals.HostSettings("EncryptionKey")) & txtPassword.Text) & txtEmail.Text & txtDescription.Text & txtKeyWords.Text & Common.Globals.HostMapPath & strTemplateFile & HomeDir & strPortalAlias & strServerPath & strChildPath & blnChild & " Exit Here"
'This is what I added to the code
strMessage = ex.Message & " " & objSecurity.Encrypt(Convert.ToString(Common.Globals.HostSettings("EncryptionKey"))
'strMessage = ex.Message & " & Exit"
End Try
The error message which I receive after running the code is after trying to catch every variable in the catch clause is:
Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> DotNetNuke.Services.Exceptions.ModuleLoadException: Error: Signup is currently unavailable. ---> System.Web.HttpCompileException: D:\Webmaster\DNN4\Admin\Portal\Signup.ascx.vb(256): error BC30455: Argument not specified for parameter 'strData' of 'Public Function Encrypt(strKey As String, strData As String) As String'. at System.Web.Compilation.BuildManager.CompileWebFile(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.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace --- at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, PortalModuleBase ctrlModule, Exception exc, Boolean DisplayErrorMessage) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(PortalModuleBase ctrlModule, Exception exc) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
So I figured that for some reason It cannot load the machine key from the web.config file to create the encryption key. So I checked a few versions back if I copied the machine key correctly when upgrading but that turned out to be ok.
So right now realy don't know where to look within DNN.
Well hope someone could shed some light on my problem!
Best regards,
Jerry Tjon
IT Consultant
Amsterdam,
The Netherlands
Regards,
Jerry Tjon
IT Consultant
Amsterdam,
the Netherlands
|
|
|
|
| |
|
|
Joined: 5/29/2006
Posts: 42
|
|
|
Hi All,
Just was investigating the error and noticed that the message is generated at the following line in signup.ascx.vb file, at line 251
While trying to execute the function:
objSecurity.Encrypt()
Also see the following code:
'-------------------------------------------------------------------------
'Create Portal
'-------------------------------------------------------------------------
If strMessage = "" Then
Dim strTemplateFile As String = cboTemplate.SelectedItem.Text & ".template"
'Attempt to create the portal
Try
intPortalId = objPortalController.CreatePortal(txtTitle.Text, txtFirstName.Text, txtLastName.Text, txtUsername.Text, objSecurity.Encrypt(Convert.ToString(Common.Globals.HostSettings("EncryptionKey")), txtPassword.Text), txtEmail.Text, txtDescription.Text, txtKeyWords.Text, Common.Globals.HostMapPath, strTemplateFile, HomeDir, strPortalAlias, strServerPath, strChildPath, blnChild)
Catch ex As Exception
intPortalId = Null.NullInteger
'strMessage = ex.Message & txtTitle.Text & txtFirstName.Text & txtLastName.Text & txtUsername.Text & objSecurity.Encrypt(Convert.ToString(Common.Globals.HostSettings("EncryptionKey")) & txtPassword.Text) & txtEmail.Text & txtDescription.Text & txtKeyWords.Text & Common.Globals.HostMapPath & strTemplateFile & HomeDir & strPortalAlias & strServerPath & strChildPath & blnChild & " Exit Here"
'This is what I added to the code
strMessage = ex.Message & " " & objSecurity.Encrypt(Convert.ToString(Common.Globals.HostSettings("EncryptionKey"))
'strMessage = ex.Message & " & Exit"
End Try
The error message which I receive after running the code is after trying to catch every variable in the catch clause is:
Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> DotNetNuke.Services.Exceptions.ModuleLoadException: Error: Signup is currently unavailable. ---> System.Web.HttpCompileException: D:\Webmaster\DNN4\Admin\Portal\Signup.ascx.vb(256): error BC30455: Argument not specified for parameter 'strData' of 'Public Function Encrypt(strKey As String, strData As String) As String'. at System.Web.Compilation.BuildManager.CompileWebFile(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.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace --- at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, PortalModuleBase ctrlModule, Exception exc, Boolean DisplayErrorMessage) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(PortalModuleBase ctrlModule, Exception exc) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---
So I figured that for some reason It cannot load the machine key from the web.config file to create the encryption key. So I checked a few versions back if I copied the machine key correctly when upgrading but that turned out to be ok.
So right now realy don't know where to look within DNN.
Well hope someone could shed some light on my problem!
Best regards,
Jerry Tjon
IT Consultant
Amsterdam,
The Netherlands
Regards,
Jerry Tjon
IT Consultant
Amsterdam,
the Netherlands
|
|
|
|
| |