Genesys CTI User Forum
		Genesys CTI User Forum => Genesys-related Development => Topic started 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 ?
 
- 
				[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".
- 
				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.
 
- 
				;D This is my developer...help us :D
 We are stuck at this...
 Can't see an error on what he is doing
- 
				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 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!
 
 
- 
				Yes, sure. Nice to know that my doc helps to somebody.
			
- 
				Thanks a loooot man.
 
 It's a great file.
- 
				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
- 
				I want to thank you again.
 
 I test here, and works.
- 
				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