﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Trouble binding WebGrid to ObjectDataSource using DataSet - OutOfMemoryException</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Trouble-binding-WebGrid-to-ObjectDataSource-using-DataSet---OutOfMemoryException/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Trouble binding WebGrid to ObjectDataSource using DataSet - OutOfMemoryException</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Trouble-binding-WebGrid-to-ObjectDataSource-using-DataSet---OutOfMemoryException/</link><pubDate>Thu, 09 Feb 2012 14:43:15 GMT</pubDate><dc:creator>adajani@najiasystems.com</dc:creator><description>&lt;p&gt;The problem is resolved (Phew)&lt;br /&gt;&lt;br /&gt;Yudi and I walked through the deployment issue and it boiled down to Web.Config settings&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The problem is resolved (Phew)&lt;br /&gt;&lt;br /&gt;Yudi and I walked through the deployment issue and it boiled down to Web.Config settings&lt;/p&gt;&lt;pre&gt;&amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  --&amp;gt;
&amp;lt;configuration&amp;gt;
    &amp;lt;configSections&amp;gt;
    &amp;lt;/configSections&amp;gt;
    &amp;lt;appSettings file=""&amp;gt;
        
        &amp;lt;clear /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.ISRes_Registered" value="true" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.RunTimeLicenseKey" value="xxxxx-xxxx-xxxxx" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.SharedScriptDirectory"
         value="~/CommonLibrary/Shared/" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.ScriptDirectory" value="~/CommonLibrary/WebGrid/V7_0_7200/" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.ImagesDirectory" value="~/CommonLibrary/Images/" /&amp;gt;
        &amp;lt;add key="AppName" value="AARS" /&amp;gt;
    
    &amp;lt;/appSettings&amp;gt;
    &amp;lt;system.web&amp;gt;
        &amp;lt;customErrors defaultRedirect="/Errors/Oops.aspx" mode="On"&amp;gt;
        &amp;lt;/customErrors&amp;gt;
        &amp;lt;compilation debug="true" strict="false" explicit="true" targetFramework="4.0"&amp;gt;
            &amp;lt;assemblies&amp;gt;
&amp;lt;!-- make sure there are no ISnet References in here --&amp;gt;
            &amp;lt;/assemblies&amp;gt;
        &amp;lt;/compilation&amp;gt;
        &amp;lt;authorization&amp;gt;
            &amp;lt;deny users="?" /&amp;gt;
        &amp;lt;/authorization&amp;gt;
        &amp;lt;authentication mode="Forms"&amp;gt;
            &amp;lt;forms loginUrl="~/Login" timeout="2880" name=".ASPXAUTH" protection="All"/&amp;gt;
        &amp;lt;/authentication&amp;gt;
        &amp;lt;membership&amp;gt;
            &amp;lt;providers&amp;gt;
                &amp;lt;clear/&amp;gt;
                &amp;lt;add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/&amp;gt;
            &amp;lt;/providers&amp;gt;
        &amp;lt;/membership&amp;gt;
        &amp;lt;profile&amp;gt;
            &amp;lt;providers&amp;gt;
                &amp;lt;clear/&amp;gt;
                &amp;lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/&amp;gt;
            &amp;lt;/providers&amp;gt;
        &amp;lt;/profile&amp;gt;
        &amp;lt;roleManager enabled="false"&amp;gt;
            &amp;lt;providers&amp;gt;
                &amp;lt;clear/&amp;gt;
                &amp;lt;add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/&amp;gt;
                &amp;lt;add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/&amp;gt;
            &amp;lt;/providers&amp;gt;
        &amp;lt;/roleManager&amp;gt;
        &amp;lt;pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/&amp;gt;
    &amp;lt;/system.web&amp;gt;
    &amp;lt;system.webServer&amp;gt;
        &amp;lt;modules/&amp;gt;
        &amp;lt;validation validateIntegratedModeConfiguration="false"/&amp;gt;
        &amp;lt;handlers&amp;gt;&lt;br /&gt;&amp;lt;!-- this is key --&amp;gt;&lt;br /&gt;&amp;lt;add name="ISRes.axd_GET" path="ISRes.axd" verb="GET" type="ISNet.WebUI.WebResourceHandler, ISNet.WebUI, Version=3.0.5000.1, Culture=neutral, PublicKeyToken=b1f2a8511635667a" preCondition="integratedMode"/&amp;gt;
        &amp;lt;/handlers&amp;gt;
    &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt; plus IIS 7 deployment issue. &lt;br /&gt;&lt;br /&gt;Problem was VS 2010 was adding ISNet and ISNet.WebUI was being added to my project through GAC. When you add the references to your project, click the reference, check the properties and make sure the CopyLocal is set to True.&lt;br /&gt;&lt;br /&gt;Your webconfig should look like:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  --&amp;gt;
