Add View (with presenter) doesn't show when I publish project

Topics: CAB & Smart Client Software Factory
Jun 12, 2011 at 2:10 PM

Hi,

I have Visual Studio 2008 installed and trying to create Smart Client Application.

I installed Guidance automation toolkit/extensions for VS2008, Enterprise libraty 5.0 and Smart Client Software Factory April 2008.

I created new Smart Client project in C# (demo application to display "Hello World"). I added new business module and added one file, Add View(with presenter). I added just one label "Hello World" in that View page. I write code to display this View in Shell form. I run the project from VS2008 (by pressing F5), it works fine, "Hello World" label displays on screen.

But When I publish this project and install in my machine from the link provided during publish project, I can not see "Hello World" label. Project is installed and I can see in Program Files but I can not see my View page that I should see.

In short, I can't load newly created business module or view in Shell form.

I also used MageUI.exe to publish my project but still it doesn't work. (followed process given in this link http://msdn.microsoft.com/en-us/library/ff648765.aspx)

Any help will be appreciated. I stuck at this point since many days.

Thanks,

Dharmesh

Jun 13, 2011 at 2:22 PM

Hi Dharmesh,

You might find Deployment Activities article handy in order to read an introduction of the different deployment procedures supported by SCSF.

Take into account that Mage requires many detailed steps, performed in the correct order, for common tasks such as modifying the application files listed in the application manifest.

For this reason you might find better results by using the Manifest Manager Utility for publishing applications (procedures described here).

I hope you find this information useful.

Thanks,

Miguel Bronzovic
http://blogs.southworks.net/mbronzovic

 

Jun 14, 2011 at 8:49 AM

Hi mbronzovic,

Thanks for giving me response. But my problem is not solved yet. I followed steps using "Manifest Manager Utility" but still can not see "Add View(with Presenter)" control.

My Steps:

1. Created Smart Client Project, say MyProject, in C#.

2. Four projects created in MyProject solution. (Infracture.Interface, Infracture.Library, Infracture.Module and Shell)

3. I added one file, Add View(with Presenter) in "Infracture.Module". In this file I put one label "Hello World". Add code in ModuleController.cs file of Infracture.Module to display this "Add View" file in Left Pane of Shell form.

4. Press F5. I can see label when code runs.

5. I build the project. Follows the steps given in http://msdn.microsoft.com/en-us/library/cc558879.aspx using "Manifest Manager Utility".

6. Browse url from iis which installs application. When I installed this application and opens it, "Hello World" label is not displayed.

7. I also tries with renaming all four assembly names, add project name(MyProject) at starting name of assemblies. Like, MyProject.Infrastructure.Interface.dll... and other. But still problem is not solved.

I don't understand where I am doing mistake. Please help me if anybody have any idea to display control in Shell form.

Regards,

Dharmesh

Jun 14, 2011 at 5:18 PM

Dharmesh,

One possible way to detect if something is going wrong when you publish your solution could be trying to repeat the process of publishing one of the QuickStart solutions provided with SCSF. By doing this you could check if the problem is in your code or on the server side.

You can check the SCSF QuickStart´s here.

Thanks,

Miguel Bronzovic
http://blog.southworks.net/mbronzovic

 

Jun 15, 2011 at 6:59 AM

Hi mbronzovic,

I installed QuickStart solution "Composite UI Application Block December 2005 (C#)" and I am using Visual Studio 2008.

When I opened "SmartPart QuickStart" project and publish it, its works fine because there is only a single project "SmartPartQuickStart" and other CAB projects. Then I opened "ModuleLoader QuickStart" project. It contains two projects, "ModuleLoaderQuickStart" and "GPSModule", and 3 CAB projects. It runs fine in Visual Studio 2008. But when I publish and install it in local machine, GPSModule does not load in main form.

So, my problem is when there is different project which contains Module part(usercontrols, etc) then this Module doesn't load in main project's shell form.

Modules with Assembly name given in ProfileCatalog.xml file doesn't loads. If I remove or add any assembly that doesn't exists in project then I don't get any error during opening installed file, but it give error when I execute project in Visual Studio.

Thanks,

Dharmesh

Jun 17, 2011 at 5:47 AM

I traced out my problem, why my Module.dll files does not load in Shell?

The reason was, after publishing my application I used "ManifestManagerUtility.exe" to add required dll's which are not included in solution. In this process when I open my .application file from IIS it shows me all my files with dlls and xmls files. Xml files shows "Data File" checkbox checked and you need to uncheck this check box. And now when I lunch my application it is woking fine.

Thanks,

Dharmesh

Jun 17, 2011 at 6:47 PM

Hi Dharmesh,

I'm glad that you've solved your problem. Thank you for sharing your insight with the rest of the community, as this might help other users pursuing similar scenarios.

Thanks,

Miguel Bronzovic
http://blogs.southworks.net/mbronzovic