Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
63 views

I saw in Microsoft learn site here option of use primary constractor body with this example: public class C(int i, string s) : B(s) { { if (i < 0) throw new ArgumentOutOfRangeException(...
אפרת's user avatar
1 vote
0 answers
78 views

Configuration file <?xml version='1.0'?> <Obfuscator> <Var name="InPath" value="." /> <Var name="OutPath" value=".\Obfuscator_Output" /&...
Deakin's user avatar
  • 11
0 votes
1 answer
206 views

I am facing an issue while connecting to Azure through the power shell. could you please help me to resolve the issue? code is below, please tell me where I am making a mistake. we are using .net 7.0 ...
user3106878's user avatar
1 vote
0 answers
357 views

I write this code struct Test { public override string ToString() => "some text"; } Then I get a compiler message suggestion IDE0251 Member can be made 'readonly' this ...
Pawulon's user avatar
  • 77
0 votes
3 answers
79 views

I am new to ASP.NET Core and I am facing with this stubborn problem. When I try to download the Entity Framework Core for SqlServer, it return the error like the picture posted. I appreciate your ...
Volt's user avatar
  • 1
-2 votes
1 answer
637 views

how do i successfully retrieve IFormFile from the server side API and display it in my view image source. I was wondering why what i did never worked until i realize that i was using the path i saved ...
Alva Mira's user avatar
0 votes
1 answer
62 views

I work on asp.net MVC app . I face issue checkbox value not detected changing value from true to false or reverse on model property speakstuff. so I need if yes checked then true if no checked then ...
ahmed abdelaziz's user avatar
4 votes
3 answers
11k views

My web application retrieves its secrets from our company's shared Azure Key Vault, and the permissions for that are granted via RBAC (role-based access control). This works great normally, but on my ...
Ross Brasseaux's user avatar
-1 votes
1 answer
325 views

I work on an ASP.NET MVC razor page. I face issue Url change from Resignation/RequesterIndex?filenumber=103085 to Resignation/Create after click submit button. I need URL as it was before, without ...
ahmed abdelaziz's user avatar
0 votes
0 answers
21 views

I create a form and set a specific size and when I run the program the displayed form doesn't match the previously set size. For example I create a form and I add a panel with size 100x100. Then I set ...
Nikola Bozhkov's user avatar
0 votes
1 answer
57 views

I have two controllerbases and the tasks are almost the same but when I have the same create method the error occurs: Here is the code in my program.cs class: using DATA; using Microsoft.AspNetCore....
Akai's user avatar
  • 3
0 votes
0 answers
72 views

System.InvalidOperationException: Unable to resolve service for type 'Pwc.EMSWebapi.IUserManagementService' while attempting to activate 'Pwc.EMSWebapi.UserManagementController'. at lambda_method3(...
Anand Meena's user avatar
1 vote
1 answer
418 views

Local functions were introduced in C# 7.0 and C# 7.0 came in .NET Framework version 4.7. I'm absolutely certain that I'm running .NET Framework 4.6.1., but I can write and use local function without ...
J. Mini's user avatar
  • 1,746
0 votes
1 answer
434 views

The example from Microsoft looks like this: modelBuilder.Entity<Customer>( entityBuilder => { entityBuilder .ToTable("Customers") ....
JHJ's user avatar
  • 421
0 votes
1 answer
2k views

I've followed this guide to setup an OpenLDAP server in a container. When I run the container with TLS/SSL set to false, as follows: sudo docker run \ --name openldap-server \ --rm \ --...
HasQuestionsAndAnswers's user avatar
0 votes
2 answers
2k views

I'm running Ubuntu on Windows via WSL in a CLI, and I've configured LDAP (OpenLDAP: slapd) on Ubuntu as follows: BASE dc=example,dc=com URI ldap://localhost When I run on the following command ...
HasQuestionsAndAnswers's user avatar
0 votes
0 answers
42 views

I have been repeatedly admonished for use of static calls in my Service Classes used in a Blazor Entity Framework App. My problem is that I have Services that require interaction with other Services ...
BookTrakker's user avatar
0 votes
1 answer
136 views

all other controls in my app are responsive to the app theme change caused by toggling appearance. Label control does not. If I restart the application the text is the correct color, but when I try it ...
jsallows's user avatar
0 votes
1 answer
1k views

I work on .net core 7 entity framework core . I get error when run my application on this function error say cannot convert from 'string' to 'System.FormattableString' public List<ApplicationDto>...
ahmed abdelaziz's user avatar
0 votes
1 answer
207 views

I work on asp.net core blazor i get error when deserialize list to string so How to solve this issue please ? error Error: System.Text.Json.JsonException: The JSON value could not be converted to ...
ahmed abdelaziz's user avatar
2 votes
3 answers
164 views

I've been playing with returning tuples from methods, so method signatures like this...: private int GetAlpha() {...} // -1 indicates an error private bool GetAlpha(out int alphaOut) {...} ...turn ...
Scott Smith's user avatar
  • 4,016
1 vote
1 answer
112 views

C# (CSharp/.cs) 7.0 .NET Framework 4.7.2 I'm making a Localization system for a mod (based on the game's language), so I used an XML file to store translations, which look like this : <?xml version=...
V E L Δ's user avatar
1 vote
1 answer
308 views

In C#, I can define a computed property as such: public class MyViewModel { public DateTime StartDate { get; set; } public string StartDateFormatted => StartDate.ToString("yyyy.MM.dd h:...
Jim G.'s user avatar
  • 15.4k
-1 votes
1 answer
301 views

What does it means class that implements IEnumerable<object[]> ? (in the specific case it is an abstract class but I'm not sure it is relevant) Does it means that it should contains IEnumerable&...
Guy E's user avatar
  • 1,957
5 votes
1 answer
9k views

It seems like I have got problems with vs not handing inline var declarations. It turns out that is uses an old version of c#. Here comes a screenshot that shows that out string link is not compiling. ...
Anders Lindén's user avatar

1
2 3 4 5
11