MikeJ83:
Compile MossMenu into a DLL, strongly name it, then add it to your bin directory and put it in your SafeControls section of the web.config. You will probably also need to put it in the GAC.
I think I've already done all the things you mentioned. I compiled MossMenu into an dll using .NET-Framework 2.0. I strongly named it by singing it with my key and I put the dll into both directories, into "_app_bin" of the application and into the GAC. But I got still the same response from MOSS:
Configuration Error
Description: An
error occurred during the processing of a configuration file required
to service this request. Please review the specific error details below
and modify your configuration file appropriately.
Parser Error Message: Could not load type 'Moss.SharePoint.Controls.MossMenu'.
Source Error:
Line 2: <browser refID="Default"> Line 3: <controlAdapters> Line 4: <adapter controlType="Moss.SharePoint.Controls.MossMenu" adapterType="CSSFriendly.MenuAdapter, CSSFriendlyAdapters, Version=1.0.0.0, Culture=neutral, PublicKeyToken=a9f3335dc30fe83c" /> Line 5: </controlAdapters> Line 6: </browser> |
I also double checked the namespaces and I'm pretty sure that they are correct. The namespace shown in the MossMenu Project properties says "Moss.SharePoint.Controls", so the code in line 4 should be correct. The really strange thing is that each component on its own works just perfect. I could adapt the CSS Friendly MenuAdapter onto the standard SharePoint:Menu controls and I could also use the MossMenu control within any SharePoint site (without applying the adapter). But applying the CSS Friendly MenuAdapter on to the MossMenu leads to the error shown above.
So I relay don't know what else I could do to get the CSS Friendly MenuAdapter working on the MossMenu.
Every tip or hint is welcome.