﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » How to use BOs from Win project within a Web project</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 08:52:41 GMT</lastBuildDate><ttl>20</ttl><item><title>How to use BOs from Win project within a Web project</title><link>http://forum.strataframe.net/FindPost15402.aspx</link><description>Hi,&lt;P&gt;I've been working on a SF&amp;nbsp;Windows project and would now like to build my first SF Web project that uses the same business objects.&amp;nbsp; I've read the SF Tutorial several times but cannot quite get it to work.&lt;/P&gt;&lt;P&gt;First, can I leave the BO's within the Win solution, or do I need to pull them out as a separate BO library?&amp;nbsp; I'd prefer to just leave them in the Win project and manage them there.&amp;nbsp; If this is possible, how do I reference them from the Web project?&lt;/P&gt;&lt;P&gt;On the assumption that I need to pull them out as a separate BO Library (like the Tutorial), I tried this before posting this question.&amp;nbsp; When I go to add a reference to the new BOL from either the Win or Web solutions, the Add Reference / Project folder is empty (unlike the Tutorial!).&amp;nbsp; &lt;/P&gt;&lt;P&gt;So I'm stuck at step one of my first SF Web project and must be missing something basic.&amp;nbsp; &lt;/P&gt;&lt;P&gt;TIA,&lt;/P&gt;&lt;P&gt;Larry</description><pubDate>Sun, 06 Apr 2008 18:23:37 GMT</pubDate><dc:creator>Larry Tucker</dc:creator></item><item><title>RE: How to use BOs from Win project within a Web project</title><link>http://forum.strataframe.net/FindPost15415.aspx</link><description>Glad you got it going :)</description><pubDate>Sun, 06 Apr 2008 18:23:37 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to use BOs from Win project within a Web project</title><link>http://forum.strataframe.net/FindPost15411.aspx</link><description>Trent,&lt;P&gt;[quote]this is an option in the IDE.&amp;nbsp; Click Tools-&amp;gt;Options... then click the Projects and Solutions option on the left.&amp;nbsp; Once done, click the Always Show Solution option.&amp;nbsp; This will always force a solution to exist.[/quote]&lt;/P&gt;&lt;P&gt;Your reply came while I was stumbling on my own version of a solution.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;L</description><pubDate>Sun, 06 Apr 2008 15:11:06 GMT</pubDate><dc:creator>Larry Tucker</dc:creator></item><item><title>RE: How to use BOs from Win project within a Web project</title><link>http://forum.strataframe.net/FindPost15410.aspx</link><description>Doh!&amp;nbsp;&amp;nbsp;Problem solved.&amp;nbsp; It was a VS IDE use issue for me.&amp;nbsp; I hadn't worked with mulit-project "solutions" before and now see how to do this.&amp;nbsp; &lt;P&gt;Before you can add a reference to ProjectB within ProjectA, you need to &lt;U&gt;add&lt;/U&gt; ProjectB to ProjectA.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Oddly, the way you do this is not within the Solution Explorer but over on the File/Add/Existing Project menu.&amp;nbsp; Right clicking within the Solution Explorer only offers to add items (not projects) when you have only a single project.&lt;/P&gt;&lt;P&gt;Once I added my BOL project to my WinForms project with this choice, I now had a "solution" with two projects and a top level "Solution" folder. &amp;nbsp;&amp;nbsp;Now right clicking my Winform project and pulling up the Add Reference / Project screen shows my BOL project and I can add the reference.&amp;nbsp;&amp;nbsp;&amp;nbsp;Apparently a project has to be in a solution in order to show up in the Add Reference / Project&amp;nbsp;tab.&lt;/P&gt;&lt;P&gt;Boy, that was a head banger for a while...&lt;/P&gt;&lt;P&gt;Thanks for the help Trent.&lt;/P&gt;&lt;P&gt;Larry</description><pubDate>Sun, 06 Apr 2008 15:08:27 GMT</pubDate><dc:creator>Larry Tucker</dc:creator></item><item><title>RE: How to use BOs from Win project within a Web project</title><link>http://forum.strataframe.net/FindPost15409.aspx</link><description>[quote]Otherwise, what you sent me looks just like what I've been trying to do.&amp;nbsp;I don't seem to be able to create&amp;nbsp;a "Solution" as opposed to&amp;nbsp;a "Project".&amp;nbsp;&amp;nbsp; I'll poke around for a while more on my own, as this is not really a SF issue...[/quote]&lt;/P&gt;&lt;P&gt;This is an option in the IDE.&amp;nbsp; Click Tools-&amp;gt;Options... then click the Projects and Solutions option on the left.&amp;nbsp; Once done, click the Always Show Solution option.&amp;nbsp; This will always force a solution to exist.</description><pubDate>Sun, 06 Apr 2008 14:52:54 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to use BOs from Win project within a Web project</title><link>http://forum.strataframe.net/FindPost15408.aspx</link><description>Trent,&lt;P&gt;Thanks for the sample.&amp;nbsp; I think my problem is with using the IDE.&amp;nbsp; I understand how to build a BOL and how to build a Win app... I just can't get them together.&amp;nbsp; How did you add the BO Library to the Win project?&amp;nbsp; On your example, the Win project has a "Solution" folder at the very top and when I click Add Reference / Project... I see a choice.&amp;nbsp; On mine, the Solution explorer starts with the VBproject and has no overall "Solution" folder at the top of the tree.&amp;nbsp; When I right click on my project to add a BO reference, it is empty.&lt;/P&gt;&lt;P&gt;Otherwise, what you sent me looks just like what I've been trying to do.&amp;nbsp;I don't seem to be able to create&amp;nbsp;a "Solution" as opposed to&amp;nbsp;a "Project".&amp;nbsp;&amp;nbsp; I'll poke around for a while more on my own, as this is not really a SF issue...&lt;/P&gt;&lt;P&gt;As for the training class, I'd love to come... except I'll be biking in the Loire Valley :D.&amp;nbsp; I'm actually making good progress within my SF Windows project.&amp;nbsp; I feel like once I'm over this hump, I'll be rolling again (if I don't shoot myself first:crying: ).&lt;/P&gt;&lt;P&gt;Larry</description><pubDate>Sun, 06 Apr 2008 13:55:31 GMT</pubDate><dc:creator>Larry Tucker</dc:creator></item><item><title>RE: How to use BOs from Win project within a Web project</title><link>http://forum.strataframe.net/FindPost15407.aspx</link><description>I have attached a sample VS2005 project that has a WinForms&amp;nbsp;project and a BO library.&amp;nbsp; The WinForms project references the BO library as a project reference.&lt;/P&gt;&lt;P&gt;Larry, if you could work it out, I think that the training class coming up in July would be really good for you.&amp;nbsp; We cover a lot of material and have an entire section just on application layout, etc.&amp;nbsp; If you could make it happen I think that it would be well worth your while.&amp;nbsp; Just an idea :)&lt;/P&gt;&lt;P&gt;[quote]Thanks for the quick reply, especially on a Sunday.&amp;nbsp;[/quote]&lt;/P&gt;&lt;P&gt;No problem.&amp;nbsp; I am working and happened to be online when I saw your post. :)</description><pubDate>Sun, 06 Apr 2008 13:17:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: How to use BOs from Win project within a Web project</title><link>http://forum.strataframe.net/FindPost15406.aspx</link><description>Trent,&lt;P&gt;[quote]You need to first place your BOs in a BO library, then your Win and Web forms projects will reference the same BO library.... When you do this, you will want to use a solution, not just a project.&amp;nbsp; When you do this, you can use a project reference and it will appear.&amp;nbsp; [/quote]&lt;/P&gt;&lt;P&gt;Thanks for the quick reply, especially on a Sunday.&amp;nbsp; I'm trying to do this, and as far as I can tell, am doing the same steps as the Tutorial,&amp;nbsp;&amp;nbsp;but when I get to the Add Reference / Project tab, my BO library is not visible to be selected.&amp;nbsp; In fact, no projects are shown in this tab at all.&lt;/P&gt;&lt;P&gt;Is there anything that I need to do to make a project available or visible to others?&amp;nbsp; It seems odd that my Add Reference / Projects tab is completely blank, even though I've created several test SF projects of various sorts.&lt;/P&gt;&lt;P&gt;PS:&amp;nbsp; I've attached a jpg of the step in the Tutorial where I am stuck... FWIW.&lt;/P&gt;&lt;P&gt;Larry</description><pubDate>Sun, 06 Apr 2008 13:05:25 GMT</pubDate><dc:creator>Larry Tucker</dc:creator></item><item><title>RE: How to use BOs from Win project within a Web project</title><link>http://forum.strataframe.net/FindPost15403.aspx</link><description>[quote]First, can I leave the BO's within the Win solution, or do I need to pull them out as a separate BO library?[/quote]&lt;/P&gt;&lt;P&gt;Really these shouldn't be in the Win solution either.&amp;nbsp; They should be in a separate BO class library.&amp;nbsp; You can move them into one easily, but you should really place your BOs in a separate BO library.&lt;/P&gt;&lt;P&gt;Though a Win EXE is a .NET assembly and you could load it if you really had to, you shouldn't do this as you will have some permission issues on the web side.&amp;nbsp; You need to first place your BOs in a BO library, then you Win and Web forms projects will reference the same BO library.&lt;/P&gt;&lt;P&gt;When you do this, you will want to use a solution, not just a project.&amp;nbsp; When you do this, you can use a project reference and it will appear.&amp;nbsp; If you do not want to do it that way (which is the recommended approach), then you can just browse for the BO library assembly and add it as a reference from disk.</description><pubDate>Sun, 06 Apr 2008 12:13:55 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>