How-To: Web Client Software Factory (WCSF) June 2007 & Visual Studio Orcas Beta 2
OK, we have installed Smart Client Software Factory in Orcas Beta 2, but.. how about Web Client Software Factory?
In this post, I will detail the steps you have to follow in order to use WCSF June 2007 with Orcas Beta 2.
- Install Guidance Automation Extensions Technology Preview (July 2007 Release for Visual Studio 2005 and Visual Studio Beta 2).
- Download and install Orca MSI editor (which is distributed with the Windows SDK). The Orca MSI Editor is a table-editing tool that can be used to edit your .msi files. If you want to learn more about this tool, please visit this link.
Note: If you don’t want to download the Windows SDK, a guy published the Orca.msi tool (Download from this place at your own risk). - Open Orca MSI editor and then go to File > Open….Select the WCSF MSI file (Web Client Software Factory - June 2007.msi).
- Select the RegLocator table from the tables list.
- Modify the following key values (replace the 8.0 with 9.0 in the paths) from this table:
- FindVSInstallDir
- VisualStudioInstallRegistry
- VistualStudioHelpRegistrySearch
This is how it should look after replacing these values
- Save the changes.
- Install Web Client Software Factory June 2007.
Known Issues
WAP and Non-WAP Issues
- Runtime exception when the project is executed
This is an old issue which was discussed in this thread. In order to fix this you have to modify the line 107 of the WebClientApplication.cs file (under CompositeWebApplicationBlock\CompositeWeb) to:
if (HttpRequestHelper.IsHandledByPageHandlerFactory(context.Request.Url.ToString()) && context.Handler != null) - Build fails after adding a Foundational or Business module with Test project
In order to fix this you have to modify the following files inside WebClientSoftwareFactoryPackage inside Templates folder:
- \Module.Tests.VB\*.vbproj
- \Module.Tests.C#\*.csproj
Change:
<Reference Include=”Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL”> </Reference>For:
<Reference Include=”Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL” />
Non-WAP specific issues
- A dialog box is shown after the creation of the solution
If you click Yes, you can go on without problem, but if you want to avoid this dialog box everytime you create a Web Client solution you will have to add the missing tags in the Web.config template.
- Website is not being recognized as a WebProject
This cause the following issues:
- An exception occurs after Adding a Business Module
- In the Add Foundation Module window the website dropdown is empty so the Finish button is disabled. No Foundational Module can be added to the web client solution.
- The Add View (with Presenter) menu option is not visible.
- An exception occurs after Adding a Business Module
In order to fix these you have two options:
- Closing and reopening the solution (it's just a workaround :))
- Update the CreateWebClientSoftwareSolutionCommon.xml recipe by adding the following in the Actions section:
<Action Name=”SetIsWebProject” Type=”AddProjectGlobalsEntryAction” PropertyName=”IsWebProject” PropertyValue=”True”> <Input Name=”Project” RecipeArgument=”WebUIProject” /> </Action>You should also modify the vwd.webinfo file by removing the IsWebProject=”true” property:
<?xml version=”1.0″ encoding=”UTF-8″?> <!– Visual Studio global web project settings.–> <VisualWebDeveloper> <Globals> <UserProperties /> </Globals> </VisualWebDeveloper>
Hope you find this guidance useful. Feel free to visit us at Codeplex Forum to give us feedback.
Attached you fill find a zip file that contains the files modified. Just unzip this on %program files%\Microsoft Web Client Factory\WCSF Guidance Package. Click Yes to All to replace the existing files.
Note: The zip does not includes the modified Composite Web Application Block.Important: Keep in mind that this is just a workaround so use these steps at your own risk. This guidance is provided “as is” without warranty of any kind.
Attachment: WCSFOrcas.zip
Followed instructions on this page to get WCSF and Enterprise Lib 3.1 installed.
Then tried to follow the rest of the original instructions about
“To run the Recipes in the Guidance Package” at
http://www.codeplex.com/websf/Wiki/View.aspx?title=Installing%20the%20Web%20Client%20Software%20Factory&version=3
I open the solution in VS2008
\WCSF Source\GP\WebClientFactory\WebClientFactory Guidance Package.sln
Got a lot of reference errors about various Microsoft.Practice DLLs;
which I fixed.
Got the solution to build without errors.
Then when I tried to use Tools -> Guidance Package Manager, to enable the Guidance Package Development guidance package; I got a Recipe Framework Error.
Could not load file or assembly ‘Microsoft.VisualStudio.TemplateWizardInterface’ blab blab blab. The located assembly’s manifest definition does not match the assembly reference.
Anyone have any ideas?
Seem that to get past the TemplateWizardInterface error, I had to modify the VS2008 devenv.exe.config file to remove the versioning bit about ‘Microsoft.VisualStudio.TemplateWizardInterface.
But now when I do a File New project, I do not see anything about WCSF solution template being displayed.
What am I missing now?
Found out there is a new version of GAX and GAT available for VS2008.
http://blogs.msdn.com/tomholl/archive/2008/02/16/gosh-gat-gax-is-golden.aspx?CommentPosted=true#commentmessage
Thanks for this guide, but the problem is that your images are no longer showing on the page. So I’m not sure if I am modifying the correct values.