Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "ajayak"

I'm using AspNetZero 5.0.2 Logs:

INFO  2017-11-28 15:29:40,955 [3    ] ore.Mvc.Internal.ControllerActionInvoker - Executing action method Cynet.PrimePenguin.Configuration.Tenants.TenantSettingsAppService.SendTestEmail (Cynet.PrimePenguin.Application) with arguments (Cynet.PrimePenguin.Configuration.Host.Dto.SendTestEmailInput) - ModelState is Valid
ERROR 2017-11-28 15:30:28,430 [3    ] Mvc.ExceptionHandling.AbpExceptionFilter - Unknown initialization parameter: MimeKit.ParserOptions
System.ArgumentException: Unknown initialization parameter: MimeKit.ParserOptions
   at MimeKit.MimeMessage..ctor(Object[] args)
   at Abp.MailKit.EmailExtensions.ToMimeMessage(MailMessage mail) in D:\Github\aspnetboilerplate\src\Abp.MailKit\EmailExtensions.cs:line 34
   at Abp.MailKit.MailKitEmailSender.<SendEmailAsync>d__4.MoveNext() in D:\Github\aspnetboilerplate\src\Abp.MailKit\MailKitEmailSender.cs:line 46
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Net.Mail.EmailSenderBase.<SendAsync>d__8.MoveNext() in D:\Github\aspnetboilerplate\src\Abp\Net\Mail\EmailSenderBase.cs:line 63
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Abp.Net.Mail.EmailSenderBase.<SendAsync>d__4.MoveNext() in D:\Github\aspnetboilerplate\src\Abp\Net\Mail\EmailSenderBase.cs:line 26
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cynet.PrimePenguin.Configuration.SettingsAppServiceBase.<SendTestEmail>d__2.MoveNext() in C:\AK\PrimePenguin\PrimePenguin.Service\src\Cynet.PrimePenguin.Application\Configuration\SettingsAppServiceBase.cs:line 21
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextExceptionFilterAsync>d__23.MoveNext()
INFO  2017-11-28 15:30:28,447 [3    ] etCore.Mvc.Internal.ObjectResultExecutor - Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext.
INFO  2017-11-28 15:30:28,451 [3    ] ore.Mvc.Internal.ControllerActionInvoker - Executed action Cynet.PrimePenguin.Configuration.Tenants.TenantSettingsAppService.SendTestEmail (Cynet.PrimePenguin.Application) in 47510.2677ms
INFO  2017-11-28 15:30:28,454 [3    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 47530.2369ms 500 application/json; charset=utf-8

After upgrading to AspNetZero v5.0.1, Azure CI is failing for Angular app. I am able to build the solution successfully on my dev machine but the build fails on Azure Hosted Linux.

The build is successful in Hosted VS2017 but it takes 10 minutes to build whereas earlier using Hosted Linux, it only took 4 minutes to build. Can you please do something on this?

Here are the build logs on Hosted Linux:

2017-11-27T03:24:47.3233160Z ##[section]Starting: Yarn Build
2017-11-27T03:24:47.3291270Z ==============================================================================
2017-11-27T03:24:47.3305210Z Task         : Command Line
2017-11-27T03:24:47.3319800Z Description  : Run a command line with arguments
2017-11-27T03:24:47.3333960Z Version      : 1.1.3
2017-11-27T03:24:47.3348210Z Author       : Microsoft Corporation
2017-11-27T03:24:47.3367670Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
2017-11-27T03:24:47.3381620Z ==============================================================================
2017-11-27T03:24:47.6241110Z [command]/opt/vsts/work/_tool/yarn/1.3.2/x64/yarn-v1.3.2/bin/yarn build
2017-11-27T03:24:48.2473380Z yarn run v1.3.2
2017-11-27T03:24:48.3438480Z $ ng build --prod --no-aot

---------------------REMOVED UNNECESSORY LINES------------------------

2017-11-27T03:27:11.0117360Z 
2017-11-27T03:27:11.0142280Z ERROR in multi ./node_modules/tether/dist/css/tether.css ./node_modules/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css ./node_modules/prismjs/themes/prism.css ./node_modules/bootstrap-timepicker/css/bootstrap-timepicker.min.css ./node_modules/bootstrap-daterangepicker/daterangepicker.css ./node_modules/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css ./node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css ./node_modules/bootstrap-select/dist/css/bootstrap-select.css ./node_modules/select2/dist/css/select2.css ./node_modules/rangeslider.js/dist/rangeslider.css ./node_modules/ion-rangeSlider/css/ion.rangeSlider.css ./node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css ./node_modules/dropzone/dist/dropzone.css ./node_modules/summernote/dist/summernote.css ./node_modules/bootstrap-markdown/css/bootstrap-markdown.min.css ./node_modules/animate.css/animate.min.css ./node_modules/toastr/build/toastr.css ./node_modules/jstree/dist/themes/default/style.css ./node_modules/morris.js/morris.css ./node_modules/chartist/dist/chartist.css ./node_modules/socicon/css/socicon.css ./node_modules/font-awesome/css/font-awesome.css ./node_modules/quill/dist/quill.core.css ./node_modules/quill/dist/quill.snow.css ./node_modules/famfamfam-flags/dist/sprite/famfamfam-flags.css ./node_modules/primeng/resources/primeng.min.css ./node_modules/primeng/resources/themes/bootstrap/theme.css ./node_modules/bootstrap4-datetimepicker/build/css/bootstrap-datetimepicker.min.css ./src/assets/metronic/src/vendors/line-awesome/css/line-awesome.css ./src/assets/metronic/src/vendors/flaticon/css/flaticon.css ./src/assets/metronic/src/vendors/metronic/css/styles.css ./src/assets/metronic/dist/html/default/assets/demo/default/base/style.bundle.css ./src/assets/metronic/4x/datatables/datatables.min.css ./src/assets/metronic/4x/datatables/plugins/bootstrap/datatables.bootstrap.css ./src/assets/metronic/4x/css/invoice.css ./src/assets/Jcrop/css/Jcrop.css ./src/assets/primeng/datatable/css/primeng.datatable.css ./src/assets/primeng/file-upload/css/primeng.file-upload.css ./src/assets/primeng/autocomplete/css/primeng.autocomplete.css ./src/assets/common/styles/metronic-customize.less ./src/assets/common/styles/metronic-customize-angular.less ./src/assets/metronic/4x/css/pricing.min.css ./src/app/shared/core.less ./src/app/shared/layout/layout.less ./src/assets/fonts/fonts-poppins.css ./src/assets/fonts/fonts-roboto.css ./src/styles.css
2017-11-27T03:27:11.0164420Z Module not found: Error: Can't resolve '/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css' in '/opt/vsts/work/1/s/node_modules/@angular/cli/models/webpack-configs'
2017-11-27T03:27:11.0178290Z resolve '/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css' in '/opt/vsts/work/1/s/node_modules/@angular/cli/models/webpack-configs'
2017-11-27T03:27:11.0191940Z   using description file: /opt/vsts/work/1/s/node_modules/@angular/cli/package.json (relative path: ./models/webpack-configs)
2017-11-27T03:27:11.0204990Z     Field 'browser' doesn't contain a valid alias configuration
2017-11-27T03:27:11.0225050Z   after using description file: /opt/vsts/work/1/s/node_modules/@angular/cli/package.json (relative path: ./models/webpack-configs)
2017-11-27T03:27:11.0243930Z     using description file: /opt/vsts/work/1/s/package.json (relative path: ./node_modules/ion-rangeSlider/css/ion.rangeSlider.css)
2017-11-27T03:27:11.0258890Z       no extension
2017-11-27T03:27:11.0272480Z         Field 'browser' doesn't contain a valid alias configuration
2017-11-27T03:27:11.0285920Z         /opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css doesn't exist
2017-11-27T03:27:11.0300690Z       .ts
2017-11-27T03:27:11.0314890Z         Field 'browser' doesn't contain a valid alias configuration
2017-11-27T03:27:11.0334230Z         /opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css.ts doesn't exist
2017-11-27T03:27:11.0347930Z       .js
2017-11-27T03:27:11.0360940Z         Field 'browser' doesn't contain a valid alias configuration
2017-11-27T03:27:11.0376320Z         /opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css.js doesn't exist
2017-11-27T03:27:11.0390650Z       as directory
2017-11-27T03:27:11.0404730Z         /opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css doesn't exist
2017-11-27T03:27:11.0419130Z [/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css]
2017-11-27T03:27:11.0439580Z [/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css.ts]
2017-11-27T03:27:11.0454540Z [/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css.js]
2017-11-27T03:27:11.0468750Z [/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.css]
2017-11-27T03:27:11.0492560Z  @ multi ./node_modules/tether/dist/css/tether.css ./node_modules/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css ./node_modules/prismjs/themes/prism.css ./node_modules/bootstrap-timepicker/css/bootstrap-timepicker.min.css ./node_modules/bootstrap-daterangepicker/daterangepicker.css ./node_modules/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css ./node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css ./node_modules/bootstrap-select/dist/css/bootstrap-select.css ./node_modules/select2/dist/css/select2.css ./node_modules/rangeslider.js/dist/rangeslider.css ./node_modules/ion-rangeSlider/css/ion.rangeSlider.css ./node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css ./node_modules/dropzone/dist/dropzone.css ./node_modules/summernote/dist/summernote.css ./node_modules/bootstrap-markdown/css/bootstrap-markdown.min.css ./node_modules/animate.css/animate.min.css ./node_modules/toastr/build/toastr.css ./node_modules/jstree/dist/themes/default/style.css ./node_modules/morris.js/morris.css ./node_modules/chartist/dist/chartist.css ./node_modules/socicon/css/socicon.css ./node_modules/font-awesome/css/font-awesome.css ./node_modules/quill/dist/quill.core.css ./node_modules/quill/dist/quill.snow.css ./node_modules/famfamfam-flags/dist/sprite/famfamfam-flags.css ./node_modules/primeng/resources/primeng.min.css ./node_modules/primeng/resources/themes/bootstrap/theme.css ./node_modules/bootstrap4-datetimepicker/build/css/bootstrap-datetimepicker.min.css ./src/assets/metronic/src/vendors/line-awesome/css/line-awesome.css ./src/assets/metronic/src/vendors/flaticon/css/flaticon.css ./src/assets/metronic/src/vendors/metronic/css/styles.css ./src/assets/metronic/dist/html/default/assets/demo/default/base/style.bundle.css ./src/assets/metronic/4x/datatables/datatables.min.css ./src/assets/metronic/4x/datatables/plugins/bootstrap/datatables.bootstrap.css ./src/assets/metronic/4x/css/invoice.css ./src/assets/Jcrop/css/Jcrop.css ./src/assets/primeng/datatable/css/primeng.datatable.css ./src/assets/primeng/file-upload/css/primeng.file-upload.css ./src/assets/primeng/autocomplete/css/primeng.autocomplete.css ./src/assets/common/styles/metronic-customize.less ./src/assets/common/styles/metronic-customize-angular.less ./src/assets/metronic/4x/css/pricing.min.css ./src/app/shared/core.less ./src/app/shared/layout/layout.less ./src/assets/fonts/fonts-poppins.css ./src/assets/fonts/fonts-roboto.css ./src/styles.css
2017-11-27T03:27:11.0525850Z ERROR in multi ./node_modules/tether/dist/css/tether.css ./node_modules/malihu-custom-scrollbar-plugin/jquery.mCustomScrollbar.css ./node_modules/prismjs/themes/prism.css ./node_modules/bootstrap-timepicker/css/bootstrap-timepicker.min.css ./node_modules/bootstrap-daterangepicker/daterangepicker.css ./node_modules/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css ./node_modules/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css ./node_modules/bootstrap-select/dist/css/bootstrap-select.css ./node_modules/select2/dist/css/select2.css ./node_modules/rangeslider.js/dist/rangeslider.css ./node_modules/ion-rangeSlider/css/ion.rangeSlider.css ./node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css ./node_modules/dropzone/dist/dropzone.css ./node_modules/summernote/dist/summernote.css ./node_modules/bootstrap-markdown/css/bootstrap-markdown.min.css ./node_modules/animate.css/animate.min.css ./node_modules/toastr/build/toastr.css ./node_modules/jstree/dist/themes/default/style.css ./node_modules/morris.js/morris.css ./node_modules/chartist/dist/chartist.css ./node_modules/socicon/css/socicon.css ./node_modules/font-awesome/css/font-awesome.css ./node_modules/quill/dist/quill.core.css ./node_modules/quill/dist/quill.snow.css ./node_modules/famfamfam-flags/dist/sprite/famfamfam-flags.css ./node_modules/primeng/resources/primeng.min.css ./node_modules/primeng/resources/themes/bootstrap/theme.css ./node_modules/bootstrap4-datetimepicker/build/css/bootstrap-datetimepicker.min.css ./src/assets/metronic/src/vendors/line-awesome/css/line-awesome.css ./src/assets/metronic/src/vendors/flaticon/css/flaticon.css ./src/assets/metronic/src/vendors/metronic/css/styles.css ./src/assets/metronic/dist/html/default/assets/demo/default/base/style.bundle.css ./src/assets/metronic/4x/datatables/datatables.min.css ./src/assets/metronic/4x/datatables/plugins/bootstrap/datatables.bootstrap.css ./src/assets/metronic/4x/css/invoice.css ./src/assets/Jcrop/css/Jcrop.css ./src/assets/primeng/datatable/css/primeng.datatable.css ./src/assets/primeng/file-upload/css/primeng.file-upload.css ./src/assets/primeng/autocomplete/css/primeng.autocomplete.css ./src/assets/common/styles/metronic-customize.less ./src/assets/common/styles/metronic-customize-angular.less ./src/assets/metronic/4x/css/pricing.min.css ./src/app/shared/core.less ./src/app/shared/layout/layout.less ./src/assets/fonts/fonts-poppins.css ./src/assets/fonts/fonts-roboto.css ./src/styles.css
2017-11-27T03:27:11.0548460Z Module not found: Error: Can't resolve '/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css' in '/opt/vsts/work/1/s/node_modules/@angular/cli/models/webpack-configs'
2017-11-27T03:27:11.0562220Z resolve '/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css' in '/opt/vsts/work/1/s/node_modules/@angular/cli/models/webpack-configs'
2017-11-27T03:27:11.0577880Z   using description file: /opt/vsts/work/1/s/node_modules/@angular/cli/package.json (relative path: ./models/webpack-configs)
2017-11-27T03:27:11.0595070Z     Field 'browser' doesn't contain a valid alias configuration
2017-11-27T03:27:11.0615450Z   after using description file: /opt/vsts/work/1/s/node_modules/@angular/cli/package.json (relative path: ./models/webpack-configs)
2017-11-27T03:27:11.0644750Z     using description file: /opt/vsts/work/1/s/package.json (relative path: ./node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css)
2017-11-27T03:27:11.0669600Z       no extension
2017-11-27T03:27:11.0694840Z         Field 'browser' doesn't contain a valid alias configuration
2017-11-27T03:27:11.0718850Z         /opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css doesn't exist
2017-11-27T03:27:11.0742200Z       .ts
2017-11-27T03:27:11.0761720Z         Field 'browser' doesn't contain a valid alias configuration
2017-11-27T03:27:11.0778740Z         /opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css.ts doesn't exist
2017-11-27T03:27:11.0792520Z       .js
2017-11-27T03:27:11.0806640Z         Field 'browser' doesn't contain a valid alias configuration
2017-11-27T03:27:11.0820170Z         /opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css.js doesn't exist
2017-11-27T03:27:11.0834800Z       as directory
2017-11-27T03:27:11.0848930Z         /opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css doesn't exist
2017-11-27T03:27:11.0868090Z [/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css]
2017-11-27T03:27:11.0900780Z [/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css.ts]
2017-11-27T03:27:11.0914760Z [/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css.js]
2017-11-27T03:27:11.0929800Z [/opt/vsts/work/1/s/node_modules/ion-rangeSlider/css/ion.rangeSlider.skinFlat.css]

2017-11-27T03:27:11.0978030Z error Command failed with exit code 1.
2017-11-27T03:27:11.0991540Z info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2017-11-27T03:27:11.1105470Z ##[error]/opt/vsts/work/_tool/yarn/1.3.2/x64/yarn-v1.3.2/bin/yarn failed with return code: 1
2017-11-27T03:27:11.1147940Z ##[error]/opt/vsts/work/_tool/yarn/1.3.2/x64/yarn-v1.3.2/bin/yarn failed with error: /opt/vsts/work/_tool/yarn/1.3.2/x64/yarn-v1.3.2/bin/yarn failed with return code: 1
2017-11-27T03:27:11.1201590Z ##[section]Finishing: Yarn Build

Fixed by injecting IDbContextProvider<DbContext> contextProvider

I want to detach a nested entity to avoid automatic db insertions. Here is sample code:

foreach (var refund in order.Refunds)
            {
                context.Entry(refund).State = EntityState.Detached;
            }

How I get context in DomainServiceBase class?

Hi @aaron, Here is the log:

INFO  2017-11-11 13:47:09,994 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET http://localhost:5000/swagger/v1/swagger.json  
ERROR 2017-11-11 13:47:11,700 [4    ] Microsoft.AspNetCore.Server.Kestrel      - Connection id "0HL98RICELOVT", Request id "0HL98RICELOVT:00000002": An unhandled exception was thrown by the application.
System.NotSupportedException: Ambiguous HTTP method for action - Cynet.PrimePenguin.SalesChannel.SalesChannelAppService.GetOrders (Cynet.PrimePenguin.Application). Actions require an explicit HttpMethod binding for Swagger
   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, ISchemaRegistry schemaRegistry)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.GetSwagger(String documentName, String host, String basePath, String[] schemes)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.&lt;Invoke&gt;d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.&lt;Invoke&gt;d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.&lt;Invoke&gt;d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Cynet.PrimePenguin.Web.Authentication.JwtBearer.JwtTokenMiddleware.&lt;&gt;c.&lt;&lt;UseJwtTokenMiddleware&gt;b__0_0>d.MoveNext() in C:\AK\PrimePenguin\PrimePenguin.Service\src\Cynet.PrimePenguin.Web.Core\Authentication\JwtBearer\JwtTokenMiddleware.cs:line 22
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.&lt;Invoke&gt;d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.&lt;Invoke&gt;d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.&lt;Invoke&gt;d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.<ProcessRequestsAsync>d__2.MoveNext()
INFO  2017-11-11 13:47:11,712 [4    ] soft.AspNetCore.Hosting.Internal.WebHost - Request finished in 1719.1557ms 500

