Click here to Skip to main content
15,868,164 members

Comments by Member 359326 (Top 6 by date)

Member 359326 13-Apr-22 17:35pm View    
Already tried it. I even obtained the community Duende License key to use it in the app but it is not working. If you look at the progam.cs in my git you will see the key installed (commented - not working).

Thank for suggestion.
Member 359326 8-Apr-22 15:40pm View    
Here is error on the webpage "HTTP ERROR 500" and in the eventview is ...
Category: Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer
EventId: 2
SpanId: 6cd7ad4054177412
TraceId: 84552b34ecdc59bc501026b41e5f8b2b
ParentId: 0000000000000000
RequestId: 400000fa-0005-ff00-b63f-84710c7967bb
RequestPath: /.well-known/openid-configuration

Connection ID "18374686501951766777", Request ID "400000fa-0005-ff00-b63f-84710c7967bb": An unhandled exception was thrown by the application.

Exception:
System.InvalidOperationException: No signing credential is configured by the 'IdentityServer:Key' configuration section.
at Microsoft.Extensions.DependencyInjection.IdentityServerBuilderConfigurationExtensions.<>c.<addsigningcredentials>b__10_2(IServiceProvider sp)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolve
Member 359326 22-Jun-17 13:47pm View    
I look around... I don't see any links to change the category...:(.
Member 359326 22-Jun-17 13:46pm View    
I look around... I don't see any links I can change it.:(
Member 359326 22-Jun-17 13:46pm View    
Thank you for looking into this matter. I appreciated very much.

the error is:Invalid JSON primitive from the logic
error: function (response) {
alert(response.d);
}
It says {\"Message\":\"Invalid JSON primitive:... in the debugger.

The issue is to do with data:'{}' and serverside: true. I did change them to data:{} and bserverside: true then I got it works partially.

It loads the data from service side but datatables.net doesn't load them automatically.

Here is the second version of this code.

===============================
$(document).ready(function () {
var refDataTable = $("#example").dataTable({
processing: true,
bserverSide: true,
ajax: {
data: {},
type: "POST",
url: "BolAddress.aspx/GetAddress",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnSuccess,
failure: function (response) {
alert(response.d);
},
error: function (response) {
alert(response.responseText);
}
},
"columns": [
{ "data": "CardId" },
{ "data": "CardType" },
{ "data": "Company" },
{ "data": "Address" },
{ "data": "City" },
{ "data": "State" },
{ "data": "Zip" },
{ "data": "Phone" },
{ "data": "Contact" },
{ "data": "Description" }
]
})
});

and I have to load data manually to datatables but it is not working correctly.
function OnSuccess(response) {
var cards = response.d;
var cardtable = $("#example");
$(cards).each(function () {
var row = $("");
cardtable.append(row);
row.append($("" + this.CardId + ""));
row.append($("" + this.CardType + ""));
row.append($("" + this.Company + ""));
row.append($("" + this.Address + ""));
row.append($("" + this.City + ""));
row.append($("" + this.State + ""));
row.append($("" + this.Zip + ""));
row.append($("" + this.Phone + ""));
row.append($("" + this.Contact + ""));
row.append($("" + this.Description + ""));
});
var refDataTable = $("#example").dataTable();
}