
-
1 point Member
-
zazu
- Member since 08-28-2008, 4:35 PM
- Posts 4
|
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:
Server Error in '/Northwind' Application.
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.
Description: 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.
Exception Details: 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.
Source Error:
Line 709: Where x.CategoryID = CategoryID _
Line 710: Select x.Products
Line 711: Return From y In result, z In y _
Line 712: Select z
Line 713: End Function | Source File: c:\Northwind\App_Code\StaticMethods.vb Line: 711
Stack Trace:
[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& 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& 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
|
|
|