Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: vitor on September 23, 2015, 08:58:23 PM

Title: IWS - Create a simple module - Error to load application
Post by: vitor on September 23, 2015, 08:58:23 PM
Hi everyone,

I'm new in Genesys development, and I trying to create a simple module (just a new tab).

When I use the examples made by Genesys, they work right.

But, if I try to open Visual Studio (2013) and create a new "WPF User Control Library" (or any kind of projects),  and just copy and paste the example to my project,  it doesn't work.

I try to use the "Genesyslab.Desktop.Modules.ExtensionSample" example

After to configure all the project, when a click to "start" on Visual Studio the IWS throw an exception.

"System.TypeInitializationException was unhandled
Message: An unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module.
Additional information: O inicializador de tipo de 'Genesyslab.Desktop.App' acionou uma exceção."

in theory the problem is because the ".module-config" is wrong, but as I said, I copied and pasted like the example.


Are there some pattern default to create a new module ?
Title: Re: IWS - Create a simple module - Error to load application
Post by: Kubig on September 24, 2015, 08:15:26 AM
[list type=decimal]
[li]In case, when using the examples, just overwrite the example and use it as-is[/li]
[li]In case, when using the new project/solution, just do not copy and paste the code (there are other namespaces, assemblies, etc.)[/li]
[/list]

I am using the WPF application with little change with output type, which should be confgiured with "Class Library".
Title: Re: IWS - Create a simple module - Error to load application
Post by: vitor on September 24, 2015, 06:28:14 PM
Thanks alot for your answer, and I'll follow it.
What I copied, were some general things, like module-config and some features of classes.
Title: Re: IWS - Create a simple module - Error to load application
Post by: cavagnaro on September 24, 2015, 07:31:49 PM
;D This is my developer...help us :D
We are stuck at this...
Can't see an error on what he is doing
Title: Re: IWS - Create a simple module - Error to load application
Post by: Janis on September 26, 2015, 06:09:58 PM
Hello,

Maybe you want to take a look on my notes I created when was learning WDE customisation: http://files.fm/u/vyldzdd

Janis
Title: Re: IWS - Create a simple module - Error to load application
Post by: cavagnaro on September 26, 2015, 07:44:39 PM
[quote author=janisk link=topic=9121.msg40961#msg40961 date=1443290998]
Hello,

Maybe you want to take a look on my notes I created when was learning WDE customisation: http://files.fm/u/vyldzdd

Janis
[/quote]

:o :o :o :o
Just amazing! You rock! Can we grab this with your permission as a base and make a video showing it? We will share later after samples are run.
Thanks again!

Title: Re: IWS - Create a simple module - Error to load application
Post by: Janis on September 26, 2015, 09:50:27 PM
Yes, sure. Nice to know that my doc helps to somebody.
Title: Re: IWS - Create a simple module - Error to load application
Post by: vitor on September 28, 2015, 12:27:42 PM
Thanks a loooot man.

It's a great file.
Title: Re: IWS - Create a simple module - Error to load application
Post by: Janis on September 28, 2015, 01:03:39 PM
I've just opened my doc and seems I did not finish last chapter about web browser. I copied some parts from first example but did not replace with valid content. Sorry, it is not done for purpose. I just had not time enough.

Janis
Title: Re: IWS - Create a simple module - Error to load application
Post by: vitor on September 28, 2015, 06:19:23 PM
I want to thank you again.

I test here, and works.
Title: Re: IWS - Create a simple module - Error to load application
Post by: vitor on September 28, 2015, 06:23:11 PM
About WebBrowser, I created a new view. And it's not hard to create and manipulate web browser.

I recommend use Awesomium ([url=http://www.awesomium.com/]http://www.awesomium.com/[/url]), it's more powerful, and it uses webkit as the engine