Hercules
Hercules
CC#
Created by Hercules on 2/23/2024 in #help
AutoMapper: Ignoring Nested Property in Mapping Configuration Results in Null Value
It should ignore
5 replies
CC#
Created by Hercules on 2/23/2024 in #help
AutoMapper: Ignoring Nested Property in Mapping Configuration Results in Null Value
I don't have other configurations, nested objects works in other situations. I suspect that since my request is not taking any value for apikey it reevaluates it as null even when im trying to ignore it?
5 replies
CC#
Created by Hercules on 10/12/2023 in #help
✅ Seeking Help with Blazor WebAssembly Deployment Issue
I did try a hard refresh that didn't help, ctrl + R or a ctrl + F5
4 replies
CC#
Created by octalide on 9/21/2023 in #help
✅ New to Blazor and EF. Need some tips.
dotnet ef dbcontext scaffold "<your existing db connection string>" Microsoft.EntityFrameworkCore.SqlServer -o Models make sure you have Microsoft.EntityFrameworkCore.Tools.DotNet (2.0.3 or latest) in your project.
7 replies
CC#
Created by Will Pittenger on 9/23/2023 in #help
❔ WPF derived combo box doesn't show up in namespace
i recommend that your read more about System.Windows.Controls.ComboBox and its examples and usage. https://learn.microsoft.com/en-us/dotnet/api/system.windows.controls.combobox?view=windowsdesktop-7.0
20 replies
CC#
Created by ATOMIC on 9/23/2023 in #help
❔ SQL Error
check your sql drivers for the connection. open server viewer in VS. try connect to your sql. check your connection string. do this i reversed order.
7 replies
CC#
Created by wwww on 9/22/2023 in #help
✅ Blazor or Razor pages
Blazor is built on Razor. working with blazor you'll be writing in razor syntax. 🙂 Razor: syntax for creating dynamic web pages in ASP.NET. Used for server-side rendering of web pages. Embeds C# code into HTML templates. Primarily used with ASP.NET MVC and Razor Pages. Blazor: is a web framework for building interactive web applications. Supports both server-side (Blazor Server) and client-side (Blazor WebAssembly) hosting models. Uses Razor syntax for defining components and UI. Enables building Single Page Applications (SPAs). All in one, Razor is primarily for server-side web page rendering, while Blazor is a full-fledged web application framework that can be used both on the server and in the client's web browser, enabling dynamic and interactive web applications.
9 replies
CC#
Created by Hercules on 9/12/2023 in #help
❔ Troubleshooting JSON Mapping for POST Request to UserAsync Endpoint
The solution for this that i made was the following Changed the signature to following
public async Task<ActionResult> CreateProjectUserAsync(**[FromBody]** HikariUser projectUser, string name)
public async Task<ActionResult> CreateProjectUserAsync(**[FromBody]** HikariUser projectUser, string name)
And then i filled the string param wiht string query.
endpoint/CreateProjectUserAsync?name=**John**
endpoint/CreateProjectUserAsync?name=**John**
5 replies
CC#
Created by Sip on 5/15/2023 in #help
❔ Help Installing C#
If you install the sdk you can run C# on your VSC. 😄
29 replies
CC#
Created by Hercules on 5/10/2023 in #help
❔ I need help making my code threadsafe that uses Selenium webdriver.
Is there any issues running async on parallel? I wanted multiple instances of chromedriver to run simultaneously
8 replies
CC#
Created by Hercules on 5/10/2023 in #help
❔ I need help making my code threadsafe that uses Selenium webdriver.
@Deno This i a great question, the reason why i belive this is mostly due to th errors I have recieved.
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
--- End of inner exception stack trace ---
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Window.set_Size(Size value)
at Screenshot_WorkerService.Worker.NavigateToUrl(ChromeDriver driver, UrlConfiguration item, ValueTuple`2 configurations) in C:\Users\Alexa\source\repos\Elicit-WorkerService\Screenshot-WorkerService\Worker.cs:line 260
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
--- End of inner exception stack trace ---
at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Window.set_Size(Size value)
at Screenshot_WorkerService.Worker.NavigateToUrl(ChromeDriver driver, UrlConfiguration item, ValueTuple`2 configurations) in C:\Users\Alexa\source\repos\Elicit-WorkerService\Screenshot-WorkerService\Worker.cs:line 260
line 260 is the last on the last line of my parallel.foreach loop. I belive the threads are targeting the same port and causing this.
8 replies
CC#
Created by Hercules on 4/4/2023 in #help
❔ Do I need to take any extra steps to install a Windows service with Parallel.ForEach?
@TeBeConsulting and @Ryada *ngIf="exists" Thanks guys for taking the time and effort.
44 replies
CC#
Created by Hercules on 4/4/2023 in #help
❔ Do I need to take any extra steps to install a Windows service with Parallel.ForEach?
Thanks for the input. There has been massive update on the code base. The point is to navigate to multiple urls and wait for them to load front-end and back-end wise with selenum webdriver (chromedriver used). Since this need to be updated frequently i decided to use multi threading. Code looks like now https://pastebin.com/zCnEPLqR Feel free to look into it all input are welcome. I right now have problems deploying it as windows service locally I keep getting timeouts in my event viewer: The MyService1 service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion. A timeout was reached (30000 milliseconds) while waiting for the MyService1 service to connect.
44 replies
CC#
Created by Hercules on 3/17/2023 in #help
✅ I get dotnet.exe' has exited with code 4294967295 (0xffffffff). When im try to run my WASM project
I have tried to restart the computer but you're actually very right and i very much agree that i need to be able to reproduce the problem. I read on a msdn forum some day ago while resting that an windows update can fix it and this morning i simply checked for updates found one and now everything checks out. I feel bad now that i can't give back to the community what the real issue was or what the solution would be.
25 replies
CC#
Created by Hercules on 3/17/2023 in #help
✅ I get dotnet.exe' has exited with code 4294967295 (0xffffffff). When im try to run my WASM project
I will look into this.
25 replies
CC#
Created by Hercules on 3/17/2023 in #help
✅ I get dotnet.exe' has exited with code 4294967295 (0xffffffff). When im try to run my WASM project
25 replies
CC#
Created by Hercules on 3/17/2023 in #help
✅ I get dotnet.exe' has exited with code 4294967295 (0xffffffff). When im try to run my WASM project
This happends when I try to start the project in Visual studio.it later craches immediately. But it seems to work fine from command line.
25 replies
CC#
Created by Hercules on 1/31/2023 in #help
❔ My web api works fine when i run it from VS but i can't publish it?
Haha. next wild thing is to run the image in a container. I really hope
docker run sort-it
docker run sort-it
will be enough. @Becquerel and @jcotton42 I like to thank you for actually giving me deeper context on understanding how docker works.
49 replies
CC#
Created by Hercules on 1/31/2023 in #help
❔ My web api works fine when i run it from VS but i can't publish it?
49 replies
CC#
Created by Hercules on 1/31/2023 in #help
❔ My web api works fine when i run it from VS but i can't publish it?
@Becquerel That acutally worked i successfully created an image "sort-it" with the following command. From the solution directory.
docker build -t sort-it -f ./Api/Dockerfile .
docker build -t sort-it -f ./Api/Dockerfile .
49 replies