I believe this may be a bug in the .NET runtime or perhaps in LINQ2SQL, but I am not sure where or how to report it? Can anyone help me?
I have a simple C# web page that is using a gridview to display an email log. The grid is bound in the code behind to a LINQ2SQL query and there are no parameters set for the DataSource, or the DataSourceID in the gridview in the .aspx page. This page
works fine in Visual Studio 2010. Compiles, runs with no errors or warnings. When we publish it to a server with IIS 6.0, it displays the following error:
"Both DataSource and DataSourceID are defined on 'gridview1'. Remove one definition"
The solution is to set "grdVendorEmailLogs.DataSourceID = string.Empty;" But why when there is no DataSourceID declared or set to begin with?
Here is the gridview code:
<asp:GridView ID="grdVendorEmailLogs" runat="server" AutoGenerateColumns="false" Width="80%" CssClass="gvHeaderRow" Font-Names="Verdana" Font-Size="Small"> <Columns> &n
View Complete Post