VRose
VRose
CC#
Created by Anburaj Marikkani on 8/28/2024 in #help
Connection strings in WinForms?
But then anyone else can consume that api and get the connection string or access to the DB?😭
19 replies
CC#
Created by SmokedAnkles on 8/30/2024 in #help
Individual accounts authentication
Please help us in authentication
6 replies
CC#
Created by VRose on 6/8/2024 in #help
How does tokenization work to protect sensitive data?
Hmmmm, this makes sense 🤔 Thank you
7 replies
CC#
Created by VRose on 5/19/2024 in #help
Modifying the hosts file through c# code
Please reply to my text next time so I get notified that you replied >.<
6 replies
CC#
Created by VRose on 5/19/2024 in #help
Modifying the hosts file through c# code
I'm trying to make an app that basically restores some settings and environment in my computer and I want it to have a decent user interface so that's why I went with a windows app instead of just a cli app
6 replies
CC#
Created by VRose on 5/19/2024 in #help
Modifying the hosts file through c# code
I did that but I still got the same error
6 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
You've no idea how much this made my day 😭
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
I just tried this now and it solveddd my isssue, THANK YOUUUUUUUUUUUUUU A LOTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
I'll try this later on today and I will update you...Thank you a lot for your time and help and I hope this would fix my issue 🙏
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
This is really a hassle ;-;
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
And I need to do that in the page I'm working on?
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
May you please elavorate on how to do this?
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
Well from the chosen department ID, although I've tried replacing that with a fixed number but it didn't fix the issue
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
I'm really sorry but my project really contains some information that I can't share or else I'd have...
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
Here:
protected async Task changeTest(object args)
{

NotificationService.Notify(new NotificationMessage
{
Summary = "Attempting to retrieve data",
Severity = NotificationSeverity.Info
});

try
{


var department = await ProjectDBService.GetDepartmentByIdWithRelatedData(selectedDepartmentID);
NotificationService.Notify(new NotificationMessage
{
Summary = $"Department: {department.departmentName} has {department.departmentID}\n{department.DepartmentInfrastructures}",
Severity = NotificationSeverity.Info,
Detail = "test",
});
catch (Exception ex)
{
NotificationService.Notify(new NotificationMessage
{
Summary = $"Error: {ex.Message}",
Severity = NotificationSeverity.Error
});
}
protected async Task changeTest(object args)
{

NotificationService.Notify(new NotificationMessage
{
Summary = "Attempting to retrieve data",
Severity = NotificationSeverity.Info
});

try
{


var department = await ProjectDBService.GetDepartmentByIdWithRelatedData(selectedDepartmentID);
NotificationService.Notify(new NotificationMessage
{
Summary = $"Department: {department.departmentName} has {department.departmentID}\n{department.DepartmentInfrastructures}",
Severity = NotificationSeverity.Info,
Detail = "test",
});
catch (Exception ex)
{
NotificationService.Notify(new NotificationMessage
{
Summary = $"Error: {ex.Message}",
Severity = NotificationSeverity.Error
});
}
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
Sorry but I can't because it's personal...
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
Well yep and I've no idea why tbh... But just to put you in picture, here's the workflow of the page that's facing this issue: I've a dropdown menu that usesthe following method to populate the list:
protected override async Task OnInitializedAsync()
{
departments = await ProjectDBService.GetDepartments();
}
protected override async Task OnInitializedAsync()
{
departments = await ProjectDBService.GetDepartments();
}
and then when the user chooses an item (the id gets saved and queried) i get that error
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
Nope, never
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
What do you mean...?
78 replies
CC#
Created by VRose on 1/8/2024 in #help
ASP.NET Core Blazor + EF error
The thing is, the connection shouldn't get force closed because I've changed the timeout to none and also, if there's any errors in handling with the database, the following block of code:
catch (DbException dbEx)
{
Console.WriteLine("Database-related error: " + dbEx.Message);
throw;
}
catch (DbException dbEx)
{
Console.WriteLine("Database-related error: " + dbEx.Message);
throw;
}
would've worked instead of
catch (Exception ex)
{
Console.WriteLine("General error: " + ex.Message);
throw;
catch (Exception ex)
{
Console.WriteLine("General error: " + ex.Message);
throw;
78 replies