StrataFrame Forum

Brand new user question

http://forum.strataframe.net/Topic22371.aspx

By Mark See - 3/14/2009

I have worked through the tutorial in the help system and am starting to get a handle on how everything works. I must say that I'm impressed. My first challenge is to build a test app using our DevExpress controls. I have created the profile in the DDK and my business objects and built the partial classes. When I try to add the SF DevEx Maintenance Form to my project I get the following error message:

"The assemblies reference "DevExpress.Data.v7.3 ... could not be added to the project."

I have searched the forum for an hour or so and seem to find pieces of what I need to do but not a procedure. Is there one available???

Thanks in advance Tongue

Mark

By ChanKK - 3/14/2009

Hi,

Which version of DevExpress control installed in your machine, is it 7.3 as well?
By Mark See - 3/14/2009

Version 8.3.4
By ChanKK - 3/14/2009

Hi,

I think your SF installed doesn't "support" version 7.3. Try to get download/install latest SF 1.6.7 beta and try again.
By Mark See - 3/14/2009

I am running the 1.6.7 beta.

My DevExpress version is 8.3.4

By ChanKK - 3/14/2009

Hi,

I guess the template shipped is still referring to 7.3. On the other hand, I found that Inherited UI source code is referring to 8.1
By Trent L. Taylor - 3/15/2009

We have developers using a lot of different versions of Infragistics and DevExpress.  So all you need to do is take the MicroFour StrataFrame Inherited source and change the references to you version and then recompile.  The source, like Chan mentioned, should be on 8.1 versus the templates (which just need to be updated).  So it should just be a matter of opening up the MicroFour StrataFrame Inherited assembly, open the references, and replace the 8.1 references with your 8.3 references, recompile, get out of Visual Studio, and then you should be good to go.

As for the DevExpress templates, that is a longer explanation, but we will update these before the next update.  Get up to this point then we can talk about the templates.

By Mark See - 3/24/2009

I've not had to do anything like this up until now. I feel really dumb in asking but where do I find this and how do I modify it?

Thanks for all your help!

Mark

By Trent L. Taylor - 3/24/2009

Install the StrataFrame source that you can get from the My Account area.  Once extracted, open the MicroFour StrataFrame Inherited (DevExpress) or MicroFour StrataFrame Infragistics project.  Open the references like you would for any other .NET project.  Change the references from 8.x or 7.x respectively to your version.  Rebuild the solution and make sure that they make it into the GAC (c:\windows\assembly folder) and you will be good to go.
By Mark See - 3/25/2009

Hi Trent,

I followed the procedure and rebuilt the project. I received the following error message:

Error 1 Invalid Resx file. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Line 183, position 5. C:\Program Files (x86)\MicroFour\StrataFrame Source Code\MicroFour StrataFrame Inherited UI\DevExpress Extended\Dialogs\browsedialogwindow.resx 183 5 MicroFour StrataFrame Inherited UI

How do I resolve this?

Thanks, Mark

By Trent L. Taylor - 3/26/2009

Where are you getting this.  This is a reference issue.  It looks are though you are using DevExpress, right?  Also, what version are you trying to update and if I have that version I will just send you the updated assembly so we can save some time.
By Mark See - 3/26/2009

I downloaded the source from the MyAccount area and updated the references in Visual Studio to DevExpress 8.3.5 (that is the version on my laptop). I am running the 1.6.7 beta version of StrataFrame.

I updated the references by adding the DevExpress 8.3 and removing the DevExpress 8.1 for each of the references in the source code.

By Paul Chase - 3/26/2009

Hi Mark,

I use Dev Express as well and here are the steps I take to update.

1) Uninstall prev versions of Dev Ex and download and install latest version of Dev Express

2) Use the Dev Express Project converter to update references in Microfour's inherited UI, start \all programs\ dev express tools\project converter. Attached image

Also don't forget to make sure that you also update your own projects references as well.

3) Open StrataFrame Inherited UI solution.

4) Build Solution

5) Run AfterBuild.Bat

Paul

By Trent L. Taylor - 3/27/2009

We are snowed in today and working from home...so it may be Monday, but I will get the most recent version of DevExpress downloaded and just update the next build with this version.
By Mark See - 3/27/2009

Hi Paul,

I've done everything except the last step. What is, and where do I find/run, AfterBuild.bat?

Thanks for your help BigGrin

By Trent L. Taylor - 3/27/2009

It should be in the root folder of your extracted source code.  If you cannot find it let me know and I will post it.  Also, you may want to copy the AutoBuild.bat file to c:\ (the default location) just to make things easier if you are getting an error when you build.
By Mark See - 3/27/2009

