 |
|
|
 |
|
 |
Hi Stephan,
Genesis seems to be a great framework, but in the company I work for the Web develop is not well accepted, because we use the develops just internally...
Question: Can Genesis work also for Windows Forms?
Thanks in advance
the CreF
|
|
|
|
 |
|
 |
Hy CreF,
The Genesis Smart Client Framework is a Windows Forms application that uses Web Services to communicate over a network to a central server. The central server controls the versions of DLL's on the client computer and can be run on an internal network or over the internet (the web services were optimized for internet use).
My samples just show the built-in web browser control, however if you look at the template project (in Visual Studio, under new projects, its called 'Managed Genesis Application' under 'My Templates') it has a sample for displaying a System.Windows.Forms.MessageBox.
I am currently working on release 1.51.1024.0 which will include:
- the database script to automatically register your application in the Genesis database
- more samples (especially using Windows Forms)
- support for IIS 7 during installation
I am planning on releasing this version by next weekend.
|
|
|
|
 |
|
 |
I tried the new installer (v1.50.1024.1) and it completed successfully. Unfortunately when I went to step 1 of current issues I could not find any directories under my default web site in IIS that matched the virtual directories of: Genesis.FileHost, Genesis.Web, Genesis.WebServices, or Genesis.Management.Web. I'm using the IIS 7 Manager. I even searched for Genesis.FileHost under my C:\ drive and found nothing. Any suggestions?
|
|
|
|
 |
|
 |
Sorry I didn't notice the post below about it not being able to run. It sounds like the same problem. I forgot to mention that I am using Vista Ultimate 64 bit, so my log file will be in the Program Files (x86) folder. I will try again starting from scratch and if I won't load I will be happy to send my log file.
modified on Monday, August 10, 2009 2:20 PM
|
|
|
|
 |
|
 |
It seems to get through this part but it is not really doing anything. Here is that part of the log
[8/10/2009 - 2:20 PM] Creating Virtual Folders
[8/10/2009 - 2:20 PM] Creating Genesis.FileHost Virtual Folder
[8/10/2009 - 2:20 PM] Configuring Internet Information Services
[8/10/2009 - 2:20 PM] iisVDirCreate executed (Default Web Site, Genesis.FileHost, C:\Program Files (x86)\Blue Marble\Genesis Smart Client Framework\Web\FileHost)
[8/10/2009 - 2:20 PM] Connecting to the IIS Service
[8/10/2009 - 2:20 PM] Modifying app.config files
[8/10/2009 - 2:20 PM] Modifying Genesis.Host.exe.config
[8/10/2009 - 2:20 PM] Closing reader
[8/10/2009 - 2:20 PM] Writing Genesis.Host.exe.config
[8/10/2009 - 2:20 PM] Closing Writer
[8/10/2009 - 2:20 PM] Modifying web.config files
[8/10/2009 - 2:20 PM] Opening Genesis.FileHost web.config
[8/10/2009 - 2:20 PM] Closing reader
[8/10/2009 - 2:20 PM] Writing web.config
[8/10/2009 - 2:20 PM] Closing Writer
[8/10/2009 - 2:20 PM] Opening Genesis.WebServices web.config
[8/10/2009 - 2:20 PM] Closing reader
[8/10/2009 - 2:20 PM] Writing web.config
[8/10/2009 - 2:20 PM] Closing Writer
[8/10/2009 - 2:20 PM] Opening Genesis.Web web.config
[8/10/2009 - 2:20 PM] Closing reader
[8/10/2009 - 2:20 PM] Writing web.config
[8/10/2009 - 2:20 PM] Closing Writer
[8/10/2009 - 2:20 PM] Opening Genesis.Management.Web web.config
[8/10/2009 - 2:20 PM] Content: <?xml version="1.0"?>
|
|
|
|
 |
|
 |
Hi again Clingfree,
I'm working on the installer for version 1.51.1024.0. This installer will feature a more comprehensive IIS 7 installation process, currently I only support IIS 6 through a library called iismanager.dll I found on Code Plex.
What you need to do is create the Applications in IIS under the default web site. These are
Genesis.FileHost - C:\Program Files (x86)\Blue Marble\Genesis Smart Client Framework\Web\FileHost\
Genesis.Web - C:\Program Files (x86)\Blue Marble\Genesis Smart Client Framework\Web\Genesis\
Genesis.Management.Web - C:\Program Files (x86)\Blue Marble\Genesis Smart Client Framework\Web\Management\
Genesis.WebServices - C:\Program Files (x86)\Blue Marble\Genesis Smart Client Framework\Web Services\Genesis\
All the applications need to have Windows Security turned on, and Genesis.FileHost ALSO requires Anonymous Access.
Add a MIME type to Genesis.FileHost. The type should allow for .DLLX files to be downloaded, you can call it what you like.
I have the following IIS Windows Components installed:
- IIS Metabase and IIS 6 configuration compatibility
- IIS Management Console
On some other development workstations I've also got the following:
- IIS 6 Scripting Tools
- IIS 6 WMI Compatibility
A note on the new version (1.51.1024.0):
- If you use the template project type, it will now automatically execute the Genesis.Host application when you run.
- I've updated the template project to automatically execute the database synchronization after a successful build (most people forget to execute this step and wonder why their code never debugs)
- IIS 7 compatibility during installation
- New interface to expose the GlobalDataSetFunctions instance to the hosted application during application load
- Updated the way that the IHost implementation is being passed to ICommand implementations. I found that on some execution paths it neglects to pass the IHost through, and if the ICommand is dependant on the IHost it throws an "Object reference..." exception.
I am once again working hard on the new version while updating an existing application to use the framework as well. I hope to release it by next weekend.
Regards
Stephan Johnson
|
|
|
|
 |
