Server Error in '/' Application.

The remote server returned an error: (400) Bad Request.

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.Net.WebException: The remote server returned an error: (400) Bad Request.

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:


[WebException: The remote server returned an error: (400) Bad Request.]
   System.Net.HttpWebRequest.GetResponse() +1751
   HttpWebAdapters.Adapters.HttpWebRequestAdapter.GetResponse() +80
   SolrNet.Impl.SolrConnection.GetResponse(IHttpWebRequest request) +99
   SolrNet.Impl.SolrConnection.Get(String relativeUrl, IEnumerable`1 parameters) +841

[SolrConnectionException: <?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
  <int name="status">400</int>
  <int name="QTime">0</int>
  <lst name="params">
    <arr name="facet.field">
      <str>AuthorTitle</str>
      <str>Prefix</str>
    </arr>
    <str name="fl">id, Title, Description, Created, Details, Zip</str>
    <str name="start">0</str>
    <str name="fq">(Type:5) AND (IsRemove:0) AND -(HideDownload:1) AND -(HideAds:1) AND (CategoriesID:0)</str>
    <str name="sort"> desc</str>
    <str name="rows">30</str>
    <str name="version">2.2</str>
    <str name="q">(Type:5) AND (IsRemove:0) AND -(HideDownload:1) AND -(HideAds:1) AND (CategoriesID:0)</str>
    <str name="facet.limit">50</str>
    <str name="defType">edismax</str>
    <str name="qf">Title^10 Files^6 Description^4 Categories^5 AuthorTitle^5 Details^2</str>
    <str name="facet.mincount">1</str>
    <str name="facet">true</str>
    <str name="wt">xml</str>
  </lst>
</lst>
<lst name="error">
  <lst name="metadata">
    <str name="error-class">org.apache.solr.common.SolrException</str>
    <str name="root-error-class">org.apache.solr.common.SolrException</str>
  </lst>
  <str name="msg">Can't determine a Sort Order (asc or desc) in sort spec ' desc', pos=5</str>
  <int name="code">400</int>
</lst>
</response>
]
   SolrNet.Impl.SolrConnection.Get(String relativeUrl, IEnumerable`1 parameters) +1883
   SolrNet.Impl.SolrQueryExecuter`1.Execute(ISolrQuery q, QueryOptions options) +423
   SolrNet.Impl.SolrBasicServer`1.Query(ISolrQuery query, QueryOptions options) +166
   SolrNet.Impl.SolrServer`1.Query(ISolrQuery query, QueryOptions options) +166
   Fonts.Data.FontsDA.Search(RequestOption option, Boolean rss) +7535
   Fonts.Web.Controllers.HomeController.Search_Rss(String kwd, String c, String a, String f, Int32 r, Int32 p) +535
   lambda_method(Closure , ControllerBase , Object[] ) +405
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +35
   System.Web.Mvc.Async.<>c.<BeginInvokeSynchronousActionMethod>b__9_0(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +39
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +77
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass11_0.<InvokeActionMethodFilterAsynchronouslyRecursive>b__0() +80
   System.Web.Mvc.Async.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +396
   System.Web.Mvc.Async.<>c__DisplayClass11_2.<InvokeActionMethodFilterAsynchronouslyRecursive>b__2() +396
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +42
   System.Web.Mvc.Async.<>c__DisplayClass3_5.<BeginInvokeAction>b__4() +46
   System.Web.Mvc.Async.<>c__DisplayClass3_0.<BeginInvokeAction>b__1(IAsyncResult asyncResult) +180
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginExecuteCore>b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +39
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
   System.Web.Mvc.<>c.<BeginProcessRequest>b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +43
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +73
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +431
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +158


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4770.0