&amp;lt;configuration&amp;gt;
    &amp;lt;configSections&amp;gt;
    &amp;lt;/configSections&amp;gt;
    &amp;lt;appSettings file=""&amp;gt;
        
        &amp;lt;clear /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.ISRes_Registered" value="true" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.RunTimeLicenseKey" value="xxxxx-xxxx-xxxxx" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.SharedScriptDirectory"
         value="~/CommonLibrary/Shared/" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.ScriptDirectory" value="~/CommonLibrary/WebGrid/V7_0_7200/" /&amp;gt;
        &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.ImagesDirectory" value="~/CommonLibrary/Images/" /&amp;gt;
        &amp;lt;add key="AppName" value="AARS" /&amp;gt;
    
    &amp;lt;/appSettings&amp;gt;
    &amp;lt;system.web&amp;gt;
        &amp;lt;customErrors defaultRedirect="/Errors/Oops.aspx" mode="On"&amp;gt;
        &amp;lt;/customErrors&amp;gt;
        &amp;lt;compilation debug="true" strict="false" explicit="true" targetFramework="4.0"&amp;gt;
            &amp;lt;assemblies&amp;gt;
&amp;lt;!-- make sure there are no ISnet References in here --&amp;gt;
            &amp;lt;/assemblies&amp;gt;
        &amp;lt;/compilation&amp;gt;
        &amp;lt;authorization&amp;gt;
            &amp;lt;deny users="?" /&amp;gt;
        &amp;lt;/authorization&amp;gt;
        &amp;lt;authentication mode="Forms"&amp;gt;
            &amp;lt;forms loginUrl="~/Login" timeout="2880" name=".ASPXAUTH" protection="All"/&amp;gt;
        &amp;lt;/authentication&amp;gt;
        &amp;lt;membership&amp;gt;
            &amp;lt;providers&amp;gt;
                &amp;lt;clear/&amp;gt;
                &amp;lt;add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/&amp;gt;
            &amp;lt;/providers&amp;gt;
        &amp;lt;/membership&amp;gt;
        &amp;lt;profile&amp;gt;
            &amp;lt;providers&amp;gt;
                &amp;lt;clear/&amp;gt;
                &amp;lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/&amp;gt;
            &amp;lt;/providers&amp;gt;
        &amp;lt;/profile&amp;gt;
        &amp;lt;roleManager enabled="false"&amp;gt;
            &amp;lt;providers&amp;gt;
                &amp;lt;clear/&amp;gt;
                &amp;lt;add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/&amp;gt;
                &amp;lt;add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/&amp;gt;
            &amp;lt;/providers&amp;gt;
        &amp;lt;/roleManager&amp;gt;
        &amp;lt;pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/&amp;gt;
    &amp;lt;/system.web&amp;gt;
    &amp;lt;system.webServer&amp;gt;
        &amp;lt;modules/&amp;gt;
        &amp;lt;validation validateIntegratedModeConfiguration="false"/&amp;gt;
        &amp;lt;handlers&amp;gt;&lt;br /&gt;&amp;lt;!-- this is key --&amp;gt;&lt;br /&gt;&amp;lt;add name="ISRes.axd_GET" path="ISRes.axd" verb="GET" type="ISNet.WebUI.WebResourceHandler, ISNet.WebUI, Version=3.0.5000.1, Culture=neutral, PublicKeyToken=b1f2a8511635667a" preCondition="integratedMode"/&amp;gt;
        &amp;lt;/handlers&amp;gt;
    &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;
