Quantcast
Channel: BugNET Issue Tracker (Moved to GitHub)
Viewing all articles
Browse latest Browse all 2179

Commented Issue: Error when saving query [81]

$
0
0
When I want to save a query in version 1.2.231.0, the following exception was thrown :<br />An SqlParameter with ParameterName '@CustomFieldId' is not contained by this SqlParameterCollection.<br /> at System.Data.SqlClient.SqlParameterCollection.GetParameter(String parameterName)<br /> at System.Data.SqlClient.SqlParameterCollection.get_Item(String parameterName)<br /> at BugNET.Providers.DataProviders.SqlDataProvider.SaveQuery(String userName, Int32 projectId, String queryName, Boolean isPublic, List`1 queryClauses)<br /> at BugNET.BLL.QueryManager.SaveOrUpdate(String userName, Int32 projectId, Query entity)<br /> at BugNET.Queries.QueryDetail.SaveQuery()<br /> at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)<br /> at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<br /><br />I modified the line 1892 of SqlDataProvider.cs : <br />cmdClause.Parameters.Add("@IsCustomField", SqlDbType.Bit); <br />to<br />cmdClause.Parameters.Add("@CustomFieldId", SqlDbType.Int);<br /><br />
Comments: It was after an upgrade from 0.7.719 to 1.2.231

Viewing all articles
Browse latest Browse all 2179

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>