Upgrade to 5.1 and Removal of CT.Forums from Site

Posted by Community Admin on 04-Aug-2018 14:37

Upgrade to 5.1 and Removal of CT.Forums from Site

All Replies

Posted by Community Admin on 10-Aug-2012 00:00

Hello, I've recently upgraded to Sitefinity 5.1 which contains built in forums functionality, so I am trying to remove CT.Forums from the site, but there seems to be one reference hanging out there somewhere that I can't find in config files or through the site settings in the backend.  It may be hidden somewhere in the settings that I missed since there are so many setting areas in advanced views.  I checked the areas where I would think the setting would be, but to no avail.  

When I try to view the widget templates through the backend, I am receiving this exception:
---------------
08/10/2012 10:21:45
Type : System.IO.FileNotFoundException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Could not load file or assembly 'CT.Forums, Version=1.0.676.1650, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Source : mscorlib
Help link : 
FileName : CT.Forums, Version=1.0.676.1650, Culture=neutral, PublicKeyToken=null
FusionLog : WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Data : System.Collections.ListDictionaryInternal
TargetSite : System.Reflection.RuntimeAssembly _nLoad(System.Reflection.AssemblyName, System.String, System.Security.Policy.Evidence, System.Reflection.RuntimeAssembly, System.Threading.StackCrawlMark ByRef, Boolean, Boolean, Boolean)
Stack Trace :    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at Telerik.Sitefinity.Pages.Model.ControlTemplateResolver.ResolveTemplate(String embeddedTemplateName, String assemblyName)
   at WriteControlTemplateViewModelToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , ClassDataContract , XmlDictionaryString[] )
   at System.Runtime.Serialization.Json.JsonClassDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.Json.JsonDataContract.WriteJsonValue(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerializeWithSurrogate(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerializeReference(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteArrayOfControlTemplateViewModelToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , CollectionDataContract )
   at System.Runtime.Serialization.Json.JsonDataContract.WriteJsonValue(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, Boolean verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
   at System.Runtime.Serialization.Json.XmlObjectSerializerWriteContextComplexJson.SerializeWithXsiType(XmlWriterDelegator xmlWriter, Object obj, RuntimeTypeHandle objectTypeHandle, Type objectType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle, Type declaredType)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContextComplex.InternalSerializeWithSurrogate(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.XmlObjectSerializerWriteContext.InternalSerializeReference(XmlWriterDelegator xmlWriter, Object obj, Boolean isDeclaredType, Boolean writeXsiType, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle)
   at WriteCollectionContextOfControlTemplateViewModelBNb9aqg1ToJson(XmlWriterDelegator , Object , XmlObjectSerializerWriteContextComplexJson , ClassDataContract , XmlDictionaryString[] )
   at System.Runtime.Serialization.Json.JsonClassDataContract.WriteJsonValueCore(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.Json.JsonDataContract.WriteJsonValue(XmlWriterDelegator jsonWriter, Object obj, XmlObjectSerializerWriteContextComplexJson context, RuntimeTypeHandle declaredTypeHandle)
   at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObjectContent(XmlWriterDelegator writer, Object graph)
   at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalWriteObject(XmlWriterDelegator writer, Object graph)
   at System.Runtime.Serialization.XmlObjectSerializer.WriteObjectHandleExceptions(XmlWriterDelegator writer, Object graph, DataContractResolver dataContractResolver)
   at System.Runtime.Serialization.Json.DataContractJsonSerializer.WriteObject(XmlDictionaryWriter writer, Object graph)
   at System.ServiceModel.Channels.BodyWriter.WriteBodyContents(XmlDictionaryWriter writer)
   at System.ServiceModel.Channels.Message.OnWriteMessage(XmlDictionaryWriter writer)
   at System.ServiceModel.Channels.BufferedMessageWriter.WriteMessage(Message message, BufferManager bufferManager, Int32 initialOffset, Int32 maxSizeQuota)
   at System.ServiceModel.Channels.JsonMessageEncoderFactory.JsonMessageEncoder.WriteMessage(Message message, Int32 maxMessageSize, BufferManager bufferManager, Int32 messageOffset)
   at System.ServiceModel.Channels.WebMessageEncoderFactory.WebMessageEncoder.WriteMessage(Message message, Int32 maxMessageSize, BufferManager bufferManager, Int32 messageOffset)
   at System.ServiceModel.Channels.HttpOutput.SerializeBufferedMessage(Message message)
   at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout)
   at System.ServiceModel.Channels.HttpRequestContext.OnReply(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.RequestContextBase.Reply(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.Reply(MessageRpc& rpc)


Additional Info:


MachineName : FSSD-SITEFINITY
TimeStamp : 8/10/2012 2:21:45 PM
FullName : Telerik.Sitefinity.Utilities, Version=5.1.3270.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/1/ROOT-3-129890783772560788
ThreadIdentity : 
WindowsIdentity : NT AUTHORITY\NETWORK SERVICE
Requested URL : stage.fujifilmapi.com/.../ DESC&skip=0&take=50


Category: ErrorLog
Priority: 0
EventId: 90000
Severity: Error
Title:Enterprise Library Exception Handling
Machine: FSSD-SITEFINITY
App Domain: /LM/W3SVC/1/ROOT-3-129890783772560788
ProcessId: 2908
Process Name: c:\windows\system32\inetsrv\w3wp.exe
Thread Name: 
Win32 ThreadId:2068
Extended Properties: 
----------------------------------------
So it seems the ControlTemplateService.svc service has some setting somewhere or a reference that still contains the CT.Forums widget.  Where is it and how do I remove it?

Posted by Community Admin on 03-Sep-2012 00:00

Did anyone find a resolution to this? I am having the same problem. Cleared out all the obvious references. I wonder if a reference remains in a record Ina table in the database. I am only getting this problem when i try and bring up the widgets page.

Posted by Community Admin on 04-Sep-2012 00:00

I still haven't heard from anyone how to fix it.  If I come up with a solution that isn't already part of this forum post, I'll post it here.  

Jeff B.

Posted by Community Admin on 29-Nov-2012 00:00

Here's what I did to the database to fix the issue (once I already removed all references to CT.Forums in my website).

I'm not sure the first two deletes are necessary. I did them in with the first two deletes, tested (didn't work) and then the last delete (and it worked). So you might be able to just run the last delete to make it work (but if not, delete the other references as well)

DECLARE @ID VARCHAR(500);
SELECT @ID = ID
FROM sf_schema_vrsns
WHERE module_name LIKE '%ct.forum%';
 
DELETE FROM sf_schema_vrsns_meta_types
WHERE ID = @ID;
 
DELETE FROM sf_schema_vrsns
WHERE ID = @ID;
 
DELETE FROM sf_presentation_data
WHERE resource_assembly_name LIKE '%ct.forums%'

Posted by Community Admin on 07-Feb-2014 00:00

I know this is old but thank you Miles!  This solution saved me!

This thread is closed