StrataFrame Forum

Error when adding SF DevExp

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

By Lukasz Kustusz - 9/24/2010

Hello,

I'm getting the following message when trying to add SF DevEx Maintenance Form to my project. 


The assembly reference "DevExpress.Data.v9.2, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1" could not be added to the project. This wizard will continue to run, but the resulting project may not build properly.

Our version of DevExpress is 10.1.6 and SF is the trial version 1.7.3.1
Any ideas?
By Ivan George Borges - 9/24/2010

Hi Lukasz.

If you are on trial, follow this link:

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

If you have the source code, open the MicroFour StrataFrame Inherited UI solution, change the references to your DevEx version and recompile it.

Cheers.
By Lukasz Kustusz - 9/24/2010

I don't have the source code. I actually used the link you've sen't me back when I was installing the SF trial. I'd just redone it to make sure, but it's the same message.
By Ivan George Borges - 9/24/2010

Have you copied the assemblies you downloaded to %ProgramFiles(x86)%\Common Files\MicroFour\StrataFrame, then deleted the same ones from the GAC and afterwards copied the downloaded assemblies to the GAC?

After you do all this have a look at the assemblies in the GAC and check their version. Also, the message you are getting says it is finding a DevEx version 9.2 somewhere, if all the above fails, search your hard drive for a copy of this old version and delete it if found.
By Lukasz Kustusz - 9/27/2010

GAC is updated with the downloaded Inherited.UI. I also did the search in C for the DevExpress.Data.v9.2, but it's not there. Seems to me that the problem is caused because there's a reference in the Inherited.UI to DevExpress.Data.v9.2 which is not found on my PC.
By Ivan George Borges - 9/27/2010

Well, the DLL you downloaded from the link I've sent you was specially built for the DevEx 10.1.6, so there shouldn't be any references to the older version in it.

Sorry about it, but I guess I misinformed you when I asked you to look for an older version od the DLL, I meant the "MicroFour StrataFrame Inherited UI.dll". Once you copy the downloaded DLL to %ProgramFiles(x86)%\Common Files\MicroFour\StrataFrame, delete the ones from the GAC and then copy it to the GAC also, check if you find a copy of the "MicroFour StrataFrame Inherited UI.dll" anywhere else on your disk and delete it if found.
By Lukasz Kustusz - 9/27/2010

Ivan, 

I did copy the the downloaded MicroFour StrataFrame Inherited UI to both the C:\Program Files (x86)\Common Files\MicroFour\StrataFrame and c:\Windows\Assembly. I did a search and I found another instance of this assembly in C:\Program Files (x86)\MicroFour\StrataFrame\Assemblies, which I also replaced. I re-referenced this assembly in my project and rebuilt. The problem is still there. In addition, another one of our developers is using the same set of libraries, and he did the update also, and he also has the same issue. It really seems that there's something in that assembly that points to version 9.2 of the DevExpress. Could you do a test on your end to see if it works for you, for this form type?
By Ivan George Borges - 9/27/2010

At this stage, since you don't have the source code yet, I am not sure what could be happening. Have you tried using any of the SF wrapped DevEx controls from the inherited UI? Maybe the DevEx Maintenance form is a template and that is why you are getting the reference. I don't use DevEx, so I can't check it right now on my machine, I would have to ask the developers to create the test scenario to check it for you. But for the trial period, maybe you could go on and test the SF Maintenance Form and get the feeling of it, so you could have a general knowledge of what the framework could do for you.

Cheers.
By Lukasz Kustusz - 9/27/2010

I've already used the EnhancedList, and TextEdit from the SF DevEx wrapper and it works ok. I'd rather you checked with your developers for this, as the goal for our evaluation of the trial for us is to see if it will work seamlessly with our existing investment in DevExpress.
By Greg McGuffey - 9/27/2010

Could you post an example app that works with the EnhancedList and TextEdit but not with the Maintenance form?  Likely there is just a messed up reference somewhere, which is easy to fix once found....but hard to find without a project to look at.   That way not only can the developers take  look, but there are other users who use DevX and they can test it as well.
By Lukasz Kustusz - 9/27/2010

I'm not sure what kind of sample can I give you. The steps to reproduce the issue are simple. 
1. I create new StrataFrame Windows Application
2. I add following references:
DevExpress.XtraBars.v10.1
DevExpress.Utils.v10.1
DevExpress.Data.v10.1
DevExpress.XtraEditors.v10.1
3 I add new Item and I select SF DevEx Maintenance Form
I click OK - That's where the error pops up:

http://forum.strataframe.net/Uploads/Images/992a9e52-e382-4db8-8b04-98ed.JPG


The form is the added to the project anyway. I can drop any controls on it, Including the ones from SF wrapper, and it seems to work fine. I attached a sample solution, as requested.
By Ivan George Borges - 9/27/2010

OK, as I suspect, you are getting this because of the form template. So, open the "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\VisualBasic\SF_DevEx_MaintenanceForm.zip" file and edit the MyTemplate.vstemplate file. Change the 9.2 references to 10.1, zip it back and see if it helps. This is just a form template, so I guess you should be fine by now since you got the controls working with SF. Moreover, even the controls that are not wrapped by the framework, can be done so by yourself.

Hope it helps.
By Lukasz Kustusz - 9/28/2010

It worked. One little note - I also had to change this file: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\VisualBasic\SF_DevEx_MaintenanceForm.zip\MyTemplate.vstemplate

Thank you very much for your help.
By Greg McGuffey - 9/28/2010

I'm glad you got it working and thanks for the note on were the pesky form template was hiding!
By Ivan George Borges - 9/28/2010

You are welcome Lukasz.

Yeah, good thing you had a look at the Cache too! Wink