Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

SiteSeeker 4.2.91.1 upgrade, This operation is only valid on generic types

Vote:
 

I upgraded SiteSeeker libraries from 4.2.89.1 to 4.2.91.1.

The site was using this type of solution to add a custom meta tag for UnifiedFile:
http://blogg.siteseeker.se/2012/06/27/anvand-siteseekers-indexeringsstod-for-filer-i-episerver/

After upgrade I got this error on startup: "This operation is only valid on generic types"

I solved it by using my own "siteseeker/fileinformation.aspx"-ish file but a bit annoying that things break without notes in the release log.

Still waiting for a call back from support...

#116859
Feb 06, 2015 11:22
Vote:
 

I've the same problem. Any feedback from the support?

#117415
Edited, Feb 20, 2015 11:05
Vote:
 

Didn't get called back. I still prefer my own file/handler though (someone else did this implementation initally) so I won't change it back even they get it working.

#117466
Feb 22, 2015 8:11
Vote:
 

Would you like to share your fileinformation.aspx?

#117471
Feb 22, 2015 15:09
Vote:
 
<p>Was on on vacation for a couple of weeks :)</p> <p>Here it is:</p> <pre class="brush:csharp;auto-links:false;toolbar:false" contenteditable="false">public partial class FileInformation : System.Web.UI.Page { protected override void OnLoad(EventArgs e) { base.OnLoad(e); string path = Request.QueryString["filename"]; if (path.IsNullOrWhiteSpace()) { return; } if (path.IndexOf('?') != -1) { path = path.Substring(0, path.IndexOf('?')); } if (!path.StartsWith("/")) { path = "/" + path; } UnifiedFile uf; if (!EPi.GlobalFunctions.UnifiedFileFunctions.TryGetFile(path, out uf)) { return; } const string MetaHtml = "&lt;meta name=\"{0}\" content=\"{1}\"&gt;\n"; const string TitleHtml = "&lt;title&gt;{0}&lt;/title&gt;\n"; var sb = new StringBuilder("&lt;!DOCTYPE html&gt;&lt;html&gt;&lt;head&gt;"); if (!uf.Summary.Title.IsNullOrWhiteSpace()) { sb.AppendFormat(TitleHtml, HttpUtility.HtmlEncode(uf.Summary.Title)); sb.AppendFormat(MetaHtml, "EPi.Title", HttpUtility.HtmlEncode(uf.Summary.Title)); } else { sb.AppendFormat(TitleHtml, HttpUtility.HtmlEncode(uf.Name)); sb.AppendFormat(MetaHtml, "EPi.Title", HttpUtility.HtmlEncode(uf.Name)); } bool desc = false; string subj = null; foreach (DictionaryEntry prop in uf.Summary.Dictionary) { string key = prop.Key.ToString().ToLower(); if (key == "Title" || key == "Category") { continue; } string value = prop.Value.ToString().Trim(); if (key == "description") { desc = true; } if (key == "subject") { subj = value; } if (key != string.Empty &amp;&amp; !key.EndsWith("_") &amp;&amp; value.Length &gt; 0) { sb.AppendFormat(MetaHtml, "EPi." + prop.Key, HttpUtility.HtmlEncode(value)); } } if (!desc &amp;&amp; subj != null) { sb.AppendFormat(MetaHtml, "EPi.Description", HttpUtility.HtmlEncode(subj)); } if (Request.UserAgent == "SiteSeekerCrawler/1.0") { sb.AppendFormat(MetaHtml, "EPi.ACL", Security.GetACL(uf.Parent.ACL.ToRawACEArray())); } sb.AppendFormat(MetaHtml, "EPi.Category", "Dokument"); const string DateFormat = "yyyy-MM-ddTHH:mm:sszzz"; sb.AppendFormat(MetaHtml, "EPI.Revised", uf.Changed.ToString(DateFormat)); sb.AppendFormat(MetaHtml, "EPI.Published", uf.Created.ToString(DateFormat)); sb.Append("&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;"); Response.Write(sb.ToString()); } } </pre> <p>There are some code that points to our company libraries but I'm sure the intent of them is pretty clear.</p>
#118343
Mar 04, 2015 16:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.