Abdesol
In App Billing purchased fetching on mac os causes restore failed issue sometimes
I am trying to use the InAppBilling plugin library by james montemagno (https://github.com/jamesmontemagno/InAppBillingPlugin) in an avalonia program. I have setup subscription and well configured the settings, info.plist and entitlements for this purpose.
But the problem is, the library, when fetching from app store, it sometimes work and sometimes says failed due to restore issue, which I think means that it was not able to connect to app store and fetch purchases.. I saw a solution saying that we just have to keep trying in a loop, but still the error is not clearing. It particularly happens when I am trying to fetch purchased subscriptions list to check if the user has purchased our product or not.
Has anyone ever faced this and found solution for it? Looking forward for any help. Thank you!
1 replies
Using Azure ADB2C, new user claim is being sent on every sign in
I am trying to use azure ad b2c for user signup and signin. And after signup, I want to use the newUser claim to add the user email to queue storage for one of my azure functions to do a task around it. I am using ASP.NET as a web application for this.
The problem is that azure ad b2c is caching the token in the browser. So, whenever I sign in, it is not sending a refreshed token. So, the newuser claim is being sent until I logout and login again. I wanted to manually check if the user is in database using microsoft graphs but the catch with this one is, by the time I am checking, the user is already in the users list.
2 replies
Tried many things to fix this SqlClient exceptions, but no hope
It is a started project given to me, and I have to run the project first, and then exectue the stored procedures. We are using SQL Server for this.
I am facing the below error as I run the project
And when I manually create the database instead of relying on the project to create it, I get the below error which I think is looking for the table:
I tried with windows authentication as well as sql server authentication by creating new logins, but it keeps resulting on the same error.
It is working for them, it is just not working on my pc. What are the possible things I could do to fix this issue? Thank you!
20 replies
How to disable Microsoft Identity Web generated endpoints and redirection
So, in my project, I am trying to use microsoft identity for azure ad b2c configuration. But the problem is, it created its own endpoints, and now whenever I go to a non existing endpoint, it just chooses to redirect to the azure ad b2c provided remote url. It is weird what is going on. I only have it here in my asp.net webapi project:
Is there any obvious way I can remove the additional things created with it? I tried directly setting up open id connect.. but it still does the same thing. Thank you!
71 replies
standard output from Process not giving any output for certain commands
I am using C# process to run some processes. The shell is
cmd.exe
, and running several types of scripts work. But, when I try to run python idle with the command cmd.exe /C python
, it is giving no output and the process is also not exiting. It should have displayed the idle texts like it do on a normal terminal.
The task function in which I am writing the output:
Is my approach wrong? Thank you!82 replies
How to handle outputs that alter the same line and remove lines while running a process?
Hello, I am trying to run a process in a C# program and the process output alters on the same line. Like, it shows percent, and then removes some lines and shows another line. Currently, using StandardOutput, I am not able to capture such scenarios. Is there any workaround to this? Thank you!
9 replies
cancellation token to stop Console.ReadLine is only working on the first try
I have the following method I got from stackoverflow
I run it in a loop while passing it a cancellation token.. and the cancellation token is also in a loop, which means, I recreate it every time.. it works on the first try.. but after the recreation starts for the cancellation token, on
await Task.WhenAny(readTask, Task.Delay(-1, cancellationToken));
cancellation token doesn't get to end first although it should have from the other concurrent task I manage to cancel the token. What could be a possible solution? Thank you!93 replies
when do I need to learn dotnet aspire?
I am trying to get into backend web dev with dotnet using asp.net core and the other tools. I was looking through the roadmap provided by Nick Chapsas (https://roadmap.sh/r?id=65d8624e66cd6d03d2d7efc9), and it put dotnet aspire before asp.net core basics. When I try to look into how I can learn dotnet aspire, they all are using some form of asp.net apis.
So, is it necessary that I learn it first or let me do it after I get comfortable with asp.net core?
Thank you!
7 replies
On deserializing using Newtonsoft, I get default constructor required issue on mac but not on window
I am trying to use the ChatGPT nuget package
<PackageReference Include="OpenAI" Version="1.11.0" />
which have to deserialize json for data processing. It works normally on windows, but on macos, I face the error below:
My target framework for windows is net8.0, and for macos, it is net8.0-macos. I have tried to switch to another ChatGPT package, but similar issue arises. Is there any fix for this issue? Thank you!28 replies
✅ Bass Library Error: Device(Illegal Device Number)
I am having hard time with using the bass library on MacOS. I am not able to get rid of the Device(Illegal Device Number) issue after publishing. It works perfectly in debug mode. After publishing for microsoft windows too, it is having problem but I am not sure about that. But I am sure about the MacOS problem.
15 replies