</description></item><item><title>Trouble binding WebGrid to ObjectDataSource using DataSet - OutOfMemoryException</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Trouble-binding-WebGrid-to-ObjectDataSource-using-DataSet---OutOfMemoryException/</link><pubDate>Wed, 08 Feb 2012 15:51:50 GMT</pubDate><dc:creator>adajani@najiasystems.com</dc:creator><description>I just rolled back all my projects to .NET 2.0 and tried to deploy that way and it still failed. &lt;br /&gt;&lt;br /&gt;Please let me know what I'm missing to do for this project to deploy with webgrid installed.&lt;br /&gt;</description></item><item><title>Trouble binding WebGrid to ObjectDataSource using DataSet - OutOfMemoryException</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Trouble-binding-WebGrid-to-ObjectDataSource-using-DataSet---OutOfMemoryException/</link><pubDate>Wed, 08 Feb 2012 15:35:48 GMT</pubDate><dc:creator>adajani@najiasystems.com</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;br /&gt;&lt;br /&gt;Turns out this may be a WebGrid Specific error. Here's how I've come to this conclusion:&lt;br /&gt;&lt;br /&gt;I took out all references to the webgrid project and deployed with a regular .NET grid to my prod server and I got the site to display.  Then I re-added all webgrid references back to the project, but still kept the regular .net grid. Deployed and I got the OutOfMemoryException error. &lt;br /&gt;&lt;br /&gt;Is there something I need to add to my web.config ? IIS?&lt;br /&gt;&lt;br /&gt;my webconfig is attached:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;&amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;!--  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  --&amp;gt;
&amp;lt;configuration&amp;gt;
  &amp;lt;appSettings&amp;gt;
    &amp;lt;clear/&amp;gt;
    &amp;lt;add key="ISNet.WebUI.ISRes_Registered" value="true"/&amp;gt;
    &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.RunTimeLicenseKey" value="XXX"/&amp;gt;
    &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.SharedScriptDirectory" value="~/CommonLibrary/Shared/"/&amp;gt;
    &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.ScriptDirectory" value="~/CommonLibrary/WebGrid/V7_0_7200/"/&amp;gt;
    &amp;lt;add key="ISNet.WebUI.WebGrid.v7_0_7200.ImagesDirectory" value="~/CommonLibrary/Images/"/&amp;gt;
  &amp;lt;/appSettings&amp;gt;
  &amp;lt;connectionStrings&amp;gt;
    &amp;lt;!--&amp;lt;add name="ApplicationServices"
         connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true"
         providerName="System.Data.SqlClient" /&amp;gt;--&amp;gt;
  &amp;lt;/connectionStrings&amp;gt;
  &amp;lt;system.web&amp;gt;
    &amp;lt;compilation debug="true" strict="false" explicit="true" targetFramework="4.0"&amp;gt;
      &amp;lt;assemblies&amp;gt;
        &amp;lt;add assembly="ISNet.ActiveReports.Exporting, Version=5.0.7200.1, Culture=neutral, PublicKeyToken=B1F2A8511635667A"/&amp;gt;
        &amp;lt;add assembly="ISNet.WebUI, Version=3.0.5000.1, Culture=neutral, PublicKeyToken=B1F2A8511635667A"/&amp;gt;
        &amp;lt;add assembly="ISNet, Version=3.0.5000.1, Culture=neutral, PublicKeyToken=B1F2A8511635667A"/&amp;gt;
        &amp;lt;add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/&amp;gt;
        &amp;lt;add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/&amp;gt;
      &amp;lt;/assemblies&amp;gt;
    &amp;lt;/compilation&amp;gt;
    &amp;lt;!--&amp;lt;authentication mode="Forms"&amp;gt;
      &amp;lt;forms loginUrl="~/Account/Login.aspx" timeout="2880" /&amp;gt;
    &amp;lt;/authentication&amp;gt;--&amp;gt;
    &amp;lt;membership&amp;gt;
      &amp;lt;providers&amp;gt;
        &amp;lt;clear/&amp;gt;
        &amp;lt;add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ApplicationServices" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="6" minRequiredNonalphanumericCharacters="0" passwordAttemptWindow="10" applicationName="/"/&amp;gt;
      &amp;lt;/providers&amp;gt;
    &amp;lt;/membership&amp;gt;
    &amp;lt;profile&amp;gt;
      &amp;lt;providers&amp;gt;
        &amp;lt;clear/&amp;gt;
        &amp;lt;add name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" connectionStringName="ApplicationServices" applicationName="/"/&amp;gt;
      &amp;lt;/providers&amp;gt;
    &amp;lt;/profile&amp;gt;
    &amp;lt;roleManager enabled="false"&amp;gt;
      &amp;lt;providers&amp;gt;
        &amp;lt;clear/&amp;gt;
        &amp;lt;add name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" connectionStringName="ApplicationServices" applicationName="/"/&amp;gt;
        &amp;lt;add name="AspNetWindowsTokenRoleProvider" type="System.Web.Security.WindowsTokenRoleProvider" applicationName="/"/&amp;gt;
      &amp;lt;/providers&amp;gt;
    &amp;lt;/roleManager&amp;gt;
    &amp;lt;pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/&amp;gt;
  &amp;lt;/system.web&amp;gt;
  &amp;lt;system.webServer&amp;gt;
    &amp;lt;modules runAllManagedModulesForAllRequests="true"/&amp;gt;
  &amp;lt;/system.webServer&amp;gt;
