by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Michał Zegan
    @webczat
    yes. also I believe in 3.1 you could wrap a IPolicyEvaluator to achieve the same result. for example pass the authorization result somewhere to the HttpContext.Items and then let your error page handle it
    Tony Valenti
    @TonyValenti
    What's the right process for me to get eyes on this issue?
    Wraith2
    @Wraith2
    it's only 4 hours old and it's still morning in the US as far as I know. I expect one of the project maintainers will see it shortly and route it appropriately.
    TeBeCo
    @tebeco
    This message was deleted

    What's the right process for me to get eyes on this issue?

    Subscribe to it and activate mail notification

    sahiljuneja2
    @sahiljuneja2
    @sahiljuneja2
    obj.Percentage = (f[i].Present - f[i].Leave / s[i].cnt2) 100;
    this query is resulting percentage 0
    plz help
    ((f[i].Present - f[i].Leave) / s[i].cnt2)
    100;
    Wraith2
    @Wraith2
    your 100 is an integer prompting integer division. make it a double or decimal.
    sahiljuneja2
    @sahiljuneja2
    ok
    whats wrong with this code
    var f = (from obj1 in jae.RetailerMaster1 where obj1.utype == "b" join obj2 in jae.TT_Attendance_Detail on obj1.MobileNo equals (obj2.EmpId)
                         orderby new { obj1.circlename }
                         group new { obj1,obj2} by new { obj1.circlename,obj1.UserApprovedStatus } into grp
                         select new
                         {   
                             name = grp.Key.circlename,
                             cnt  = grp.Key.circlename.Count(),
                             cnt2 = grp.Count(x => x.obj1.UserApprovedStatus == 1),
                             cnt3 = grp.Count(x => x.obj2.Status == "Absent" && x.obj1.UserApprovedStatus == 1 && (int)SqlFunctions.DateDiff("day", x.obj2.Attendance_DateWithTime, DateTime.Now) <= 6),
                             cnt4 = grp.Count(x => x.obj2.Status == "Leave" || x.obj2.Status == "Weekly Off" && x.obj1.UserApprovedStatus == 1 && (int)SqlFunctions.DateDiff("day", x.obj2.Attendance_DateWithTime, DateTime.Now) <= 1),
                             cnt5 = grp.Count(x => x.obj2.Status == "Present" && x.obj1.UserApprovedStatus == 1 && (int)SqlFunctions.DateDiff("day", x.obj2.Attendance_DateWithTime, DateTime.Now) <= 1),
                             cnt6 = grp.Count(x => x.obj2.Status == "Absent" && x.obj1.UserApprovedStatus == 1 && (int)SqlFunctions.DateDiff("day", x.obj2.Attendance_DateWithTime, DateTime.Now) <= 1),
    
                         }).ToList().Select(x => new AttendaceModel()
                         {
                             Name =x.name,
                             Fos=x.cnt,
                             Active=x.cnt2,
                             Dormat = x.cnt3,
                             Leave = x.cnt4,
                             Present = x.cnt5,   
                             Absent = x.cnt6,
                         }).ToList();
    Mohammedzuhair
    @Mohammedzuhair
    How can i display Stacked Column Chart in my WPF project? I don't have any idea about graph and chart. any lead will be appreciated.
    Mohammedzuhair
    @Mohammedzuhair
    1.png
    guys any idea how to implement this wpf mvvm
    robert-brower-impaq
    @robert-brower-impaq
    anyone here familiar with getting ssl to work in an asp.net core app in a docker container?
    Jesper Hansen
    @jespersh
    @Mohammedzuhair there are various chart control packages out there that can do lots of things. If you're just looking for something manual, then break down the problem into its core elements and build up. Like that looks like 6 columns (y-label, data, spacer, data, spacer, data) in a grid. Within you got a canvas with Rectangles. Or even a StackPanel with vertical orientation and verticalalignment set to bottom
    markelli
    @markelli
    Is there a way to see both the address of an object as well as the address of what it points to?
    I'm trying to better understand what's happening to things in memory.
    Michał Zegan
    @webczat
    this is not an aspnet question. it's more for things like dotnet/runtime
    markelli
    @markelli
    ok thanks
    robert-brower-impaq
    @robert-brower-impaq
    If I use HttpClient to send a POST from Asp.net Core App A in Docker Container A, to Asp.net Core App B in Docker Container B, is there anything special that I must do with the HttpClient before I send a POST to App B over ssl?
    duckblaster
    @duckblaster
    @robert-brower-impaq make sure that the certificate used by app B is trusted by container A and that docker is set to allow network traffic between the 2 containers
    I don't think there is anything special you need to do
    robert-brower-impaq
    @robert-brower-impaq
    @duckblaster Thanks. I've been trying very hard for 3 days to get this to work. How do I make sure that the certificate used by B is trusted by A?
    Both docker-compose files have this:

    networks:

      - task-scheduler-network

    networks:
    task-scheduler-network:
    external: true

    robert-brower-impaq
    @robert-brower-impaq
    Why did the secret that I created somehow change to a guid???
    robert-brower-impaq
    @robert-brower-impaq
    The exception I am getting: error:23076071:PKCS12 routines:PKCS12_parse:mac verify failure
    I just made the certificate and trusted it. I have these volumes in my docker-compose.override.yml
    volumes:
      - ${APPDATA}/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro
      - ${APPDATA}/ASP.NET/Https:/root/.aspnet/https:ro
    duckblaster
    @duckblaster
    THat is putting the certificate and it's private key into the container to use, but not trusting it
    I don't know what you need to do exactly, as I don't deal with docker
    Maybe Google for "docker trust certificate" or similar will help
    there shouldn't be any difference between root and self-signed certs for what you are doing
    Saqib
    @biqas
    Hi I have since several month a problem with https requests with a self-signed certificate with an api provider.
    The problem is: most of the request are running fine but some of them are showing up as "Resource temporarily unavailable", checked also with the other side (api provider) the request is also not going through on the api provider. Also the same request with a retry logic is working without any issues.
    Environment: ASP Core 3.1; docker image: mcr.microsoft.com/dotnet/core/aspnet:3.1; running in K8s on AKS: 1.16.7;
    Jesper Hansen
    @jespersh
    @biqas which class are you using to do this?
    You could be facing a full tcp send buffer
    Saqib
    @biqas
    @jespersh
    serviceCollection.AddHttpClient<IMailboxesClient, MailboxesClient>(client =>
    {
    client.BaseAddress = new Uri("https://some-url.com");
    })
    .ConfigurePrimaryHttpMessageHandler(() => new HttpClientHandler
    {
    ClientCertificateOptions = ClientCertificateOption.Manual,
    SslProtocols = SslProtocols.Tls12 | SslProtocols.Tls11 | SslProtocols.Tls,
    ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => { return true; }
    });
    Saqib
    @biqas
    @jespersh if it is a problem of full tcp buffer, what can be done to resolve this?
    Jesper Hansen
    @jespersh
    @biqas Retrying the request. See https://www.stevejgordon.co.uk/httpclientfactory-using-polly-for-transient-fault-handling for an example with Polly
    Saqib
    @biqas
    @jespersh i have observed that this is only happening if in a docker container, do you know about such issues only in docker? made some tests with similar code in a Azure VM to the same provider.
    Jesper Hansen
    @jespersh
    @biqas I am unfamiliar with issues there. Do you log when it happens? maybe some additional logging with content size and requests in queue waiting for response could help narrow it down.
    Saqib
    @biqas
    this is what I'm tring right now to run wireshark to capture all packet communication
    Jesper Hansen
    @jespersh
    Resource temporarily unavailable could mean the HttpClient never sends off a packet, so you won't be able to see it there
    Saqib
    @biqas
    Is this an issue in the HTTP client or is this a known limitation, because this behavior i can so far only see with this API provider all other calls to other similar endpoints are just fine (menas had never this issue).
    The question would be how can I analyze the root cause?
    Jesper Hansen
    @jespersh
    @biqas In your case, I'd say OS/docker hitting some configured limit. If you see https://success.docker.com/article/how-to-reserve-resource-temporarily-unavailable-errors-due-to-tasksmax-setting - then you'll see a command there (systemctl status docker | grep Tasks). I'd try to see the output to see if you're hitting the ceiling, and then raise the roof :hand: :hand:
    Saqib
    @biqas
    ok will try this out and will let know here what the analysis say's