69
Views
5
Comments
React Web Can't start
Question

Hey guys, hopefully someone can help.

My team got a problem. I created React web application. Inside an application, there were 2 modules. One was the core module which uses to manage DB. Another one worked as a web app. The problem is before the partner environment down, an application work as usual. But after recovering, an application can't start. it shows the error as the attached file.

This is what we found in the Error log.


The type initializer for 'OutSystems.RESTService.Formatters.CustomJsonMediaTypeFormatter' threw an exception.


We tried to test by creating a new React application and set a dependency on the core module. (just setting not even use any shared objects). The new application also found the same error. But if I create another application as a Traditional Web Application and set a dependency on the same core module. It works. Do u have any advice for this case?


Many thanks in advance.


mvp_badge
MVP
Rank: #177

Hello Sureeporn Junkheav,

Can you give a little more information on what happened when the partner environment went down, and what was done to recover it?  I am assuming this is an on-premise installation of OutSystems?

Do you know if the .NET framework version changed during the recovery?

Rank: #28490

Craig St.Jean wrote:

Hello Sureeporn Junkheav,

Can you give a little more information on what happened when the partner environment went down, and what was done to recover it?  I am assuming this is an on-premise installation of OutSystems?

Do you know if the .NET framework version changed during the recovery?

 The partner environment went down cause disk full & service down. We requested to restart. And It's a cloud environment. I don't think .NET framework version changed during the recovery.


Rank: #28490

Craig St.Jean wrote:

Hello Sureeporn Junkheav,

Can you give a little more information on what happened when the partner environment went down, and what was done to recover it?  I am assuming this is an on-premise installation of OutSystems?

Do you know if the .NET framework version changed during the recovery?

 Thanks for your help. We found the root cause. it's because the integration module isn't compatible. After fixing that part, the application work as usual. 

 

Champion
Rank: #87

Sureeporn,

The problem lies in the fact that a method can't be found in a .NET package;

After some searching this seems to be a bug in .NET 4.6.1. (See this SO thread). Upgrade to the latest version should help.

edit: and another thread going into a similar issue; https://stackoverflow.com/questions/38355544/type-argument-system-net-http-headers-mediatypeheadervalue-violates-the-constr/41843826 

Good luck,

Vincent

Rank: #596

Dear Sureeporn, 

We had the same problem in Reactive application of the extension framework version.

Outsystems recommended .NET Framework 4.7.2.

Refer the URL - How to use .NET Standard libraries in OutSystems extensions - OutSystems  

Regards,

Shahaji