Hi Trent/Paul,

Thank you so much for your patience. I am very impressed with the software and support.

I followed the procedure from Paul and after running the batch file I created a new StrataFrame Security project in Visual Studio. When I added a SF DevEx Maintenance form to the project I received an error message (see attached).

I hate to be such a nuisance, I think this is a great product (so does my boss) and I'm doing my best to get up to speed quickly. I'm just feeling really dumb right now Tongue

Thanks, Mark

By Trent L. Taylor - 3/27/2009

This is because the StrataFrame template that you selected has references to that version of DevExpress...this is more compliated to tell you how to change.  There are template files (ZIPs) that hold on to references.  So these templates have not been updated since that version (oops) BigGrin  Actually, I knew this and had it on my list.  I will update these as well when I update the DevExpress references in the Inherited assembly.
By Mark See - 3/27/2009

Hi Trent,

Thanks for all your help. I'll wait until I hear from you. Mark

By Trent L. Taylor - 3/30/2009

Attached is the updated assembly.  I will post a new beta build with the updated templates once I get them changed.  Copy this file to your c:\program files\common files\MicroFour\StrataFrame folder and drag it into the GAC (c:\windows\assembly).
By Trent L. Taylor - 3/30/2009

Mark, you can now login to the My Account area and download the new beta with the updated assembly as well as the templates.
By Mark See - 3/31/2009

Hi Trent,

I plan to be at the next training and hope to meet you there!

I downloaded the latest beta, installed the .exe and the source .exe then followed Paul's procedure (previous post).

I started a new Security Project and added the SFDevEx Maintenance Form and recieved the attached messages.

By Trent L. Taylor - 3/31/2009

I will check the templates and make sure that they are working.  It almost acts like yours may not have updated...or I could have missed something.  But in the case of the "Code Help Text" just go add that reference and then you will never see that again for this project.

The "Design Screen Error" could come from a lot of things...get used to seeing this type of screen as there are many possible causes.  In many cases, it is just a matter of rebuilding the project, closing the open form, and trying again.

The "First Message" is probably me...I forgot to update the project.  Ignore and add the 8.2 version when the project opens.

As far as your toolbox is concerned, just click on StrataFrame -> Create Toolbox Tab and it should add it in there.

By Trent L. Taylor - 4/2/2009

Mark,

I double-checked this running on the build currently in the My Account area (1.6.7 beta).  This appears to be working.  So most likely you are having some reference issues or do not have this version of DevExpress installed.  This build was compiled for 8.2, so it appears that you are not running this version.

I took a virtual machine, loaded it with the new build, and it works out of the box.  So I bet you are just missing a piece.  As I mentioned via email, this is the most recent version to which I have access at the moment.

The "First Error" that you received is most likely coming from the change that you made.  You probably updated the references, but you did not update the templates.  This is where your error came from.  A template will try to add the references for you if they are not already in your project.  That is what you were getting here.

If you want to change these as well, then you will have to update the templates distributed with StrataFrame.  You can find all item templates in the following folder:

C#
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp

VB.NET
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\VisualBasic

These are standard ZIP files.  So let's just take the SF_DevEx_MaintenanceForm.zip template.  Right click and open the ZIP file (not extract).  You will see the contents:

The highlighted file is where the version references can be found.  Extract this one file so that you can make changes to it.  Once extracted, open the file in VS, notepad, or some other text editor.

As you can see in this example, the DevExpress references are pointing to v8.2.  Change these to match your current version.  I am not positive, but most likely it will be as follows:

<Reference>
  <Assembly>DevExpress.Data.v8.3, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1</Assembly>
</Reference>
<Reference>
  <Assembly>DevExpress.Utils.v8.3, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1</Assembly>
</Reference>
<Reference>
  <Assembly>DevExpress.XtraBars.v8.3, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1</Assembly>
</Reference>
<Reference>
  <Assembly>DevExpress.XtraEditors.v8.3, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1</Assembly>
</Reference>
<Reference>
  <Assembly>DevExpress.XtraGrid.v8.3, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1</Assembly>
</Reference>

After the changes have been made, drag this file back into the SF_DevEx_MaintenanceForm.zip file.  At this point you are almost done.  Next, get out of Visual Studio and run this command:

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /setup

Now, when you go back into VS and use this template, it will use the updated references.

Repeat the same process for each of the other SF_DevEx templates and you will be good to go.

Note: The fact that your error message showed 7.3 for the version, I am willing to bet that you did not get the most recent beta loaded properly or the templates did not get updated as the current version in the most recent build is 8.2.