I just learned about BugNET and I am testing it out. I've installed it using a SQL 2008 server. It appears to work fine to the point where I have setup my first project, but if I attempt to go to any project pages (ie Milestones, Categories, Assignees etc) I get the the error below.
I ran SQL Profiler and found an example statement where this occurs:
exec sp_executesql N'SELECT * FROM BugNet_IssuesView WHERE ProjectId=@projectId AND Disabled=0 AND IssueId IN (SELECT IssueId FROM BugNet_Issues WHERE 1=1 AND IssueMilestoneId IS NULL AND IssueAssignedUserId = @p1) ORDER BY IssueId DESC',N'@projectId int,@p1 nvarchar(32)',@projectId=1,@p1=N'357daa0ea9ef4b71a8dee526576177ea'
As you can see it appears that the problem is with converting an nvarchar to a uniqueidentifier. Assuming this isn't an issue in SQL 2005, is there some setting in SQL I can make to avoid this error? I tried changing the Compatability Level of the database to 2005 but that didn't work.
Conversion failed when converting from a character string to uniqueidentifier.
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.Data.SqlClient.SqlException: Conversion failed when converting from a character string to uniqueidentifier.
Source Error:
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. |
Stack Trace:
[SqlException (0x80131904): Conversion failed when converting from a character string to uniqueidentifier.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2811
System.Data.SqlClient.SqlDataReader.HasMoreRows() +290
System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) +297
BugNET.DataAccessLayer.SqlDataProvider.TGenerateIssueListFromReader(SqlDataReader returnData, List`1& issueList) +74
BugNET.DataAccessLayer.SqlDataProvider.TExecuteReaderCmd(SqlCommand sqlCmd, TGenerateListFromReader`1 gcfr, List`1& List) +161
BugNET.DataAccessLayer.SqlDataProvider.PerformQuery(Int32 projectId, List`1 queryClauses) +1274
BugNET.Issues.IssueList.BindIssues() +1912
BugNET.Issues.IssueList.Page_Load(Object sender, EventArgs e) +1163
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
System.Web.UI.Control.OnLoad(EventArgs e) +132
BugNET.UserInterfaceLayer.BasePage.OnLoad(EventArgs e) +21
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
|
Version Information: Microsoft .NET Framework Version:2.0.50727.4200; ASP.NET Version:2.0.50727.4016