Author Topic: ERROR - Masterunitlist compilation error  (Read 2119 times)

Pezmotion

  • Recruit
  • *
  • Posts: 10
ERROR - Masterunitlist compilation error
« on: 18 August 2016, 17:51:46 »
When attempting to search the MUL, I got the below compilation error (full screenshot attached). The URL was http://www.masterunitlist.info/Unit/Filter?Name=Highlander . Steps to replicate are:

1 - go to the homepage
2 - Type something in the text field ("Highlander")
3 - Hit Enter / search

Compiler Error Message: CS1061: 'MUL2.Models.OptionDto' does not contain a definition for 'SortOrder' and no extension method 'SortOrder' accepting a first argument of type 'MUL2.Models.OptionDto' could be found (are you missing a using directive or an assembly reference?)

Mech42ace

  • Lieutenant
  • *
  • Posts: 1295
    • DeviantArt
Re: ERROR - Masterunitlist compilation error
« Reply #1 on: 18 August 2016, 17:57:17 »
Interesting I'm getting an error, but with a slight difference in the coding.


Line 2: 
Line 3:  <div class="panel-group" id="Units">
Line 4:     @foreach (var type in Model.GroupBy(u =>u.Type).OrderBy(g=>g.Key.SortOrder))
Line 5:  {
Line 6:     <div class="panel panel-default">
At Comstar we listen. It's that simple.

cavingjan

  • Spelunca Custos
  • BattleTech Volunteer
  • Major
  • *
  • Posts: 4470
    • warrenborn
Re: ERROR - Masterunitlist compilation error
« Reply #2 on: 18 August 2016, 18:18:40 »
It has already been reported in the MUL thread and sent on to the developer.

Pezmotion

  • Recruit
  • *
  • Posts: 10
Re: ERROR - Masterunitlist compilation error
« Reply #3 on: 19 August 2016, 13:00:17 »
Thanks. For future reference, which MUL thread are you referring to? Just want to make sure I post bug reports correctly.

Xotl

  • Dominus Erratorum
  • BattleTech Developer
  • Lieutenant Colonel
  • *
  • Posts: 11644
  • Professor of Errata
3028-3057 Random Assignment Tables -
Also contains faction deployment & rarity info.

http://bg.battletech.com/forums/index.php?topic=1219.0

cavingjan

  • Spelunca Custos
  • BattleTech Volunteer
  • Major
  • *
  • Posts: 4470
    • warrenborn
Re: ERROR - Masterunitlist compilation error
« Reply #5 on: 26 August 2016, 11:52:49 »
In case you hadn't noticed in the other thread, both issues should be fixed now.