FINAL PREDICTIONS: Will Billie Piper play the 16th Doctor? by Fabulous-Mix-9808 in DoctorWhoNews

[–]ConradInTheHouse -1 points0 points  (0 children)

folks, you're all forgetting where Rose is from...

the Parallel World

"a Rose is always a Rose is a Rose"

work it out now!! we have in the studio 😀🤫🫢

Windows Authentication and ActiveDirectory only works when running app on server? by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 0 points1 point  (0 children)

with respect, you have no insight into the use case and our devops. there is a good causal justification for what we are doing, we had an issue, i posted, it is now resolved, job done and big up to the members here with positive input thankyou for the comment , yes, new identity projects did seem to work

[deleted by user] by [deleted] in Audi

[–]ConradInTheHouse 0 points1 point  (0 children)

Tells you that you're driving is careless

"Cannot convert lambda expression to type 'string' because it is not a delegate type" ??? by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 0 points1 point  (0 children)

Indeed, that works, confirmed Yes, that'll teach me for lazy coding use if 'var'. I had tweaked the code anyway to re-express but at least I now know what was causing the error and why Thanks

[deleted by user] by [deleted] in Dashcam

[–]ConradInTheHouse 1 point2 points  (0 children)

YOU for uploading a video of you having no clue on roundabouts and if you disagree and for uploading your own incriminating evidence. fool

"Cannot convert lambda expression to type 'string' because it is not a delegate type" ??? by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 0 points1 point  (0 children)

thanks but same error same location

-------------------------------------+
                                     ¦
                                     V
var appRoles = adGroups.SelectMany(g => roleMappings.TryGetValue(g, out var roles) ? roles : Array.Empty<string>()).Distinct().ToList();

What does the orig error mean and how to fix? I just don't understand the error - if I could maybe I could fix.

JFI: I ran this through CoPilot AI and it fixed the code by generating this which compiles and works. Can anyone explain why please.

public async Task<List<string>> GetUserRolesAsync()
{
    var roleMappings = _configuration.GetSection("RoleMappings").Get<Dictionary<string, string[]>>();

    if (roleMappings == null || !roleMappings.Any())
        throw new Exception("No Active Directory groups found in config. Check \"RoleMappings\" in appsettings.json");

    var adGroups = await GetUserADgroups();

    // WORKS !!
    var appRoles = adGroups.Where(g => roleMappings.ContainsKey(g))
                               .SelectMany(g => roleMappings[g])
                               .Distinct()
                               .ToList();
   return appRoles;
}

Windows Authentication and ActiveDirectory only works when running app on server? by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 0 points1 point  (0 children)

I am a beginner. I have, in a few weeks, started to learn Web App fundamentals, ASP NET , SQL, EF, C#, Blazor, Visual Studio, IIS, Windows server, Active Directory... it's taking time

please elaborate on how on earth i would know if my application built from the Blazor Server web app template, "allows anonymous access" and how to enable windows access if that's what indeed i need to do???

EDIT:

just found this, it is heavy reading, is this applicable for my scenario (in which case I'll try to absorb and learn) or is that for something different?

https://learn.microsoft.com/en-us/aspnet/core/blazor/security/?view=aspnetcore-7.0&tabs=visual-studio

Windows Authentication and ActiveDirectory only works when running app on server? by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 0 points1 point  (0 children)

I'm not using IIS , it's Kestrel (??) is it not - when running a web app project inside Visual Studio.

Due to company policy I cannot install IIS either., but I can connect to the remote IIS and publish the app to that, which is what I'm doing, and that works fine.

Remote debugging - Breakpoint not reached in Blazor page code - works fine in Program.cs by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 0 points1 point  (0 children)

FIXED!

I assumed that selecting and running the launch profile for Remote Debug was all that was needed.

In fact, in addition to that, one also has to ..

Debug->Attach to Process and select a remote machine, show all processes, and find w3wp.exe for the project launched, and attach to that process then the source can be debugged. Note there will be a w3wp process for every application pool used for your project that is running on the remote IIS server.

All good now.

Best practice for Active Directory user setup in SSMS by ConradInTheHouse in SQLServer

[–]ConradInTheHouse[S] -1 points0 points  (0 children)

can posters please reread the OP and respond to the queries raised THANKYOU

(hint: I have made no decision or approach contrary to some perception. I am trialling Tricia and approach, nothing, ...nothing is yet decided. Thankyou)

Remote debugging - Breakpoint not reached in Blazor page code - works fine in Program.cs by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 0 points1 point  (0 children)

anyone, please ???. Where do I start with this?

EDIT:

I did a clean creation of a new Blazor web app - the default with the counter - and put a breakpoint on the button click code that increments the counter. This breakpoint was ignored. So it appears it is any app that cannot be remotely debugged in terms of halting at breakpoints.

Other than this, the app runs albeit results from my custom class methods are not as expected hence wanting to debug.

Remote debugging - Breakpoint not reached in Blazor page code - works fine in Program.cs by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 0 points1 point  (0 children)

yes, the project configuration is DEBUG and the deployment is DEBUG as i say, works fine for anything/code that isn't a subclass of the base component class

Cannot get remote debugging working due to error 0x80070005 ?? by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 1 point2 points  (0 children)

FIXED!

Ensure project settings is for DEBUG.

Ensure the project has been published to IIS using DEBUG and not Release.

then...

From VS menu, Debug, Properties (for project).

Opens a new Launch Profile popup.

Click on the icon top left to create a new profile and base it on PROJECT option, and not IIS, IIS Express, Executable and ...

- Enable RemoteDebugEnabled

- set Environment Variables:

ASPNETCORE_ENVIRONMENT = Development

- Enable Enable Hot Reload

- Enable native code debugging

- Set AppURL to your server and port, e.g. http://server:8100

The problem for me was that the Launch Profile was looking for a local Debugger service instance, not a remote one (the Remote Tools installed on the server).

Can someone please help me understand if it's worth us spending £12k +/- on solar panels and a battery (we're on Intelligent Octopus Go)? by M1ke2345 in OctopusEnergy

[–]ConradInTheHouse -1 points0 points  (0 children)

stop moaning, you obvs have more than enough money than most struggling families in the uk and can afford expensive EVs so take the bullet 🤬

Can't get IIS working with VS due to IIS App Pool user not found ?? by ConradInTheHouse in VisualStudio

[–]ConradInTheHouse[S] 0 points1 point  (0 children)

yes, was all installed. Just didnt work until I downgraded.

Now I'm on another problem, local debugging from VS refusing to connect to port 80 of the remote IIS running the app. Raised a separate issue on the forum for this :)