Genesys CTI User Forum > Genesys-related Development

IWS - Create a simple module - Error to load application

(1/3) > >>

vitor:
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 ?

Kubig:
[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".

vitor:
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.

cavagnaro:
;D This is my developer...help us :D
We are stuck at this...
Can't see an error on what he is doing

Janis:
Hello,

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

Janis

Navigation

[0] Message Index

[#] Next page

Go to full version