MayoorPatel
Programmer
Hi there this is the error im getting.
when i try to run my asp.net application.
line 221 in decisiondata is
and line 10 in decision.vb is
I can post up the whole functions if anyone wants to see them?
Cheers for any help!
Mayoor
when i try to run my asp.net application.
Code:
Stack Trace:
[SqlException: The text, ntext, or image data type cannot be selected as DISTINCT.]
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +742
System.Data.SqlClient.SqlCommand.ExecuteScalar() +177
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) +78
Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteScalar(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +88
DCA.TribunalsService.LandsAdjudicator.Data.DecisionData.SearchPaged(SearchCriteria criteria, Int32 page, Int32 size, Int32& resultsCount) in C:\Documents and Settings\TSDATABASE\My Documents\Visual Studio Projects\Lands\LandsData\DecisionData.vb:221
DCA.TribunalsService.LandsAdjudicator.Business.Decision.SearchPaged(SearchCriteria criteria, Int32 page, Int32 size, Int32& resultsCount) in C:\Documents and Settings\TSDATABASE\My Documents\Visual Studio Projects\Lands\LandsBusiness\Decision.vb:10
DCA.TribunalsService.LandsAdjudicator.Web.Search.PopulateGrid() in c:\inetpub\[URL unfurl="true"]wwwroot\LandsAdjudicator\Aspx\Default.aspx.vb:107[/URL]
DCA.TribunalsService.LandsAdjudicator.Web.Search.Page_PreRender(Object sender, EventArgs e) in c:\inetpub\[URL unfurl="true"]wwwroot\LandsAdjudicator\Aspx\Default.aspx.vb:95[/URL]
System.Web.UI.Control.OnPreRender(EventArgs e) +67
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Page.ProcessRequestMain() +1499
line 221 in decisiondata is
Code:
resultsCount = CInt(SqlHelper.ExecuteScalar(Configuration.SqlConnectionString(), CommandType.Text, sqlRowCount, parameters))
and line 10 in decision.vb is
Code:
Return data.SearchPaged(criteria, page, size, resultsCount)
I can post up the whole functions if anyone wants to see them?
Cheers for any help!
Mayoor