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

Activities of "owen84"

Can i specify the routes using the dynamic api method? I want to use url parameters.

To better explain i have the following:

foo/create foo/edit foo/action1 foo/action2 foo/action3

I would like to have it:

foo/create foo/edit foo/{id}/action1 foo/{id}/action2 foo/{id}/action3

Instead of passing the id through as an input object parameter

is it possible to return different status codes like:

400 - Bad Request 401 - Unauthorized 402 - Payment Required 403 - Forbidden 404 - Not Found

using the dynamic api implementation when raising and returning an exception?

ps - awesome product!

Thanks you so much for this addition, and for the speed of adding it!! Could you please tell me how long you think this would be? Im contemplating on building and using the dll, but i would like to leave everything under nuget as much as possible.

If i understood correctly you have added this functionality, i need to pull and compile the code? which dll do i need to change from my code? i presume it wont be available on nuget?

I would like to add a property to the returned json when a userfriendlyexception is thrown.

I would like to add an exception code as my api will be consumed by 3rd parties. Could you please let me know what i have to do? Ive looked all over but cant find a similar thread.

I get this error when i try to authenticate a user using the api endpoint - <a class="postlink" href="http://localhost:6634/api/account/authenticate">http://localhost:6634/api/account/authenticate</a>

The application is trying to return a InvalidUserNameOrPassword but it seems to be causing the exception when trying to localize the end message.

I dont think we will be using any localization features for this project and have the default locale 'always on' is a good solution for me. Could you please let me know how i can do this?

The below is the stack trace:

Abp.AbpException: Must set LocalizationSourceName before, in order to get LocalizationSource at Abp.WebApi.Controllers.AbpApiController.get_LocalizationSource() at Abp.WebApi.Controllers.AbpApiController.L(String name) at Zygo.Api.Controllers.AccountController.CreateExceptionForFailedLoginAttempt(AbpLoginResultType result, String usernameOrEmailAddress, String tenancyName) in C:\git\Zygo-Latest\Zygo.WebApi\Api\Controllers\AccountController.cs:line 75 at Zygo.Api.Controllers.AccountController.<GetLoginResultAsync>d__8.MoveNext() in C:\git\Zygo-Latest\Zygo.WebApi\Api\Controllers\AccountController.cs:line 63 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at Zygo.Api.Controllers.AccountController.<Authenticate>d__7.MoveNext() in C:\git\Zygo-Latest\Zygo.WebApi\Api\Controllers\AccountController.cs:line 39 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Threading.Tasks.TaskHelpersExtensions.<CastToObject>d__31.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.AuthenticationFilterResult.<ExecuteAsync>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ExceptionFilterResult.<ExecuteAsync>d__0.MoveNext()

issue resolved, i found where it was registered and changed the constant name - Configuration.Localization.Sources.Add

Very nice work with the project. Im really enjoying working with it.

Yes i do have a folder for localization in both core and web projects. I tried deleting the localization folder in the web project but the problem still persists.

Hello,

Im using aspnetboilerplate with module zero.

When i run the application i get the following exception on base.Application_Start(sender, e); in Application_Start on the Web application.

Exception Message - {"There are more than one source with name: Zygo! Source name must be unique!"}

Inner exception is null

Stack Trace:

at Abp.Localization.LocalizationManager.InitializeSources() at Abp.AbpKernelModule.PostInitialize() at Abp.Modules.AbpModuleManager.<InitializeModules>b__2(AbpModuleInfo module) at System.Collections.Generic.List1.ForEach(Action1 action) at Abp.Modules.AbpModuleManager.InitializeModules() at Abp.AbpBootstrapper.Initialize() at Abp.Web.AbpWebApplication.Application_Start(Object sender, EventArgs e) at Zygo.Web.MvcApplication.Application_Start(Object sender, EventArgs e) in C:\git\Zygo\Zygo.Web\Global.asax.cs:line 13

This does not occur when running tests or when building the application but only on runtime. I think its related to dependency injection.

I've already tried downloading a fresh code base and re adding all my code. Can someone please help me out?

Showing 1 to 9 of 9 entries