<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Blinq Preview</title><link>http://forums.asp.net/1076.aspx</link><description>Blinq is a tool for generating ASP.NET websites for displaying, creating, and manipulating data based on database schema.  You can provide feedback and ask questions about the Blinq preview in this forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>GenericMethodDefinition. MakeGenericMethod may only be called on a method for which MethodBase.IsGenericMethodDefinition is true.</title><link>http://forums.asp.net/thread/2684516.aspx</link><pubDate>Wed, 15 Oct 2008 13:30:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2684516</guid><dc:creator>zazu</dc:creator><author>zazu</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2684516.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1076&amp;PostID=2684516</wfw:commentRss><description>&lt;p&gt;I generated a Blinq site for the Northwind DB. The site was created successfully and most of the links and functionality work as expected however I am getting an error when I try to go to view the details of any individual record. Following is the error I get when I try to view the details of a Product. Any help will be highly appreciated. Thanks: &lt;/p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;
&lt;h1&gt;Server Error in &amp;#39;/Northwind&amp;#39; Application. 
&lt;hr /&gt;
&lt;/h1&gt;
&lt;h2&gt;&lt;i&gt;System.Query.IQueryable`1[Product+_Anonymous_GetProductsByCategory_2C9_12] Select[Product,_Anonymous_GetProductsByCategory_2C9_12](System.Query.IQueryable`1[Product], System.Expressions.Expression`1[System.Query.Func`2[Product,Product+_Anonymous_GetProductsByCategory_2C9_12]]) is not a GenericMethodDefinition. MakeGenericMethod may only be called on a method for which MethodBase.IsGenericMethodDefinition is true.&lt;/i&gt; &lt;/h2&gt;
&lt;p&gt;&lt;/span&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: &lt;/b&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: &lt;/b&gt;System.InvalidOperationException: System.Query.IQueryable`1[Product+_Anonymous_GetProductsByCategory_2C9_12] Select[Product,_Anonymous_GetProductsByCategory_2C9_12](System.Query.IQueryable`1[Product], System.Expressions.Expression`1[System.Query.Func`2[Product,Product+_Anonymous_GetProductsByCategory_2C9_12]]) is not a GenericMethodDefinition. MakeGenericMethod may only be called on a method for which MethodBase.IsGenericMethodDefinition is true.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table class="" bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td class=""&gt;&lt;code&gt;&lt;pre&gt;Line 709:        Where x.CategoryID = CategoryID _
Line 710:        Select x.Products
&lt;font color="red"&gt;Line 711:      Return From y In result, z In y _
&lt;/font&gt;Line 712:        Select z
Line 713:    End Function&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;br /&gt;&lt;b&gt;&lt;font face="Verdana"&gt;Source File: &lt;/font&gt;&lt;/b&gt;c:\Northwind\App_Code\StaticMethods.vb&lt;b&gt;&lt;font face="Verdana"&gt; &amp;nbsp;&amp;nbsp; Line: &lt;/font&gt;&lt;/b&gt;711 &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;font face="Verdana"&gt;Stack Trace:&lt;/font&gt;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table class="" bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td class=""&gt;&lt;code&gt;&lt;pre&gt;[InvalidOperationException: System.Query.IQueryable`1[Product+_Anonymous_GetProductsByCategory_2C9_12] Select[Product,_Anonymous_GetProductsByCategory_2C9_12](System.Query.IQueryable`1[Product], System.Expressions.Expression`1[System.Query.Func`2[Product,Product+_Anonymous_GetProductsByCategory_2C9_12]]) is not a GenericMethodDefinition. MakeGenericMethod may only be called on a method for which MethodBase.IsGenericMethodDefinition is true.]
   System.Reflection.RuntimeMethodInfo.MakeGenericMethod(Type[] methodInstantiation) +2343068
   Product.GetProductsByCategory(Int32 CategoryID) in c:\Northwind\App_Code\StaticMethods.vb:711
   Product.GetFilteredProducts(String tableName, Int32 Products_CategoryID, Int32 Products_SupplierID) in c:\Northwind\App_Code\StaticMethods.vb:735
   Product.GetProducts(String tableName, Int32 Products_CategoryID, Int32 Products_SupplierID, String sortExpression, Int32 startRowIndex, Int32 maximumRows) in c:\Northwind\App_Code\StaticMethods.vb:727

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct&amp;amp; sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +0
   System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) +72
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) +371
   System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +29
   System.Web.UI.WebControls.ObjectDataSourceView.InvokeMethod(ObjectDataSourceMethod method, Boolean disposeInstance, Object&amp;amp; instance) +480
   System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1960
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +17
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +149
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
   System.Web.UI.WebControls.GridView.DataBind() +4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +69
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +50
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
&lt;/pre&gt;&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>