Base solution for your next web application

Activities of "pkouame"

Hi -

1 - working through the aspnetzero mpa core phonebook sample, I don't get the formatted error message in the guide. Rather I get this:

An unhandled exception occurred while processing the request.

AbpAuthorizationException: Required permissions are not granted. At least one of these permissions must be granted: Pages.Tenant.PhoneBook
MoveNext

Stack Query Cookies Headers
AbpAuthorizationException: Required permissions are not granted. At least one of these permissions must be granted: Pages.Tenant.PhoneBook
MoveNext
ThrowForNonSuccess

GetResult

...
...

MoveNext

Show raw exception details
Abp.Authorization.AbpAuthorizationException: Required permissions are not granted. At least one of these permissions must be granted: Pages.Tenant.PhoneBook
   at Abp.Authorization.PermissionCheckerExtensions.<AuthorizeAsync>d__9.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.Runtime.CompilerServices.TaskAwaiter.GetResult()
   at Abp.Authorization.AuthorizationHelper.<AuthorizeAsync>d__19.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)

How do I configure my project to handle this exception correctly?

2 - How can I customize these error messages and pages?

Thanks in advance, Patrice

@JoshYates, thanks. That's pretty much how I proceed...searching github and the forums. Guess I'll just file some issues on github so responsible parties can update documentation when they have time...

@ismcagdas

  1. On exception handling. I downloaded an aspnetzero core mvc template, so web.config should be irrelevant right?

  2. Downloading "templated" projects as your documentation suggests give me a static source code snapshot with a difficult support path since, to the say the least, the original namespaces (MyCompany MyProject etc...) are different. What happens when v2.2 of aspnetzero template is released? This is an important LTS issue for potential client solutions I craft. Hence my desire to setup the "optimal" development environment going forward. Should I clone, pull down changes or new releases as necessary, change namespaces and merge?

Thanks P.

Hi -

While going through the aspnetzero "developing an application step by step" phonebook example, it's become quickly obvious that a deeper knowledge of the boilerplate and module zero is a plus. I would like to setup an environment where one can freely browse the source of all relevant modules from within Studio. How are you guys setup? Do you recommend importing the entire boiler and zero projects within our local template solution? There are pros and cons for a variety of different approaches here, so I'm just wondering how you guys are setup internally to develop and release templates and frameworks.

Also, what is the preferred way to present issues and file bugs. In github issues and/or here on the forum? Especially for paid up commercial developers like us.

Example

1 - I found that the phonebook example references a dto helper "ListResultOuput" that has been deprecated (I think?) for ListResultDto. Where best to file and issue like that?

2- I don't get the pretty error 500 exception page like the example. Rather, mine is a normal trace. Code like that is obviously buried in boilerplate exception handling. Where best to file an issue like that?

Thanks in advance.

Showing 31 to 33 of 33 entries