Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] How Outsystems handle with app.config from the .xif?

$
0
0

Nuno Oliveira wrote:

Hi People,

I need to create an Extension (.xif) to be able to consume a complex WSDL. I need to have there the app.config to play with certificates and other stuff.

We created a perfect test .NET application that is working. We have data :)

No we want to use an extention to work with the data in Outsystems.

Question:

How Outsystems handle with the App.Config from the Extentions? 

If I use that Extention in one "Test App" that has its own AppConfig the compiler append the Extention app.config content (ClassLibrary Output Type) in the StartUp Project app.config content (Windows Application Output Type)?

This because I'm guetting this annoying error: 

The type initializer for 'myclass' threw an exception. 

I read this and this issue in my Project (console output type) that I use to test the class (the project needs to have its own app.config)

"This error can arise if you are calling the service in a class library and calling the class library from another project."
In this case you will need to include the WS configuration settings into the main projects app.config if its a winapp or web.config if its a web app. This is the way to go even with PRISM and WPF/Silverlight.”

My experience with .NET is almost null and I'm a little stuck with this error. If you say to me that the app.config content is appended (I hope yes) I should have ither problem

Thanks for the help

Hi,

"We created a perfect test .NET application that is working." - This is good..

Did you create extension in OS?

Did you add all library in the extension that you used in your .net code?

Did you copy paste .net project in extension?

Did you take all .net references?


Thanks,

Rajat Agrawal



Viewing all articles
Browse latest Browse all 1476385

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>