FAQ problem

Topics: General, Standard packages, Troubleshooting
Coordinator
Oct 30, 2010 at 11:29 PM

Hi tvn

It's hard to say what went wrong, but it is possible that assembly cache is broken. In order to fix it you need to recompile the Composite.Generated.dll.

Here's a short explanation how to fix it, please don't pay attention to colors - I copied html from google cache :)


Assembly cache consists of
a) C# files, which located under: "/App_Data/Composite/Cache/Assemblies/"
b) "\Bin\Composite.Generated.dll" file. Which is recreated after every system restart.

The steps to fix the cache are:

1) Create a backup 
2) Stop the related application pool in IIS
3) Rename App_Code to App_Code1
4*) Move dll-s that are using Composite.Generated.dll, from "/Bin" to "/Bin/Temp" folder
5) Delete file /Bin/Composite.Generated.dll
6) Delete all the files under /App_Data/Composite/Cache/Assemblies
7) Start app pool, run composite backend. (It is possible that backend will not be loaded, in this case just wait 20 seconds)
8) Stop app pool
9) Check that file /Bin/Composite.Generated.dll has been created
10*) Move dlls that were moved on step (4) from "/Bin/Temp" to "/Bin"
11) Rename /App_Code1 to /App_Code
12) Start the application pool

* - only if you have created some dll-s that are referencing to Composite.Generated.dll

Coordinator
Nov 1, 2010 at 10:46 AM

Hi tvn

An other idea: try to search for "CMS_1FA672EB_A510B035_v0001_948074ea-4d93-47ba-8e0c-6267501f2d0b" in website files. There's a chance that one of the meta data files is referencing that temporary dll instead of Composite.Generated.dll.

 

Coordinator
Nov 1, 2010 at 2:43 PM

 I managed to reproduce the issue, way to fix the solution:

1) Search for an xml file under "/App_Data/Composite/DynamicTypeForms" that contains string "CMS_1FA672EB_A510B035_v0001_948074ea-4d93-47ba-8e0c-6267501f2d0b"

2) it will have a line like:

 

<f:StaticMethodCall Type="Composite.Plugins.Functions.WidgetFunctionProviders.StandardWidgetFunctionProvider.DataReference.DataReferenceSelectorWidgetFunction`1[[Composite.Lists.FAQType, CMS_1FA672EB_A510B035_v0001_948074ea-4d93-47ba-8e0c-6267501f2d0b, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], Composite, Version=1.2.3321.23866, Culture=neutral, PublicKeyToken=null " Method="GetOptions" Parameters="DynamicType:PageGuard.ProtectedMediaCategory" />

 

change "CMS_1FA672EB_A510B035_v0001_948074ea-4d93-47ba-8e0c-6267501f2d0b" to "Composite.Generated"

<f:StaticMethodCall Type="Composite.Plugins.Functions.WidgetFunctionProviders.StandardWidgetFunctionProvider.DataReference.DataReferenceSelectorWidgetFunction`1[[Composite.Lists.FAQType, Composite.Generated, Culture=neutral, PublicKeyToken=null]], Composite, Version=1.2.3321.23866, Culture=neutral, PublicKeyToken=null " Method="GetOptions" Parameters="DynamicType:PageGuard.ProtectedMediaCategory" />

3) save the file, restart the site

 

The issue will be fixed in one of the upcoming patches/releases