Author Topic: IWS - Create a simple module - Error to load application  (Read 4601 times)

Offline vitor

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Vítor Oliveira
IWS - Create a simple module - Error to load application
« 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 ?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: IWS - Create a simple module - Error to load application
« Reply #1 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".

Offline vitor

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Vítor Oliveira
Re: IWS - Create a simple module - Error to load application
« Reply #2 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.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: IWS - Create a simple module - Error to load application
« Reply #3 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

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: IWS - Create a simple module - Error to load application
« Reply #4 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
« Last Edit: September 26, 2015, 06:14:09 PM by janisk »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: IWS - Create a simple module - Error to load application
« Reply #5 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!


Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: IWS - Create a simple module - Error to load application
« Reply #6 on: September 26, 2015, 09:50:27 PM »
Yes, sure. Nice to know that my doc helps to somebody.

Offline vitor

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Vítor Oliveira
Re: IWS - Create a simple module - Error to load application
« Reply #7 on: September 28, 2015, 12:27:42 PM »
Thanks a loooot man.

It's a great file.
« Last Edit: September 28, 2015, 12:56:52 PM by vitor »

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Re: IWS - Create a simple module - Error to load application
« Reply #8 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

Offline vitor

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Vítor Oliveira
Re: IWS - Create a simple module - Error to load application
« Reply #9 on: September 28, 2015, 06:19:23 PM »
I want to thank you again.

I test here, and works.

Offline vitor

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
  • Vítor Oliveira
Re: IWS - Create a simple module - Error to load application
« Reply #10 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