|
This is my code, i am using XAMARIN FORM.
I can conect to the API using GET, the API is running, but when i try to do a POST to call the postTransacciones, i got the following error: NetWork Subsystem is down.
<pre>
var data = new[]
{
new KeyValuePair<string, string>("fechaGasto", Fecha),
new KeyValuePair<string, string>("tipogasto", TipoGastoData),
new KeyValuePair<string, string>("RNC", txtRNCSuplidor.ToString()),
new KeyValuePair<string, string>("NCF",txNCF.ToString()),
new KeyValuePair<string, string>("URL", sUrl),
new KeyValuePair<string, string>("Monto",txtMonto.ToString()),
new KeyValuePair<string, string>("TipoTransaccion",TipoTransaccion),
new KeyValuePair<string, string>("email", EmailUser),
};
#if DEBUG
HttpClientHandler insecureHandler = DependencyService.Get<IHttpClientHandlerService>().GetInsecureHandler();
HttpClient client = new HttpClient(insecureHandler);
#else
HttpClient client = new HttpClient();
#endif
string url = "https://localhost:7254/api/GetData/postTransacciones";
var json =JsonConvert.SerializeObject(data);
client.BaseAddress = new Uri(url);
var stringContent = new StringContent(json, Encoding.UTF8,"application/json");
try
{
HttpResponseMessage response = await client.PostAsync(url, stringContent);
Thanks in advanced.
|
|
|
|
|
Sort of like: "the power is off".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Wrong forum. Read the message at the top and click the link that says "Got a programming question?".
|
|
|
|
|
Check the port number of the "Access Point" and see if it's different from "7254".
|
|
|
|
|
For anyone is doing any Universal Cross-Platform Apps...
I'm considering either .Net MAUI or Flutter and I'd like to get some insight into these two before I make a decision.
Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
If I were 20 years younger I would probably go for QT for multiplatform stuff. It is a platform I know works at least for windows AND mac desktop. It also promises android.
Flutter, MAUI and the like, could be useful for somebody starting up from scratch, with the correct age and energy. However I am not convinced how truly "multiplatform" they really are. There are so many design differences between the desktop and a phone that I doubt if a single unmodified code base can target both. What kind of percent will be needed for platform specific fixes? I wonder if anybody could enlighten us
|
|
|
|
|
I worked a little bit in Flutter and liked it. A bit of a hassle to learn Dart as yet another programming language, but it's really not that difficult. App performance feels good. I like the widget structure and available components. Dev speed + compiling is great.
Downside: you still have to build (parts of) the UI twice, for iOS and Android.
|
|
|
|
|
Any Flutter-related issues getting your app past App Store review?
Paul Sanders.
If I had more time, I would have written a shorter letter - Blaise Pascal.
Some of my best work is in the undo buffer.
|
|
|
|
|
I am about to submit an app to Apple Store. It is a flutter app that was approved by Google and maybe tomorrow or later I will know how picky Apple is.
The only thing I did was change the DateTimePicker to the Cupertino version, mainly because I don't want to upset my future users.
As a whole, the main problems I had adjusting to iOS was the configuration on XCode, which wasn't that bad, but as I said, I have never touched an Apple product before then it took some time find things around.
For this project (sort of an online radio) I tried some tools, like Uno Platform, MAUI. ionic, etc and by the time I tested none of them could deal with audio properly - there is a good chance it was my stupidity and ignorance on such platforms, but flutter was the one that provided all I needed.
I will share my struggles with Apple Store once I have any info.
|
|
|
|
|
I wasn't responsible for publishing the apps(s), but I haven't heard back. So, Nope.
I can only assume everything went right .
OTOH, if something was wrong, I sure *would* have heard back.
|
|
|
|
|
There is no absolute answer for everyone.
My choice was Xamarin, and now it’s latest version, MAUI (which is not new, just a major next version of Xamarin renamed for marketing purposes).
The main benefit for me is being able to use a language (C#) and a framework (.NET 7) that is portable across OSs, same as used in the cloud/server apps that a mobile app will likely use, and is open-source and been around 20+ years.
If you design correctly, some C# libraries you write are also usable with MAUI.
Blazor for use making apps outside of web apps is promising, but IMHO, needs another year or so to catch up to MAUI.
My preference today is MAUI for native mobile apps and Blazor for web apps. All use C# and .NET 7.
|
|
|
|
|
None of the above I'm sorry to say.
I would make all future applications using pure HTML5 backed either by Typescript, C#/WASM/Blazor, or pure JavaScript. Then distribute it across platforms as a PWA or a Blazor hybrid app. You're then dependent on no one company's whims and shortcomings.
5 years ago I would've been horrified by this suggestion but I'm a convert now. Microsoft has proven itself completely inept at native frontend and without web support MAUI can't be taken seriously anyway. Google Flutter is interesting but requires Dart which makes porting existing apps impossible and limits the available open source ecosystem severely.
Other options -
Uno is too slow on the web.
Avalonia is a maybe but last I checked has no web support.
Here's the bottom line. No one has a strong commercial interest in making a true write-once-run-everywhere ecosystem. For anyone who has it - like Microsoft with Office or Google with GSuite - it's a competitive advantage and they're not gonna give it away. Whatever they do give away will be made by a different team than their commercial products and be inferior and watered down.
If you want something done right you have to do it yourself.
|
|
|
|
|
This is from the CodeProject insider. Probably most interesting for those that are old enough to be even close to remembering some of this
Building a DOS ChatGPT client in 2023 - YKM's Corner on the Web[^]
Now I didn't actually consider the software in the article much of a challenge. I can see the lack of threads as a bit of problem but back then Windows 3.1 ran on an event loop so one just needs to be careful about blocking for too long.
But what really amazed me was that there was a network card that would work.
Also kind of amusing at the end though where the author asks ChatGPT to write the code for this project and it says it can't. Guess it won't be replacing programmers yet.
|
|
|
|
|
jschell wrote: But what really amazed me was that there was a network card that would work.
Doom was a DOS game, and worked over LANs. It should come as no surprise that some NICs worked under DOS.
|
|
|
|
|
I think he wondered that a current generation NIC has DOS driver.
|
|
|
|
|
I used to run a 10baseT 3com NIC in a dos machine back in the day. 486DX2/66 IIRC.
To err is human. Fortune favors the monsters.
|
|
|
|
|
It's Bacon, Lettuce, and Tomato.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I knew someone would have made the roll pun. I just knew it.
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: I knew someone would have made the roll pun. I just knew it. It was not a question of "IF", more a question of "when"
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Argh! It's way over there under the sink!
|
|
|
|
|
I was thinking more along the lines of a Danish.
|
|
|
|
|
|
Kolaches are a Czech tradition here in TX. They are buns stuffed with just about everything, fruit, meat, vegetables so a BLT in a bun is not far fetched.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
From tomorrow on I'll be system architect (together with a colleague), trying to bring order into the chaos of non existant processes and a lot of different solutions for similar problems in our division, and on the same time trying to reduce complexity, make everything a bit more robust and less "manual" while bringing us into the future.
Whish me luck
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Best of luck!
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|