Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    TeBeCo
    @tebeco
    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?

    dasco144
    @dasco144
    These are the arguments being provided to MSDeploy:
    -allowUntrusted -dest:contentPath='DashboardTesting',authtype=basic,userName=username,Password=password,computerName=https://SERVERURL.COM:8172/msdeploy.axd?site=DashboardTesting -source:package='deploy.zip' -verb:sync -retryInterval:100
    nyash
    @nyash

    Hi,

    Under NET6 preview 5:

    In startup, I register a singleton service:

    services.AddSingleton(c => new MyService());

    I have a line that injects this service in a razor file:

    @inject MyService service;

    When I run the project under VS (debug) all is good.

    But when I run the same project as dotnet watch run, the IOC container complains that it cannot resolve the service inside the razor file:

    InvalidOperationException: No service for type 'Project.MyService' has been registered

    What could cause this difference and error in the first place under dotnet watch run ?

    nyash
    @nyash
    Hm... nailed it down to this call:
    if (Environment.IsDevelopment()) { builder.AddRazorRuntimeCompilation(); }
    TeBeCo
    @tebeco
    did you toyed auth your launchsettings files ?
    because if you messed with it and it does not set ASPNZTCORE_ENVIRONMENT from the profile inside that's why
    check dotnet run -h for launch profile
    nyash
    @nyash

    @tebeco Thanks, Indeed previously (net 5) I would run just dotnet watch run, but now that I have added from your suggestion dotnet watch run --launch-profile ProjectProfile it works fine without any odd exceptions.

    In the file I have just two profiles: "IIS Express" and "ProjectProfile". Looking at the template of MVC from NET6 it is identical.

    TeBeCo
    @tebeco
    iis express was default profile (because first)
    almost nobody ever want to use that ... because it's iis / express
    new template inverted that order
    that said they both should de development on dotnet run or watch
    unless i'm missing something it does not look normal
    can you try on a blank new project create WITH sdk 6 preview 5 and see if that still happen ?
    nyash
    @nyash

    @tebeco Now that you mentioned, it, the launchSettings file had identical content to the one from the template, BUT, the profile order was different (in my own, IIS Express was first).

    I made my ProjectProfile come before IIS Express. dotnet watch rundoes start, but it soon fails whenever I reach some non trivial code, e.g. getting an exception from hibernate: 'NotSupportedException: A non-collectible assembly may not reference a collectible assembly'

    Funnily, if I launch it this way: dotnet watch run --launch-profile ProjectProfile no such thing happens.

    Regarding the NET6 template, it does launch with dotnet watch run, but I can make it crash with a few lines, like by adding:

        public void ConfigureServices(IServiceCollection services)
        {
            services.AddSingleton(x => new MyService()); 
            services.AddRazorPages().AddRazorRuntimeCompilation(); 
        }

    and injecting the service in Index.cshtml HTML:
    @inject MyService service;

    Again, if I launch this within Visual Studio it works.
    or by explicitly stating the launch profile. dotnet watch run --launch-profile WebApplication1

    TeBeCo
    @tebeco
    open an issue on sdk repo
    Michael W Powell
    @mwpowellhtx
    hello, I am looking for a halfway decent primer on identity framework. I do not care about the EF or SQL Server scaffold, in fact, I will drop all that in favor of custom stores. what I need to know are some essentials, what do we store with respect to the framework, identity user? Not the claims identity, correct? Also any built in or custom defined claims. Also allowing for user registration, external identity sources.
    Alberto Passalacqua
    @AlbertoPa
    that's all Identity does, so I'd suggest that info in asp.net core the doc as a starting point
    it is quite informative to take a peek at the table structure
    Michael W Powell
    @mwpowellhtx
    thanks I appreciate that. I'm not sure I care about table structure as I would like to adapt it for use in a document store.
    Alberto Passalacqua
    @AlbertoPa
    I meant the Identity table structure would show you how to store the stuff you asked about (roles, claims, etc)
    and the guide also shows how to deal with custom user data and, if needed, privacy rules (annotating them as [PersonalData], so when the user wants to remove the account they go)
    Michael W Powell
    @mwpowellhtx
    ah I see :eyes: thanks, appreciate the hints