Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Arnas Kučinskas
    @Arnas-Kucinskas
    With Blazor components (.razor) I can call JS before rendering occurs (at least visually) in OnInitialize method.
    Trying to find out if I can do something similar in cshml forms. For example call local storage and then adjust variables in C# code.
    Sorry for late response.
    @tebeco
    TeBeCo
    @tebeco
    ok was not sure if it was razor on server side or blazor my bad
    i was confused with the @{} i guess
    can't tell for blazor specific life cycle
    Arnas Kučinskas
    @Arnas-Kucinskas
    It is on server side. Blazor was just an example, on how it works there.
    So from this I gather that it is not going to happen on server side?
    duckblaster
    @duckblaster
    yes, all cs runs before any js in .cshtml
    William Roseberry
    @RoseberryPi
    Does Razor Pages' partial views have support for an equivalent to Blazor's renderfragments in child components?
    Raif Harik
    @reharik
    Hello, I'm trying build an old .net 4.5 mvc app on ubuntu and I can't seem to figure out how to get the 4.5 framework. Can anyone help me?
    TeBeCo
    @tebeco
    you can't get the framework there
    it's windows only
    the only thing you can do is to reference nuget packages named Reference Assemblies
    and that will let me build
    but no test to run
    there's no runtime for netfx on linux
    only dotnet core
    Raif Harik
    @reharik
    ug, so there's no way to work on this application?
    TeBeCo
    @tebeco
    you can "build" only
    there's also Mono but i'm not sure you can have it out of the box compliant
    Raif Harik
    @reharik
    oh, so I can build but I can not run the app and access it in the browser?
    TeBeCo
    @tebeco
    exactly
    reference assembly are empty dll
    Raif Harik
    @reharik
    so with mono, what do you mean out of the box compliant?
    TeBeCo
    @tebeco
    it gives you something to compile against
    because like dotnet core mono runs on linux
    and i have no clue if you can make an app use mono as a runtime when you target netfx and do no code vu ange
    Raif Harik
    @reharik
    so is there any work around so I can run the app and see if it works?
    maybe, can you run windows in a container?
    TeBeCo
    @tebeco
    anyway today mono is not integrated in the runtime
    net4.5 was in 2010
    it's plain dead
    migrate the app is advise number 1
    Raif Harik
    @reharik
    uggg, it's old and all the damn nuget packages ancient!
    how about can you run windows in docker container
    TeBeCo
    @tebeco
    you meant in windows container
    not i docker container
    Nicolas Lewentorp
    @MrFusion3000
    Can anyone point me in a direction to why this gives the error "no overload for method 'SingleOrDefault' takes two arguments)"? (The db is of ApplicationDbContext)
    public async Task<User> FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken)
    {
    return await db.Users
    .AsAsyncEnumerable()
    .SingleOrDefault(p => p.UserName.Equals(normalizedUserName, StringComparison.OrdinalIgnoreCase), cancellationToken);
    }
    TeBeCo
    @tebeco
    count your ( and )
    not spoiling the answer too fast
    error telling you you gave sinfleordefault 2 args
    and that it does not exists
    meaning you have a syntax error
    meaning it detected an , between first and second while it should have stopped there
    so missing )
    sake402
    @sake402

    Hi. Having trouble downloading from https://download.visualstudio.microsoft.com/

    Can someone confirm if it the same behaviour from their end?
    All SDK downloads wont start

    sake402
    @sake402

    Can anyone point me in a direction to why this gives the error "no overload for method 'SingleOrDefault' takes two arguments)"? (The db is of ApplicationDbContext)
    public async Task<User> FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken)
    {
    return await db.Users
    .AsAsyncEnumerable()
    .SingleOrDefault(p => p.UserName.Equals(normalizedUserName, StringComparison.OrdinalIgnoreCase), cancellationToken);
    }

    Remove cancellationToken.

    return await db.Users
                   .AsAsyncEnumerable()
                    .SingleOrDefault(p => p.UserName.Equals(normalizedUserName, StringComparison.OrdinalIgnoreCase));
    Junior
    @Muhammad-Waleed-Hafeez

    i need some info about a software.

    this is the link below:
    https://www.youtube.com/watch?v=i1mDOUxaPc8

    i want to know is it possible to make this kind of software using c# .Net.
    if it's possible then can you guide me how should i approach to built this software.

    i'm very interested to build this application as from this software experience i'm sure that i'm going to learn a whole new things and experience.
    So, please guide me if you could.

    Requirements:
    i need two main features in my application:
    1- get all teeth size data of upper and lower jaw by scanning. this is the camera i'll use ==> https://www.ximea.com/usb3-vision-camera
    2- generate 3d model of upper and lower jaw teeth depending on step-1 data.

    Note: if any tooth is missing then software will be able to reconstruct it during the 3d model.

    that's all.

    Queries:
    i want to know which tools, languages other than .net,and technologies or SDKs will be needed in this project.
    i've heard python will be good for getting data by scanning but after that what should i do in next step.
    there are so many info i've searched on internet but those infos making me more confused because i don't know what exactly i need to do in this application. there are CAD/CAM SDKs option but don't know which one is right for me and compatible with .net.

    I would really appreciate the help.

    Juan Ramos
    @ptjuanramos
    Hi guys can I use a custom tag helper for each element that "asp-src-include" renders? It seems that its not working
    Martijn
    @martijnhoekstra:matrix.org
    [m]
    I'm trying to keep a connection alive and periodically send content through the connection with context.writeAsync to implement SSE. I could have sworn this worked before, but returning to it, as soon as I want to write more, writeAsync throws an exception: IFeatureCollection has been disposed. Object name: 'Collection'.
    What has been prematurely disposed here, and how can I avoid that?
    Martijn
    @martijnhoekstra:matrix.org
    [m]
    the part of the stacktrace where it apparently goes south is
       at Microsoft.AspNetCore.Http.Features.FeatureReferences`1.Fetch[TFeature](TFeature& cached, Func`2 factory)
       at Microsoft.AspNetCore.Http.DefaultHttpResponse.get_HasStarted()
       at Microsoft.AspNetCore.Http.HttpResponseWritingExtensions.WriteAsync(HttpResponse response, String text, Encoding encoding, CancellationToken cancellationToken)
    dasco144
    @dasco144

    Hi.
    I'm trying to deploy a site using MSDeploy, but I'm having an issue when the files/folders are being added

    Info: Adding file (DashboardTesting\Client\assets\).
    Error: (2021/07/07 09:33:26) An error occurred when the request was processed on the remote computer.
    Error: An error was encountered when processing operation 'Create File' on 'C:\inetpub\wwwroot\DashboardTesting\Client\assets\'.
    Error: The error code was 0x8007007B.
    Error: The path 'C:\inetpub\wwwroot\DashboardTesting\Client\assets\' is not valid.
       at Microsoft.Web.Deployment.NativeMethods.RaiseIOExceptionFromErrorCode(Win32ErrorCode errorCode, String maybeFullPath)
       at Microsoft.Web.Deployment.FileStreamEx.CreateInstance(String path, FileMode fileMode, FileAccess fileAccess, FileShare fileShare, Nullable`1 fileLength)
       at Microsoft.Web.Deployment.FilePathProviderBase.Add(DeploymentObject source, Boolean whatIf)
    Error count: 1.

    I'm not sure why it's specifying that the asset folder is a file, but it should create it as a directory.
    Does anyone know where I can start looking?