+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Upgrade to 5.1 and Removal of CT.Forums from Site

Upgrade to 5.1 and Removal of CT.Forums from Site

5 posts, 0 answered
  1. Jeff
    Jeff avatar
    11 posts
    Registered:
    30 Jun 2011
    10 Aug 2012
    Link to this post
    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 : http://stage.fujifilmapi.com/Sitefinity/Services/ControlTemplates/ControlTemplateService.svc/?managerType=&providerName=&itemType=Telerik.Sitefinity.Pages.Model.PresentationData&provider=&sortExpression=DateCreated 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?
  2. Pierre Chew
    Pierre Chew avatar
    4 posts
    Registered:
    08 Aug 2012
    03 Sep 2012
    Link to this post
    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.
  3. Jeff
    Jeff avatar
    11 posts
    Registered:
    30 Jun 2011
    04 Sep 2012
    Link to this post
    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.
  4. Miles
    Miles avatar
    32 posts
    Registered:
    23 Nov 2011
    29 Nov 2012 in reply to Jeff
    Link to this post
    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%'

  5. cli
    cli avatar
    50 posts
    Registered:
    21 May 2007
    07 Feb 2014 in reply to Miles
    Link to this post
    I know this is old but thank you Miles!  This solution saved me!
5 posts, 0 answered