Latest MonoTouch 4.0 problem when trying to access a WCF service - c#

My MonoTouch application is calling to a SOAP WCF Service using CustomBinding with HttpTransportBinding and TextMessageEncodingBinding and everything is working fine with MonoTouch version 3.2.6. I'm updating my system to use MonoTouch version 4.0.0 and the call to my SOAP WCF Service is no longer working. I keep getting the System.Net.WebException
"The remote server returned an error: 400 Bad Request";
What is causing this problem, and how do I to fix it?
If I re-install MonoTouch version 3.2.6 again, then my application works correctly, but as soon as I update to MonoTouch 4.0, I run into the same problem.

Your question lacks many details to help us help you, but here's two things you should try:
1) Some fixes made for WCF inside MonoTouch 3.x were (sadly) missing from MonoTouch 4.x. It's possible that your application depended on them. If you use MonoTouch 4.1 then you can replace your System.ServiceModel.dll (see comment #6 of the above link), rebuild your application and see if this fix solves your issue.
2) Several fixes were made in the HTTP stack for MonoTouch 4.2 (soon to be released, but most are not in the 4.1 beta). They are not exactly WCF-related but it's not clear if your 400 error message is a WCF failure (or not).
If both updates do not solve your issue then please fill a bug report at http://bugzilla.xamarin.com and attach a self-contained test case so we can investigate this further. Thanks!

Related

A failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade See the Console for details

When I try build Android application. I got some error about R8.
I used to be able to build successfully, but at some point I started getting errors.
Configure project :launcher
WARNING: The option 'android.enableR8' is deprecated and should not be used anymore.
I googled android.enableR8 and it only worked for people developing apps in Android Studio.
My project currently uses PUN 2 to enable multiplayer, and Firebase for the database.
Also, the error continues below;
注意:D:\UnityProjects(ProjectName)\Temp\gradleOut\unityLibrary\src\main\java\com\unity3d\player\UnityPlayerActivity.javaは非推奨のAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
It says UnityPlayerActivity.java uses a deprecated API, and check details by using -Xlint:deprecation option.
I don't know what -Xlint:deprecation is, and I don't remember changing the Unity Playern settings.
Is this a Unity bug? Or is it a bug in IL2CPP?
I don't know the cause yet, and I haven't solved it fundamentally, but I found that the problem was in Firebase.
I deleted all the Firebase related folders and the build worked.

Getting System.BadImageFormatException and System.InvalidProgramException in ASP.Net Core app in Azure App Service

Over the past couple of days I've observed a significant number of 500's being returned from our web service, and digging into the logs, see these two exceptions occuring:
System.BadImageFormatException - Bad IL range.
System.InvalidProgramException - Common Language Runtime detected an invalid program.
I am unable to repro on a local instance, and can't get any further info from Azure. Rebooting the machine and redeploying the code do not help. The set of NuGet packages we use haven't changed in quite some time.
This is a ASP.Net Core app running on .Net Core 2.2, hosted in an Azure App Service.
Any suggestions welcome.
I had seen the same questions in one of my emails and had to dig up to see what the solution is.
If you have enabled Application Insights through Portal's Extensions tab please turn it off and enable Application Insights through Portal's Application Insights tab. This should solve your problem hopefully. Here is the issue

Deploy .net core 3.0 on AZURE or Local

Over the last 2 days i twisted my head around deploying my WEB API.
App specification: WEB API .NET CORE 3.0 Preview 4
Firstly i tried to deploy on Azure using App Services.
Seems like they don't support .net core 3.0 but i don't really understand this since you can wrap everything in your package, wasn't this done in order to be deploy-able everywhere ?
When i'm trying to access the websitei get a
HTTP Error 500.0 - ANCM In-Process Handler Load Failure which i didn't managed to fix.
--I tried to do the same with a clean project, still same issue--
Secondly i created a virtual machine (VM) and deploy on VM.
Here i get a internal server error and i cannot debug (any tips are welcome)
Third I deployed on local IIS, here i get the following error:
"Cannot read configuration file due to insufficient permissions"
I added the permissions to IIS_IUSRS but after this i get a infinite loop
--The same i get with the clean project--
Am i doing something wrong , what could i do to deploy my Web Api Project.
The documentation suggests that it is possible to deploy preview versions, although I haven't tried it. This blogger encountered the same problem you did, and resolved it using these instructions. He says:
This document covers two different ways to fix this issue – you can
either install the preview site extensions for ASP.NET Core 3, or you
can simply change your deployment to be a self-contained application.
In this case we’re going to go with deploying a self-contained
application, since this reduces any external dependencies which seems
sensible to me.
So it seems you are correct that building a self-contained package is one way of solving this, but you have to specifically ask for that when you publish.

UWP app is not passing certification process

I am having problems with passing through certification process when I try to submit an update to UWP app. In the certification report it says:
API ?generic_category#system#boost##YAABVerror_category#12#XZ in boost_system.uwp.dll is not supported for this application type. BlenderCycles.dll calls this API.
API ?system_category#system#boost##YAABVerror_category#12#XZ in boost_system.uwp.dll is not supported for this application type. BlenderCycles.dll calls this API.
The issue is very confusing, because BlenderCycles.dll has used boost library before and the code did not changed. Any ideas what could be the problem?
I use boost library from here, which is specifically for Windows 10 UWP apps.
Edit
: I forgot to mention that at one point I had to recompile boost library, because visual studio started throwing errors about boost_system.uwp.dll because it was compiled by an older compiler. That is when this problem started.
Problem was solved by adding BOOST_SYSTEM_NO_DEPRECATED definition to BlenderCycles library.

Code Cop App just hangs

I written an test application using a Code Cop, a method interception approach.
However, as soon as I ran my first application I hit a snag whereby the application would fire up and hang with no information as to what was happening.
I had followed the code exactly and was able to run the same code on another machine.
There is no error information being output, it just hangs.
Does anyone know how I may be able to solve or debug this issue?
My solution was to contact Ricardo Barbosa at CodeCop who proceeded to help me solve this issue promptly and explaining why this was occurring.
My issue was due to not having the correct CLRJIT.dll on my machine
C:\Windows\Microsoft.NET\Framework
A Windows update solved the issue.
What's Happening
When the CodeCop application runs it creates a folder in %temp%/CodeCop and downloads symbol files from Microsoft to calculate method addresses.
The version I had was 4.6.57.0 in my v4.0.30319 framework folder.
For some reason there was no symbol file from the Microsoft public symbol server for this version of the CLRJIT.dll
Running Fiddler while starting the application showed this to be the case.
After I performed a Windows update I got version 4.6.100.1 of the clrjit.dll the application built and performed as expected.
Thanks to Ricardo for spending the time to solve this issue for me.

Categories

Resources