|
 |
Lots of problems trying to get this set up.
First, there are many errors running the sql script. I'm using sql server 2008 std. I changed the path that the mdf and ldf should be created at but still get many errors like
Msg 4902, Level 16, State 1, Line 1
Cannot find the object "dbo.Security_Role" because it does not exist or you do not have permissions.
Msg 4902, Level 16, State 1, Line 1
Cannot find the object "dbo.Exception_LogEntry" because it does not exist or you do not have permissions.
There are probably a couple hundred errors. The db does get created but it must be incomplete.
Trying 'view in browser' for Genesis.FileHost update.aspx I get "The server was not found or was not accessible." Either the db is incomplete or some config file somewhere has to be told where the db is.
Finally when running the app on the login form the application list is blank. Submitting without a value selected fails.
modified on Monday, July 20, 2009 6:06 AM
|
|
|
|
 |
|
 |
Hi Corefour,
I've been attempting to master WiX by building an installer for the framework to ensure that everything is correctly configured and that developers can get working on the framework. It has been a difficult journey which resulted in giving up with WiX and using a normal Visual Studio Setup Project with custom installer classes driving the process.
It is available at <a href="http://genesissmartclient.codeplex.com/Release/ProjectReleases.aspx">Code Plex</a>[<a href="http://genesissmartclient.codeplex.com/Release/ProjectReleases.aspx" target="_blank" title="New Window">^</a>] please get a copy of this release as it should resolve all of your problems that you are currently experiencing.
Regards
Stephan Johnson
|
|
|
|
 |
|
 |
OK, thanks for all of your efforts!
I ran the installer and it seemed to go ok (there was an error message at the end about the application pool. I didn't write it down because I knew the installer had an issue in the area per the site notes). But I do not see the virtual directories that I am supposed to (Genesis.FileHost; Genesis.Web; Genesis.WebServices; Genesis.Management.Web) This is on XP Pro sp3.
|
|
|
|
 |
|
 |
Gosh Darnit! It doesn't do that on my computer!
Can you please send me the install.log file that was created in C:\Program Files\Blue Marble\Genesis Smart Client Framework?
you can use my email address (stephan dot johnson at gmail dot com) (no spaces of course)
I see you're using XP with SP3. I have not tested the deployment on IIS 5, so I think that might be your problem.
Try turning off the 'Register web sites in IIS' option in the set-up. that should by-pass IIS completely.
After the installation is done, you will just have to register the following virtual directories:
genesis.filehost (C:\Program Files\Blue Marble\Genesis Smart Client Framework\Web\FileHost)
genesis.web (C:\Program Files\Blue Marble\Genesis Smart Client Framework\Web\Genesis)
genesis.webservices (C:\Program Files\Blue Marble\Genesis Smart Client Framework\Web Services\Genesis)
genesis.management.web (C:\Program Files\Blue Marble\Genesis Smart Client Framework\Web\Management)
I hope this helps.
|
|
|
|
 |
|
 |
Now this is some interesting stuff
|
|
|
|
 |
|
 |
Hi JumpingJellyBean,
Thanks for the feedback, I'm glad I'm not the only one who thinks that this framework is cool
Regards,
Stephan Johnson
|
|
|
|
 |
|
 |
I love the articles. the framework works great! how would I convert an existing appliction to work with the framework?
thanks for sharing this project!
|
|
|
|
 |
|
 |
Hi CraziChix,
Thanks for the feedback, I am glad you are enjoying the framework. Converting existing applications should not be too difficult. Most applications should work as-is if you can do two things...
1) Change the project type from Windows Application to Class Library
2) Add some Commands (see the Template Solution in the latest release) to open your existing forms that you would have done from the main menu in your application.
Web applications can be hosted from inside the Smart Client using the built-in browser (which uses the Internet Explorer Web Browser control to render pages). All that you'll need is to
1) Create a Class Library with some Commands to open specific pages (see the Genesis.Management project for more information on how to do that)
2) Possibly remove the visible menu from your site (since the menu's will now be controlled from the Smart Client application)
I hope this helps
Regards,
Stephan Johnson
|
|
|
|
 |
|
 |
I downloaded the files from CodePlex and extracted them. There appears to be a files missing from the solution, namely Genesis.Management.dll
Quis custodiet ipsos custodes
|
|
|
|
 |
|
 |
Hi Shaun,
The Genesis.Management.DLL is a project that is included in the Genesis Smart Client Framework solution and the BlueMarble.Genesis.Client solution.
It is not included in the Template Solution (as it is not required there) but will cause the Database/File System synchronization to complain about the missing file.
To rectify the problem, simply build either the Genesis Smart Client Framework or the BlueMarble.Genesis.Client solution. That should create the required DLL and the rest of the processes that are dependant on it should work fine.
Regards
Stephan Johnson
|
|
|
|
 |
|
 |
Hi Stephan,
Tried that but stil no luck
regards
Shaun
Quis custodiet ipsos custodes
|
|
|
|
 |
|
 |
Hi Shaun,
I tried using the built in Code Project e-mail function yesterday to communicate with you with regards to resolving your problem, however since I have no reply mail, I can only assume it did not work
Can you please send me your build output from one of these failed builds?
Then in order to get to some sort of resolution:
1) Can you tell me which one of the three solutions you are attempting to build?
2) If you are attempting to build the Template Solution, please do a rebuild on either of the other two. This is because the Template Solution does not contain the Genesis.Management project, and would therefore fail.
3) If you not using the Template Solution and instead one of the other two, please right click on the Genesis.Management project (in the Management System solution folder) and select Build/Rebuild. It might be that for some reason the project is being excluded from the build. You might want to check the Build Configuration.
Regards,
Stephan Johnson
|
|
|
|
 |
