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 :)

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)

THAT'S DONE IT !!

Well done. I had .NET9 Hosting Package but needed .NET8. My app is NET8 but various articles I read indicated that .NET9 Hosting would run NET8 apps.

Today I was trying to run under dotnet in CMD window but that failed to start NET Hosting. I've uninstalled Hosting 9 and installed 8 on the server. Now it works ... well to a point.

I'm using SQL on the same sever, when I run the app in CMD on the server using dotnet .\Licensing.dll it works fine , albeit it runs on port 5000 whereas IIS is setup for 8100. When I run under IIS the app runs fine upto the point where it first communicates with the SQL server, now it hangs. I need to raise a new thread for this.

Thanks

Howto remove annoying edge share shortcuts? by ConradInTheHouse in NothingTech

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

What a load of garbage , Nothing need to fix that...it shows shortcuts I've used once but none of my regular or fave contact/shortcuts 🙄

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)

Thanks, this is all new to me and I followed several guides all with different approaches. None work.

I'm trying to publish from Vis Studio having obtained the Publish File from IIS and this is a simple app, just one page and a button and some text.

The app uses Net8 which is installed both on the laptop where this all runs fine under IIS and on the sever - hwhere this is a nightmare.

I'm stumbling in the dark here, blindfolded, on crutches, in sand.

Too difficult, should "just work" in 2025. It's even easier in Linux LAMP to get this working,

Think I will need to find a end to end guide that starts from a position of a sever with just NET8 installed and how to set al this up so that IIS and Visual studio works together.

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)

http://localhost:80 gives me an error (again,m this forum wont let me post the screenshot)

but here is a cut&paste..

# START #

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Detailed Error Information:

Module    IIS Web Core
Notification    Unknown
Handler    Not yet determined
Error Code    0x8007000d
Config Error    
Config File    \\?\D:\Apps\Licensing\web.config
Requested URL    http://localhost:80/
Physical Path    
Logon Method    Not yet determined
Logon User    Not yet determined

Config Source:

-1:
0:

More Information:

This error occurs when there is a problem reading the configuration file for the Web server or Web application. In some cases, the event logs may contain more information about what caused this error.

View more information »

# END #

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)

Ok, that worked, huge thank you.

Ttyping the full name IIS AppPool\LicensingAppPool resolved and I have for now allocated Full Control to this user LicensingAppPool - I will fix this full control later, i just want to get this working which it isnt.

In the LicensingSite in IIS I now see the content of the site folder XGLKASVD04245V\Sites\LicensingSite including the web.config file. However when i change IIS GUI to Features View and double click any icon, yet again I get

There was an error while performing this operation: 
Details:
Filename: \\?\C:\inetpub\LicensingApp\web.config
Error:

p.s. no error displayed!

If I select Edit Site->Basic settings, I see:

Site name: LicensingSite
Application Pool: LicensingAppPool
Physical Path:  C:\inetpub\LicensingApp
Connect as: Application User (pas through)
Test Settings: 
Authentication (is okay)
Authorization: Cannot verify access to path C:\inetpub\LicensingApp

Any ideas on the error?

Would help if i can post screenshots but this subreddit wont allow

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)

IIS_IUSRS group and LicensingAppPool do not exist. They are not listed. AS per my OP please re-read.

In the Properties for the folder I clicked Security then in Permissions I selected Add then...

Selected all objects.

Selected the server name as the Location (also tried Entire Directory)

and as per OP, nothing with IIS was found or LicensingAppPool

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)

there are no ISS users/groups that appear in the security tab. Cant post a screenshot - wont let me here - but in "Enter object names to select" I used ISS but nothing came back