&amp;lt;/configuration&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Is there any issue for WebGird to run in .NET 4.0?&lt;br /&gt;
</description></item><item><title>Trouble binding WebGrid to ObjectDataSource using DataSet - OutOfMemoryException</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Trouble-binding-WebGrid-to-ObjectDataSource-using-DataSet---OutOfMemoryException/</link><pubDate>Tue, 07 Feb 2012 16:45:23 GMT</pubDate><dc:creator>adajani@najiasystems.com</dc:creator><description>&lt;p&gt;Hi Yudi,&lt;br /&gt;&lt;br /&gt;I've actually tried that too and it also does not work. I was hoping you can offer some insight. I am wondering if there's some setting I'm missing or if my implementation is just bad.&lt;/p&gt;&lt;p&gt;I should mention I'm using WebGrid 7.0.7200.431. I'm running the application under a .NET 4.0 Classic Application Pool.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Trouble binding WebGrid to ObjectDataSource using DataSet - OutOfMemoryException</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Trouble-binding-WebGrid-to-ObjectDataSource-using-DataSet---OutOfMemoryException/</link><pubDate>Tue, 07 Feb 2012 16:31:18 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;As stated in your initial message that the code works fine on the development machine but not on the server, could you please try to bind ASP.NET GridView to the odsMyList ASP.NET ObjectDataSource control in the server and let us know whether it works or not?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;Look forward to hearing back from you.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Trouble binding WebGrid to ObjectDataSource using DataSet - OutOfMemoryException</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Trouble-binding-WebGrid-to-ObjectDataSource-using-DataSet---OutOfMemoryException/</link><pubDate>Tue, 07 Feb 2012 14:40:59 GMT</pubDate><dc:creator>adajani@najiasystems.com</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I've been stuck on the following problem for a week and it's driving me nuts! Please help.&lt;/p&gt;
&lt;p&gt;The code below works fine on my development machine (VS 2010 .NET 
4.0) but continues to fail on the server (IIS 7 .NET 4.0 RAM: 4GB). 
Basically I'm trying to bind my grid with an ObjectDataSource using a 
DataSet, or even a DataTable. Simple task!&lt;/p&gt;
&lt;p&gt;aspx:&lt;/p&gt;&lt;br /&gt;&lt;pre&gt;&amp;lt;%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.vb" Inherits="TestWebGrid._Default" %&amp;gt;
&amp;lt;%@ MasterType VirtualPath="~/Site.Master" %&amp;gt;
&amp;lt;%@ Register Assembly="ISNet.WebUI.WebGrid" Namespace="ISNet.WebUI.WebGrid" TagPrefix="ISWebGrid" %&amp;gt;
&amp;lt;asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent"&amp;gt;
&amp;lt;/asp:Content&amp;gt;
&amp;lt;asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent"&amp;gt;
&amp;lt;ISWebGrid:WebGrid ID="myGrid" runat="server" Height="300px" Width="100%" UseDefaultStyle="true"         DataSourceID="odsMyList"&amp;gt;
        &amp;lt;RootTable GridLineStyle="NotSet" DataKeyField="some_id"&amp;gt;
            &amp;lt;Columns&amp;gt;
                &amp;lt;ISWebGrid:WebGridColumn Name="some_id" DataMember="some_id"/&amp;gt;
            &amp;lt;/Columns&amp;gt;
        &amp;lt;/RootTable&amp;gt;
        &amp;lt;LayoutSettings GridLines="Default" AllowDelete="No" AllowEdit="No" AllowAddNew="No" &amp;gt;
        &amp;lt;/LayoutSettings&amp;gt;
    &amp;lt;/ISWebGrid:WebGrid&amp;gt;
    &amp;lt;asp:ObjectDataSource ID="odsMyList" runat="server" 
                          TypeName="WebGridBLL.WebGridManager" 
                          SelectMethod="GetData"&amp;gt;
        &amp;lt;SelectParameters&amp;gt;
            &amp;lt;asp:Parameter DefaultValue="0" Name="myParam" Type="String" /&amp;gt;
        &amp;lt;/SelectParameters&amp;gt;
    &amp;lt;/asp:ObjectDataSource&amp;gt;