|
 |
Hello everybody,
Shaun and myself have been in communication via e-mail in an attempt to resolve his problem. I'm posting an update here so that other people who might experience the same issues can resolve it as well.
The problem that Shaun encountered was that when he ran the Update.aspx page as instructed on the release notes, one file (Genesis.Management.DLL) reports an error because it cannot be found. The reason that the error is reported is because the update process sees that the file is listed in the Module_File table and is attempting to load it.
The problem occured because Shaun was using the 'BlueMarble.Genesis.Client' solution, which excludes the Genesis.Management project.
The problem was resolved when Shaun opened the 'Genesis Smart Client Framework' solution and did a full rebuild. He then opened the 'BlueMarble.Genesis.Client' solution and followed the rest of the release notes and successfully executed the sample.
My recommendation for anybody who is experiencing problems with either release 1.30.1024.0 or 1.40.1024.0 is to open the 'Genesis Smart Client Framework' solution and do a full rebuild and then to continue with what they were attempting to do.
Thanks for Shaun for reporting his issues. It helps make the framework more robust if all problems are seen to.
Regards,
Stephan Johnson
|
|
|
|
 |
|
 |
I've had this same problem. I followed the instructions explicity. I get all OK in the Genesis.Filehost project update.aspx in the browser. However, when I run the template solution with the BlueMarble.Genesis.Client project I continue to get a FileNotFoundException on line 218 of BlueMarble.Genesis.Client.Program in the catch section. The file is Genesis.Management.dll. I checked the bin/debug/ directory and there is not Genesis.Management.dll file so it throws an exception every time. Is this the expected behavior? It then throws an exception on line 59 of file BlueMarble.Genesis.Client.Standard.Forms.Main when it cannot find the file lock.ico in the bin.debug.
Other than that, this is truly fantastic and very well thought out.
|
|
|
|
 |
|
 |
One of the other things that was causing a problem in the Genesis Smart Client Framework solution was Genesis.WebService was set to use dynamic ports. When I changed it to not use dynamic ports and set the port number to 1480 all was much better.
|
|
|
|
 |
|
 |
Hi Clingfree,
Thanks for the feedback. I'll be sure to have this issue resolved in the next release as well.
Regards
Stephan Johnson
|
|
|
|
 |
|
 |
Hi Clingfree,
The Genesis.Management.dll project is only included in the Genesis Smart Client Framework solution file. It only gets built if you open the Genesis Smart Client Framework solution.
It is being referenced from the database because it is one of the registered sample applications that I ship with the framework. It is also the management interface for managing the security and application settings for the framework.
I made a mistake while building the release file for Code Plex, and unluckily some developers are presented with this fowlup with the missing file.
I am unsure of why you are receiving the issues with the lock.ico file, it has not presented itself as a problem with other developers and should be included in the release. I will investigate this issue though, and attempt to have it resolved with the next release.
Due to some initial setup issues that developers have experienced, I've spent some time working on a WiX installer that configures IIS and SQL server correctly. This accompanies by Visual Studio templates should provide enough of a platform for any developer to get started with using the framework. I hope to have the next version released within the next day or two, please watch both Code Plex and Code Project for any news of this.
I am very glad that you are enjoying the framework. It has served me well with a few other applications and I am hoping that it turns into a successful Open Source project as well.
|
|
|
|
 |
|
 |
Hi ClingFree,
My appologies for taking so long to get back to you, I've been attempting to master WiX by building an installer for the framework to ensure that everything is correctly configured and that developers can get working on the framework.
It is available at Code Plex[^] please get a copy of this release as it should resolve all of your problems that you are currently experiencing.
Regards
Stephan Johnson
|
|
|
|
 |