This project is read-only.



Using your example I get the following error:
System.NullReferenceException was unhandled by user code
Message=Object reference not set to an instance of an object.
   at Ideal.API.LinqTextQueryBuilder.LinqTextQueryRuntimeProfiler.AddEntryAssemblyReferences_()
   at Ideal.API.LinqTextQueryBuilder.LinqTextQueryRuntimeProfiler.CreateRuntimeQuery[TSource](String queryText)
   at Ideal.API.LinqTextQueryBuilder.LinqTextQueryBuilder`1.Query(String queryText)
   at CourseManager.Controllers.ScoreController.SearchX() in C:\Users\mikebethany\Dropbox\windev\OneStopOnlineCourses\CourseManager\CourseManager\Controllers\ScoreController.cs:line 75
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
I'll now install the code and take a look at it to see if I can fix it.


MikBe wrote Jul 2, 2012 at 7:28 PM

The first bug I found was in:


You get the entry assembly and then call LinqTextQueryRuntimeProfiler.AddAssembly( string assemblyLocation ) but you don't test to see if entryAssembly is null before reaching into it and trying to read the Location property. This throws an unhandled exception if the entryAssembly is null.

After fixing that the next error, also from a failure to test for null values, is in Ideal.API.LinqTextQueryBuilder.LinqTextQueryRuntime`1.CreateRuntimeAssembly(String queryText).

At that point I felt there was an inherent design flaw so stopped delving any deeper.

Oh, and your blog has a server error that stops anyone from leaving a comment; it's not generating the anti-spam check.

wrote Feb 14, 2013 at 3:06 AM