&amp;lt;/asp:Content&amp;gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;There's nothing to do in the code behind of the ASPX.&lt;/p&gt;
&lt;p&gt;My BLL is in the same solution and the references are added fine. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;BLL:&lt;/p&gt;&lt;pre&gt;Imports System.Data
Imports System.Data.SqlClient
Public Class WebGridManager
' note blocked out connection string
    Private ReadOnly _connectionString As String = "XXX"
    Public csbaData As DataSet
    Public Sub New()
    End Sub
    ''' &amp;lt;summary&amp;gt;
    ''' 
    ''' &amp;lt;/summary&amp;gt;
    ''' &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;
    ''' &amp;lt;remarks&amp;gt;&amp;lt;/remarks&amp;gt;
    Public Function GetData(ByVal myParam As String) As DataSet
        csbaData = New DataSet
        Dim connectionString As String = _connectionString
        Dim conn As New SqlConnection(connectionString)
        conn.Open()
        Try
            Dim command As New SqlCommand("SELECT * FROM MyTable", conn)
            command.CommandType = System.Data.CommandType.Text
            Dim da As New SqlDataAdapter(command)
            da.Fill(csbaData)
        Finally
            If Not IsNothing(conn) Then
                If conn.State &amp;lt;&amp;gt; ConnectionState.Closed Then
                    conn.Close()
                    conn.Dispose()
                End If
            End If
        End Try
        Return csbaData
    End Function
End Class&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;The error I get on the server:&lt;/p&gt;&lt;pre&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 
OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type) &amp;#43;0
   System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase) &amp;#43;67
   System.Web.UI.Util.GetTypeFromAssemblies(IEnumerable assemblies, String typeName, Boolean ignoreCase) &amp;#43;146
   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) &amp;#43;8940004
   System.Web.UI.WebControls.ObjectDataSourceView.GetType(String typeName) &amp;#43;76
   System.Web.UI.WebControls.ObjectDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) &amp;#43;1812
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) &amp;#43;21
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() &amp;#43;143
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() &amp;#43;74
   System.Web.UI.WebControls.GridView.DataBind() &amp;#43;4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() &amp;#43;66
   System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() &amp;#43;75
   System.Web.UI.Control.EnsureChildControls() &amp;#43;102
   System.Web.UI.Control.PreRenderRecursiveInternal() &amp;#43;42
   System.Web.UI.Control.PreRenderRecursiveInternal() &amp;#43;175
   System.Web.UI.Control.PreRenderRecursiveInternal() &amp;#43;175
   System.Web.UI.Control.PreRenderRecursiveInternal() &amp;#43;175
   System.Web.UI.Control.PreRenderRecursiveInternal() &amp;#43;175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) &amp;#43;2496&lt;/pre&gt;
&lt;p&gt;I know this isn't a memory issue because I can bind the grid using a 
SqlDataSource, but we really need to use the ObjectDataSource here. I'm 
also only loading 19 records to the grid.&lt;/p&gt;
&lt;p&gt;Your help is greatly appreciated.&lt;br /&gt;&lt;/p&gt;
</description></item></channel></rss>