I am getting ready to switch to using IdentityServer and I am having an issue. I changed the ClientId and ClientSecrets in the Hosts appsettings.json. I then went to test it by using the ConsoleApiClient. I also changed the ClientId and ClientSecrets to match whats in the config file. But it now gives me the error. "Invalid_client".
Does anyone have any ideas? Is there another place I need to change the ClientId and secret?
I for sure can't keep them the defaults that comes when we download the project.
I saw the note in the documentation below but I didn't really understand what to do with the OnModelCreating. The link provided didn't really help. I tried a few things and I got it to work just fine as a discriminator. But I don't really want it as an entire different object. I would like to just add 1 column basically to the OrganizationUnit. Any help would be greatly appreciated.
A NOTE ABOUT EF CORE 2.0 In EntityFramework Core 2.0, OnModelCrreating must be used to configure extended entity if base entity contains a self reference (see <a class="postlink" href="https://github.com/aspnet/EntityFrameworkCore/issues/9704">https://github.com/aspnet/EntityFramewo ... ssues/9704</a>). An example of this case is extending OrganizationUnit entity.
I am trying to force users to use https in the angular app in production. I added the below rule in the web.config but it seemed to kind of break things
<rule name="Redirect HTTP to HTTPS" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}" redirectType="SeeOther" />
</rule>
<rule name="Angular Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
I added the Redirect HTTP to HTTPS rule.
Any help would be appreciated.
I saw how I can call the loading indicator for a data table (this.primengDatatableHelper.showLoadingIndicator();). But I was wondering how I can show a component loader while its loading the template view?
I haven't had this issue before today. I created a new service. Very basic one. It returns a PagedResultDto. It works just fine when not using a search parameter. But as soon as I add a search parameter I get the below error.
My input looks like this. Any help would be greatly appreciated.
public class GetEmployeePagedInput : PagedAndSortedInputDto, IShouldNormalize
{
[StringLength(120)]
public string Filter { get; set; }
public void Normalize()
{
if (string.IsNullOrEmpty(Sorting))
{
Sorting = "FirstName";
}
}
}
ERROR 2017-12-05 18:09:40,996 [23 ] Mvc.ExceptionHandling.AbpExceptionFilter - Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at lambda_method(Closure , ValueBuffer )
at System.Linq.AsyncEnumerable.WhereEnumerableAsyncIterator1.<MoveNextCore>d__8.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.Linq.AsyncEnumerable.AsyncIterator
1.<MoveNext>d__10.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.Linq.AsyncEnumerable.TakeAsyncIterator1.<MoveNextCore>d__7.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.Linq.AsyncEnumerable.AsyncIterator
1.<MoveNext>d__10.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.Linq.AsyncEnumerable.SelectEnumerableAsyncIterator2.<MoveNextCore>d__7.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.Linq.AsyncEnumerable.AsyncIterator
1.<MoveNext>d__10.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 Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.<MoveNext>d__5.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.Linq.AsyncEnumerable.<Aggregate_>d__6
3.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`1.GetResult()
at PHS.EmployeeDirectory.EmployeeDirectoryService.
I would like to add some extra properties to the Abp session? I looked at <a class="postlink" href="https://aspnetboilerplate.com/Pages/Documents/Abp-Session?searchKey=session">https://aspnetboilerplate.com/Pages/Doc ... ey=session</a> but didn't go in-depth enough to help. Has anyone else extended the Abp Session yet?
After updating to 4.5.1 and doing a ng build I am now getting the following error when I try to visit our site. Does anyone have any ideas?
Uncaught Error: Cannot enable prod mode after platform setup. at ce (vendor.de69c82deb44e6b6e7ea.bundle.js:1) at Object.cDNt (main.f5488ece5fd3a5a2f463.bundle.js:1) at n (inline.81d87e40e2b3ec0c3391.bundle.js:1) at Object.0 (main.f5488ece5fd3a5a2f463.bundle.js:1) at n (inline.81d87e40e2b3ec0c3391.bundle.js:1) at window.webpackJsonp (inline.81d87e40e2b3ec0c3391.bundle.js:1) at main.f5488ece5fd3a5a2f463.bundle.js:1
I noticed you are able to browse the angular app appconfig.json file. If you browse the file like this /assets/appconfig.json you are able to browse it. For example to test this theory on one of your test sites I create a demo <a class="postlink" href="http://test-41234.demo.aspnetzero.com/assets/appconfig.json">http://test-41234.demo.aspnetzero.com/a ... onfig.json</a> and was able to browse it.
Any way on IIS to block this? I tried adding it as a hidden segment but that actually kept the site from working all together.
Any help would be a great help.
Having an issue with a resizable columns in as I start to transfer my Jtables to PrimeNG tables.
If you take a look at the attached image you can see that when I drag the column header it doesn't change the width of the actual row along with the column. I moves it a little bit but it is disjointed for some reason. I cannot figure it out and haven't found anything in their documentation.
Did you guys put any documentation to switch jtable to PrimeNG. I have several tables I now need to convert and wanted to know if there is anything I need to know as I work towards that.