title: Failed to load resource: the server responded with a status of 500 (Internal Server Error) dynamic api
body: <p>downloaded latest(3.0) boilerplate  with zero.</p>
  
  <p>Followed up the task creator application implementation on  codeproject.com</p>
  
  <p>I have added simple entity (Clients) instead of tasks.</p>
  
  <p>The displaying of tasks work fine. However, when I try to add a new client the it seems that the dynamic api is not available and I get the following error:</p>
  
  <p><img src="https://user-images.githubusercontent.com/787313/31309112-f07b8bdc-ab78-11e7-9e0e-400a98dac77a.png" alt="image">
  ClientsController:</p>
  
  <p>`[AbpMvcAuthorize]
      public class ClientsController : MyAppControllerBase
      {
          private readonly IClientAppService _clientService;</p>
  
  <pre><code>    public ClientsController(IClientAppService clientService)
      {
          _clientService = clientService;
      }
  
      public async Task&lt;ViewResult&gt; Index(GetAllClientsInput input)
      {
          var output = await _clientService.GetAll(input);
          var model = new Web.Models.Clients.IndexViewModel(output.Items);
          return View("Index", model);
  
      }
  
      public async Task Create(CreateClientInput input)
      {
          await _clientService.Create(input);
      }
  
      public async Task Delete(CreateClientInput input)
      {
          await _clientService.Create(input);
      }
  }` 
  </code></pre>
  
  <p>Index.js:</p>
  
  <pre><code>(function() {
      $(function() {
  
          var _clientService = abp.services.app.client;
          var _$modal = $('#ClientCreateModal');
          var _$form = _$modal.find('form');
  
          _$form.validate();
  
          _$form.find('button[type="submit"]').click(function (e) {
              e.preventDefault();
  
              if (!_$form.valid()) {
                  return;
              }
  
              var client = _$form.serializeFormToObject(); //serializeFormToObject is defined in main.js
  
              abp.ui.setBusy(_$modal);
              _clientService.create(client).done(function () {
                  _$modal.modal('hide');
                  location.reload(true); //reload page to see new user!
              }).always(function () {
                  abp.ui.clearBusy(_$modal);
              });
          });
  
          _$modal.on('shown.bs.modal', function () {
              _$modal.find('input:not([type=hidden]):first').focus();
          });
      });
  })();
  </code></pre>
  
  <p>Index.cshtml</p>
  
  <pre><code>@section scripts
  {
      &lt;environment names="Development"&gt;
          &lt;script src="~/js/views/clients/Index.js" asp-append-version="true"&gt;&lt;/script&gt;
      &lt;/environment&gt;
  
      &lt;environment names="Staging,Production"&gt;
          &lt;script src="~/js/views/clients/Index.min.js" asp-append-version="true"&gt;&lt;/script&gt;
      &lt;/environment&gt;
  }
  &lt;div class="row clearfix"&gt;
      &lt;div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"&gt;
          &lt;div class="card"&gt;
              &lt;div class="header"&gt;
                  &lt;h2&gt;
                      @L("Clients")
                  &lt;/h2&gt;
                  &lt;ul class="header-dropdown m-r--5"&gt;
                      &lt;li class="dropdown"&gt;
                          &lt;a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"&gt;
                              &lt;i class="material-icons"&gt;more_vert&lt;/i&gt;
                          &lt;/a&gt;
                          &lt;ul class="dropdown-menu pull-right"&gt;
                              &lt;li&gt;&lt;a href="javascript:void(0);" class=" waves-effect waves-block"&gt;Action&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="javascript:void(0);" class=" waves-effect waves-block"&gt;Another action&lt;/a&gt;&lt;/li&gt;
                              &lt;li&gt;&lt;a href="javascript:void(0);" class=" waves-effect waves-block"&gt;Something else here&lt;/a&gt;&lt;/li&gt;
                          &lt;/ul&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;div class="body table-responsive"&gt;
                  &lt;table class="table"&gt;
                      &lt;thead&gt;
                      &lt;tr&gt;
                          &lt;th&gt;@L("UserName")&lt;/th&gt;
                          &lt;th&gt;@L("FullName")&lt;/th&gt;
                          &lt;th&gt;@L("EmailAddress")&lt;/th&gt;
                          &lt;th&gt;@L("IsActive")&lt;/th&gt;
                      &lt;/tr&gt;
                      &lt;/thead&gt;
                      &lt;tbody&gt;
                      @foreach (var user in Model.Clients)
                      {
                          &lt;tr&gt;
                              &lt;td&gt;@user.FirstName&lt;/td&gt;
                              &lt;td&gt;@user.LastName&lt;/td&gt;
                              &lt;td&gt;@user.Email&lt;/td&gt;
                              &lt;td&gt;@user.Mobile&lt;/td&gt;
                          &lt;/tr&gt;
                      }
                      &lt;/tbody&gt;
                  &lt;/table&gt;
                  &lt;button type="button" class="btn btn-primary btn-circle waves-effect waves-circle waves-float pull-right" data-toggle="modal" data-target="#ClientCreateModal"&gt;
                      &lt;i class="material-icons"&gt;add&lt;/i&gt;
                  &lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="modal fade" id="ClientCreateModal" tabindex="-1" role="dialog" aria-labelledby="ClientCreateModalLabel" data-backdrop="static"&gt;
      &lt;div class="modal-dialog" role="document"&gt;
          &lt;div class="modal-content"&gt;
              &lt;form name="userCreateForm" role="form" novalidate class="form-validation"&gt;
                  &lt;div class="modal-header"&gt;
                      &lt;h4 class="modal-title"&gt;
                          &lt;span&gt;@L("CreateNewClient")&lt;/span&gt;
                      &lt;/h4&gt;
                  &lt;/div&gt;
                  &lt;div class="modal-body"&gt;
                      &lt;div class="form-group form-float"&gt;
                          &lt;div class="form-line"&gt;
                              &lt;input class="form-control" type="text" name="FirstName" required maxlength="@AbpUserBase.MaxUserNameLength" minlength="2"&gt;
                              &lt;label class="form-label"&gt;@L("FirstName")&lt;/label&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group form-float"&gt;
                          &lt;div class="form-line"&gt;
                              &lt;input type="text" name="LastName" class="form-control" required maxlength="@AbpUserBase.MaxNameLength"&gt;
                              &lt;label class="form-label"&gt;@L("LastName")&lt;/label&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group form-float"&gt;
                          &lt;div class="form-line"&gt;
                              &lt;input type="text" name="Mobile" class="form-control" required maxlength="@AbpUserBase.MaxSurnameLength"&gt;
                              &lt;label class="form-label"&gt;@L("Mobile")&lt;/label&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;div class="form-group form-float"&gt;
                          &lt;div class="form-line"&gt;
                              &lt;input type="email" name="Email" class="form-control" required maxlength="@AbpUserBase.MaxEmailAddressLength"&gt;
                              &lt;label class="form-label"&gt;@L("Email")&lt;/label&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="modal-footer"&gt;
                      &lt;button type="button" class="btn btn-default waves-effect" data-dismiss="modal"&gt;@L("Cancel")&lt;/button&gt;
                      &lt;button type="submit" class="btn btn-primary waves-effect"&gt;@L("Save")&lt;/button&gt;
                  &lt;/div&gt;
              &lt;/form&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>client service :</p>
  
  <pre><code>[AbpAuthorize(PermissionNames.Pages_Tenants)]
  public class ClientAppService : ApplicationService, IClientAppService
  {
      private readonly IRepository&lt;Client&gt; _clientRepository;
  
      public ClientAppService(IRepository&lt;Client&gt; clientRepository)
      {
          _clientRepository = clientRepository;
      }
  
      public async Task&lt;ListResultDto&lt;ClientListDto&gt;&gt; GetAll(GetAllClientsInput input)
      {
          var clients = await _clientRepository
              .GetAll().ToListAsync&lt;Client&gt;();
  
          return new ListResultDto&lt;ClientListDto&gt;(
              ObjectMapper.Map&lt;List&lt;ClientListDto&gt;&gt;(clients));
      }
  
      public async Task Create(CreateClientInput input)
      {
          var task = ObjectMapper.Map&lt;Client&gt;(input);
          await _clientRepository.InsertAsync(task);
      }
  }
  </code></pre>
  
  <p>the server does not get hit at all on the create action.</p>
  
  <p>any idea what I am missing?</p>