Swagger throws 400 server error when I add route attributes on Methods in my AppService. Example:

[Route("/api/services/MyAppService")]
Question

Hi,

I see that swagger is configured in Web.Host project as follows:

app.UseSwaggerUI(options =>
            {
                options.SwaggerEndpoint("/swagger/v1/swagger.json", "PrimePenguin API V1");
            });

Web.Host project also contains wwwroot/swagger/ui/index.html. How can I configure Swagger UI to use that index.html file?

Message: Must set LocalizationSourceName before, in order to get LocalizationSource Source: Abp className: "Abp.AbpException"

  •   $exception	{Abp.AbpException: Must set LocalizationSourceName before, in order to get LocalizationSource
    
    at Abp.BackgroundJobs.BackgroundJob1.get_LocalizationSource() in D:\Github\aspnetboilerplate\src\Abp\BackgroundJobs\BackgroundJob.cs:line 64 at Castle.Proxies.ShopifyPostInitializationJobProxy.L_callback(String name) at Castle.Proxies.Invocations.BackgroundJob1_L.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.ShopifyPostInitializationJobProxy.L(String name) at Cynet.PrimePenguin.SalesChannel.Shopify.ShopifyPostInitializationJob.<Execute>d__6.MoveNext() in C:\AK\PrimePenguin\PrimePenguin.Service\src\Cynet.PrimePenguin.Core\SalesChannel\Shopify\ShopifyPostInitializationJob.cs:line 51 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadPoolWorkQueue.Dispatch()} Abp.AbpException

I switched to Hangfire for BackgroundJob. On enqueuing a background job, I get this error

Async void methods are not supported. Use async Task instead.

Here is the code:

public override async void Execute(long userId)
        {
            await DeleteWebhooks(userId);
        }

It works fine with default BackgroundJob manager

When I navigate to <a class="postlink" href="http://localhost:5000/hangfire/">http://localhost:5000/hangfire/</a> I get 401 status in network tab. Here is the config:

app.UseHangfireDashboard("/hangfire", new DashboardOptions
            {
                Authorization = new[] { new AbpHangfireAuthorizationFilter(AppPermissions.Pages_Administration_HangfireDashboard) }
            });
Showing 161 to 170 of 202 entries