Terry Bottorff
|
|
Group: Forum Members
Posts: 448,
Visits: 12K
|
I create my installation package but I get the following error when I try and run my software on Client Machine.
ApplicationException An error occurred while creating the main form TargetInvocationException Exception has been thrown by the target of an invocation. FileNotFoundException Could not load file or assembly 'ProRodeoChecksLibBO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Source : MicroFour StrataFrame UI
Stack Trace: at ProRodeoChecks.MainChecksfrm.InitializeComponent() at ProRodeoChecks.MainChecksfrm..ctor() at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication()
It seems like it can not find the BO Library, but I did copy the entire Subdirectory into the Installation Package. It also shows up on the client machine.
What am I overlooking? I am using a laptop that just has all of the required software to run SQL Express and all of the required .Net stuff.
TIA.
|
|
|
Terry Bottorff
|
|
Group: Forum Members
Posts: 448,
Visits: 12K
|
Alright I think that answered one of my questions because I was going to ask Edhy if his "included in the project" meant 'Embedded' as used in the Strataframe Docs.
So if I understand correctly. I generate the XML for the messages. I copy the XML's into my project subdirectory or a folder in the subdirectory. I include them in the project. I select the Xml files and on their properties sheet I make sure the Build Action is 'Embedded Resource'.
Does that pretty well outline my issue?
Thank you so much for Your Help and Edhy's...... You guys are a blessing for this Forum.
|
|
|
Edhy Rijo
|
|
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
|
You are welcome Terry. Terry Bottorff (10/9/2012) ...I generate the XML for the messages. I copy the XML's into my project subdirectory or a folder in the subdirectoryWhat I do is that in the Localization project, in the Output Path, I enter the same path as expected by the VS project, so when you "Generate XML", it will be already in your VS project so when you build your VS project the localization files will be there. i even create a folder in the VS project named "Localization Files"
Edhy Rijo
|
|
|
Terry Bottorff
|
|
Group: Forum Members
Posts: 448,
Visits: 12K
|
Whoa what you just said went over my head. I will have to look at that alot closer to see if I can figure out what you said.
I appreciate your help and will let you know if I can not figure out what you said. Thanks again.
|
|
|
Terry Bottorff
|
|
Group: Forum Members
Posts: 448,
Visits: 12K
|
What I do is that in the Localization project, in the Output Path, I enter the same path as expected by the VS project, so when you "Generate XML",
Can you explain a bit more on the above? I copied the XML files into a subdirectory called "Localization Files" and I embedded the files into the exe. I removed the following and my messages seem to work at least on my development machine but I have not tried it yet on the client's laptop. Soon for that.
MicroFour.StrataFrame.UI.Lcalization.MessageXmlPath = "../../messages"
But I do not understand the Output Path?
TIA.
|
|
|
Terry Bottorff
|
|
Group: Forum Members
Posts: 448,
Visits: 12K
|
Just tried new install on Client's laptop and All Seems to Work. Thank both of you for your excellent help.
Edhy I still would like to know about my previous question.
|
|
|
Edhy Rijo
|
|
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
|
Terry Bottorff (10/10/2012) Just tried new install on Client's laptop and All Seems to Work. Thank both of you for your excellent help.Well, isn't that a good feeling  Congratulations!!!!
Edhy Rijo
|
|
|
Terry Bottorff
|
|
Group: Forum Members
Posts: 448,
Visits: 12K
|
|
|
|
Edhy Rijo
|
|
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
|
Terry Bottorff (10/10/2012) But I do not understand the Output Path?No problem, let me be a bit clear: In the Localication and Messaging Editor, when you create a project, it will ask you for the "Output Path" where you want the localization files to be created. Here I enter the same folder ex: "E:\Visual Studio 2008 Projects\StrataFrame\Card Tracking System Projects\CardTrackingSystem.NET\Localization Files" as I used in my VS project. This way, when I modify my messages in the Localization and Messaging Editor, and then then click the "Generate XML" button, the files will be where expected by my VS proeject, so I don't have to manually copy those files over, or worse, forget to copy them until the customer call reporting the error
Edhy Rijo
|
|
|
Terry Bottorff
|
|
Group: Forum Members
Posts: 448,
Visits: 12K
|
OK I do understand that. But, does that not mean you have to ReCreate all your messages from project to project? If your messages are pretty much the same from project to project how do you reuse the XML or Messages?
Thanks for the help.
|
|
|
Michel Levy
|
|
Group: StrataFrame Users
Posts: 193,
Visits: 9K
|
Hi Terry,
define all common messages and texts in the Common repository, in the Messaging Editor. And in the settings of the Messaging project, check "Include Common Repository". Common messages will be saved in the xml file of the project.
|
|
|
Terry Bottorff
|
|
Group: Forum Members
Posts: 448,
Visits: 12K
|
Oh, so much to learn and so little time. I am just starting to use the Messaging system. Is there a way to use the xml that I have at this point and make it the common repository?
TIA.
|
|
|
Michel Levy
|
|
Group: StrataFrame Users
Posts: 193,
Visits: 9K
|
the xml istself, I don't see any way to load it. But if you have an xml file, you have a project. Open this projetc in the messaging editor, and right click on the message or the category, last contextual menu is "Move to", then select the Common Repository as the target project.
|
|
|
Terry Bottorff
|
|
Group: Forum Members
Posts: 448,
Visits: 12K
|
Cool I can do that. Thank you and all for the great help. This entire segment has been a "Perfect Storm of Learning" for me. Your all great.
|
|
|