I re-did the upgrade steps and it seems to be fine and now but I hit another error : Unable to cast object of type 'System.Int32' to type 'System.String'.
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
at System.Data.SqlClient.SqlBuffer.get_String()
at petapoco_factory_1(IDataReader )
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallCallback[TRet](Delegate callback, IDataReader dr, Int32 count)
at Umbraco.Core.Persistence.Database.<>c__DisplayClass1a`1.b__19(IDataReader reader, Delegate arg3)
at Umbraco.Core.Persistence.Database.d__1c`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Umbraco.Core.Persistence.Repositories.UserRepository.PerformGet(Int32 id)
at Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id)
at Umbraco.Core.Services.UserService.GetUserById(Int32 id)
at Umbraco.Web.Security.WebSecurity.get_CurrentUser()
at Umbraco.Web.Security.WebSecurity.ValidateCurrentUser(Boolean throwExceptions)
at Umbraco.Web.UI.Install.Default.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.install_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\432086c4\34bf2b2e\App_Web_default.aspx.c29b009d.sigh4uqa.0.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Upgrading from 6.1.6 to 7.0.1 Error: Invalid object name 'cmsDataType'
Hi
I am having an issue upgrading from 6.1.6 to 7.0.1 and getting the error above. Can anyone help?
Regards
Farhad
Hi Farhad
Did your site start on v6 or did it originate from v4?
Martin
Hi Martin
Thanks for the reply. We started on V6.1.1 then upgraded to 6.1.6
Regards
Farhad
Can you paste the error log?
Hi Martin
I re-did the upgrade steps and it seems to be fine and now but I hit another error : Unable to cast object of type 'System.Int32' to type 'System.String'.
Below is the error log.
2014-01-06 16:34:43,817 [11] INFO Umbraco.Core.DatabaseContext - [Thread 20] Database configuration status:
Upgrade completed!
2014-01-06 16:34:45,400 [11] INFO Umbraco.Core.Persistence.UmbracoDatabase - [Thread 7] at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallCallback[TRet](Delegate callback, IDataReader dr, Int32 count)
at Umbraco.Core.Persistence.Database.<>c__DisplayClass1a`1.b__19(IDataReader reader, Delegate arg3)
at Umbraco.Core.Persistence.Database.d__1c`1.MoveNext()
2014-01-06 16:34:45,543 [11] ERROR Umbraco.Core.UmbracoApplicationBase - [Thread 7] An unhandled exception occurred
System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.
at System.Data.SqlClient.SqlBuffer.get_String()
at petapoco_factory_1(IDataReader )
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at Umbraco.Core.Persistence.Database.MultiPocoFactory.CallCallback[TRet](Delegate callback, IDataReader dr, Int32 count)
at Umbraco.Core.Persistence.Database.<>c__DisplayClass1a`1.b__19(IDataReader reader, Delegate arg3)
at Umbraco.Core.Persistence.Database.d__1c`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Umbraco.Core.Persistence.Repositories.UserRepository.PerformGet(Int32 id)
at Umbraco.Core.Persistence.Repositories.RepositoryBase`2.Get(TId id)
at Umbraco.Core.Services.UserService.GetUserById(Int32 id)
at Umbraco.Web.Security.WebSecurity.get_CurrentUser()
at Umbraco.Web.Security.WebSecurity.ValidateCurrentUser(Boolean throwExceptions)
at Umbraco.Web.UI.Install.Default.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.install_default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\432086c4\34bf2b2e\App_Web_default.aspx.c29b009d.sigh4uqa.0.cs:line 0
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Regards
Farhad
try this?
http://our.umbraco.org/forum/getting-started/installing-umbraco/47067-Upgrade-to-701-gives-Unable-to-cast-object-of-type-SystemInt32-to-type-SystemString
Hi
That seems to have worked. Brilliant....
Will have to do some thorough tetsing though. Thanks again for all your help. Really appreciate,
Regards
Farhad
Well done Farhad!
Glad to be of assistance. :-)
Regards
Martin
is working on a reply...