Error when select language


Author
Message
Peter Denton
Peter Denton
StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)
Group: Forum Members
Posts: 77, Visits: 787
G'day

I'm also trying storing the localisation messages in my Application's SQL server database. I copied the MessageLanguages and MessageItems from the StrataFrame database into my database (I think using SQL Server to generate a create script on each table in the StrataFrame database, running the scripts against my database and then creating my own rows appropriate to my application).

I'm having the same problem with ShowAvailableLanguages casuing the following exception:

Exception Source:      System.Data
Exception Type:        System.ArgumentException
Exception Message:     lng_eventid is neither a DataColumn nor a DataRelation for table .
Exception Target Site: get_Item

---- Stack Trace ----
   System.Data.DataRowView.get_Item(property As String)
       NewRecipeMaint.EXE: N 00428
...

I have checked and lng_eventid is definitely in the MessageLanguages table where it's meant to be. I've checked to ensure that I'm accessing the database for localisation that I thought I was (by changing a value and seeing that new value reflected in my program).

Are there any further thoughts on the problem?

Peter


StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Ah, yes, I was able to reproduce this and fix it.  Here are the newest DLLs containing the fix.  I've included all 7 because there are probably a few other minor changes that might have changed a method signature, and you don't want to get a MissingMethodException...
Attachments
StrataFrame.zip (114 views, 2.00 MB)
Peter Denton
Peter Denton
StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)
Group: Forum Members
Posts: 77, Visits: 787
Ben,

I copied the dll's into both "C:\ProgramFiles\MicroFour\StrataFrame\Assemblies" and "C:\Windows\assembly" (aka the GAC) and it fixes the problem of an exception being caused whenever ShowAvailableLanguages() is called.

Unfortunately, there is now a different problem. I have just started a new application, and had just created a few new BOs and went to the Business Object Mapper, confugured the project and the business objects, and then went to "Build All Partials" and I get the following exception:

FileNotFoundException
 Could not load file or assembly 'IBM.Data.DB2, Version=9.0.0.2, Culture=neutral, PublicKeyToken=7c307b91aa13d208' or one of its dependencies. The system cannot find the file specified.

Source     : MicroFour StrataFrame AddIns

Stack Trace:
   at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.BuildPartialClass(String ClassName, Int32 ProjectItemPK, Project ParentProject)
   at MicroFour.StrataFrame.AddIns.PartialClassBuilderDialog.BuildPartialClassesForProjectThread(Object ProjectNode)

At this point the Buisness Object Mapper is frozen, the only way out is to use the the task manager to end the task, which also exits visual studio. I'm not using DB2, and the only recent change was the dll's so I copied the old ones back and tried again and I could build the partials fine. New ones in again and the exception came back.

I can work with the ShowAvailableLanguages() causing an exception, and at least I now know that it wasn't me doing something stupid, so I'll revert to the old dll's. I hope that, in the fullness of time, there will be a fix that allows both ShowAvailableLanguages() and the business object mapper to work.

Peter

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Peter,

Drag the attached file into your GAC.  This will resolve the DB2 provider error.  The files that were posted the other day had a reference to this assembly but won't when we actually release 1.6.1. 

Extract the ZIP file and drag the DLL file into the c:\windows\assembly folder and see if the problem persists.

Attachments
IBM.Data.DB2.zip (118 views, 249.00 KB)
Peter Denton
Peter Denton
StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)StrataFrame Novice (109 reputation)
Group: Forum Members
Posts: 77, Visits: 787
Trent,

Thanks for that, worked perfectly. I'm very impressed with timeliness and quality of the support for StrataFrame.

When is 1.6.1 due, is it weeks or months?

Thanks, Peter

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thanks for that, worked perfectly. I'm very impressed with timeliness and quality of the support for StrataFrame.

I am glad it got you going!  Thanks for your nice comments! Smile

When is 1.6.1 due, is it weeks or months?

We are still 3-4 weeks out from releasing it.  We have made quite a few changes and even added a some new controls.  Additionally we have made some changes that we just want to really test thorougly through unit testing and real-world environments before making it available.  So it will be mid-June before we post it.  Even though the release will be 1.6.1, it will have a lot of new features.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search