Referencing BO project DLL's from website in solution


Author
Message
Rusty Martin
Rusty Martin
StrataFrame Beginner (9 reputation)StrataFrame Beginner (9 reputation)StrataFrame Beginner (9 reputation)StrataFrame Beginner (9 reputation)StrataFrame Beginner (9 reputation)StrataFrame Beginner (9 reputation)StrataFrame Beginner (9 reputation)StrataFrame Beginner (9 reputation)StrataFrame Beginner (9 reputation)
Group: Forum Members
Posts: 3, Visits: 25

I seem to remember in a web solution demonstration that I saw, that you kept copying the DLL’s for the referenced BO project from the BO project to the website project each time he made a change to the BO’s and built them. It seems to me that the right way is to reference the BO project from the web project but each time it tries to get the new copy of the DLL from the BO project, I get an Access Denied error and I have to manually delete (using the file system) and then manually copy the files to the right bin folder to get the reference to update.

Am I correct to reference the BO project or is copying them manually the right way to update the reference when needed?


Replies
Guillermo Vilas
Guillermo Vilas
StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)StrataFrame User (294 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 2.3K
Also this is a good chance to include that if the web project is not going to be a huge one, there is no need to create a BO project. You can add a class file into the App_Code folder and then inherit from MicroFour.StrataFrame.Business.BusinessLayer.



eg:1)



App_Code

- MyClass.vb or MyClass.css

- MyClass.Designer.vb or MyClass.Designer.cs



2) Add an existing BO Component from another project to the App_Code



for me both options works

------------------------------------------------------------------------
I would like to change the world, but they don´t give me the source code.
MS Windows 7 Ultimate 64-Bit
Intel(R) Core(TM)2 Quad CPU Q9300 2.50 GHz
6.00 GB of RAM, NVIDIA GeForce 9800 GT

MacBook Pro i5 OSX Lion
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yes, that will work, however, not all functionality of the BOMapper works with a Web Site, and you cannot get to the component designer for the business object, so you have to set all of the properties programmatically.  So if you cannot rebuild the partial classes of your business object, or you want the component designer, then you'll have to put the BOs in a DLL or convert the web site to a web project.
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