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...Upgrading DNN P...Upgrading DNN P...upgrade from 7.4.2 to 8.0 login throws 500 interal errorupgrade from 7.4.2 to 8.0 login throws 500 interal error
Previous
 
Next
New Post
3/7/2016 3:47 AM
 
this sounds very weird, I am not aware of issue with the database, which default language do you use for the SQL Server user?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/9/2016 4:26 PM
 
Hi The script mentioned in the links are giving me compilations errors, is it meant for SQL ?
 
New Post
4/4/2016 5:23 PM
 
I just did a clean install of version 8.0.4.207 on my local machine and received the same exact issue. No custom modules or skins. Using SQL Server: SQL 2012 Express.

The site loads using the Cavalier skin, but as soon as you login you get the following error:

http://dnn804a/Default.aspx?tabid=59&error=Conversion+failed+when+converting+the+nvarchar+value+%27%2fSigma%2fUse%27+to+data+type+int.&content=0

Exception Table:

Conversion failed when converting the nvarchar value '/Sigma/Use' to data type int.
at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows)
at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more)
at System.Data.SqlClient.SqlDataReader.Read()
at DotNetNuke.Common.Utilities.CBO.CreateObjectFromReader(Type objType, IDataReader dr, Boolean closeReader)
at DotNetNuke.Common.Utilities.CBO.FillObject[TObject](IDataReader dr)
at DotNetNuke.Entities.Modules.ModuleController.GetModuleByDefinition(Int32 portalId, String definitionName)
at DotNetNuke.UI.ControlPanels.ControlBar.GetTabURL(List`1 additionalParams, String toolName, Boolean isHostTool, String moduleFriendlyName, String controlKey, Boolean showAsPopUp)
at DotNetNuke.UI.ControlPanels.ControlBar.BuildToolUrl(String toolName, Boolean isHostTool, String moduleFriendlyName, String controlKey, String navigateUrl, Boolean showAsPopUp)
at ASP.admin_controlpanel_controlbar_ascx.__RenderControlPanel(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at ASP.admin_controlpanel_controlbar_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at DotNetNuke.Framework.PageBase.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

When executing the GetModuleByDefinition Sproc using the following:

EXEC @return_value = [dbo].[GetModuleByDefinition]
@PortalId = 0,
@DefinitionName = N'User Accounts'

SELECT 'Return Value' = @return_value

GO

I'm able to duplicate the error.

Msg 245, Level 16, State 1, Procedure GetModuleByDefinition, Line 5
Conversion failed when converting the nvarchar value '/Sigma/Use' to data type int.

I then tried the other Module Definition names listed in the listed in the ModuleDefinitions table. I'm able to duplicate the issue using each of the Definition Names below:

Security Roles
Site Settings
User Accounts
Recycle Bin
Log Viewer
Search Admin
Site Wizard
Lists
Extensions
Languages
Sitemap
Digital Asset Management
DNN Site Redirection Management
DNN Device Preview Management

Each had their own conversion error. The value seems to be truncated after the first 8 characters of the IconFile, with the offending part of the message being the next 10 characters. There's a few more which I didn't test, but I think you get the idea.




 
New Post
4/4/2016 5:32 PM
 
Hey there,

I ran into the exact same issue in a clean install of 8.04.207, using SQL 2012 Express. Browsing the site seems to work using the Cavalier skin, but as soon as you login you're hit with the error.

Conversion failed when converting the nvarchar value '/Sigma/Use' to data type int.

at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows)
at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more)
at System.Data.SqlClient.SqlDataReader.Read()
at DotNetNuke.Common.Utilities.CBO.CreateObjectFromReader(Type objType, IDataReader dr, Boolean closeReader)
at DotNetNuke.Common.Utilities.CBO.FillObject[TObject](IDataReader dr)
at DotNetNuke.Entities.Modules.ModuleController.GetModuleByDefinition(Int32 portalId, String definitionName)
at DotNetNuke.UI.ControlPanels.ControlBar.GetTabURL(List`1 additionalParams, String toolName, Boolean isHostTool, String moduleFriendlyName, String controlKey, Boolean showAsPopUp)
at DotNetNuke.UI.ControlPanels.ControlBar.BuildToolUrl(String toolName, Boolean isHostTool, String moduleFriendlyName, String controlKey, String navigateUrl, Boolean showAsPopUp)
at ASP.admin_controlpanel_controlbar_ascx.__RenderControlPanel(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer)
at System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at ASP.admin_controlpanel_controlbar_ascx.__Render__control1(HtmlTextWriter __w, Control parameterContainer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at DotNetNuke.Framework.PageBase.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I was able to duplicate the error a number of times by executing the GetModuleByDefinition sproc.

DECLARE @return_value int
EXEC @return_value = [dbo].[GetModuleByDefinition]
@PortalId = 0,
@DefinitionName = N'User Accounts'
SELECT 'Return Value' = @return_value
GO

Some of the offending Module Definition Names are:

Security Roles
Site Settings
User Accounts
Recycle Bin
Log Viewer
Search Admin
Extensions
Languages

These are a fraction of all the Definition Names which error. The error message will change slightly, based on the information contained in the IconFile column of the vw_Module view. After the first 8 characters, the error grabs the next 10 characters and throws it into the error message.
 
New Post
5/3/2016 12:36 PM
 
FYI - To fix this issue comment out the following inside the view vw.Modules select statement:

-- Case when tm.IconFile LIKE 'fileid=%'
-- then (SELECT IsNull(Folder, '') + [FileName] FROM dbo.[vw_Files]
-- WHERE fileid = CAST(SUBSTRING(tm.IconFile, 8, 10) AS Int))
-- else Coalesce(tm.IconFile,'')
-- end as IconFile,

When you dissect that statement, it fails when trying to do the following:

CAST(SUBSTRING(tm.IconFile, 8, 10) AS Int)

Because the substring that it's utilizing is the file location of the IconFile column, it cannot convert or cast the text string to a number. It would be different if it were trying to convert a text value which is a number.

Instead, replace it with the following: (Taken from DNN 7.4)

dbo.FilePath(TM.IconFile) AS IconFile,

That will fix the issue and allow DNN 8 to run using SQL express 2012. I haven't confirmed if you need to do this for SQL Server 2012, but I suspect the same issue will arise.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...upgrade from 7.4.2 to 8.0 login throws 500 interal errorupgrade from 7.4.2 to 8.0 login throws 500 interal error


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