Business Objects in Referenced Assemblies


Author
Message
PeterA
PeterA
StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Ok, the project is all set. It works, the business objects all access what they're supposed to access, but now there's something with the IDE.



After I got the project done, I moved all the business objects to a separate project and checked the files into our version control system. I just changed it so that I referenced a compiled DLL instead of having the DLLs as a second project on the solution.



The problem I'm having is that if I pull up any of the SF tools (i.e. the selection box for populating a control from a business object), I don't see any of my business objects.



Do the SF tools only work when the business objects are a project within the solution? Or is there a way to configure where business objects are pulled from?



Thanks!

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
Do the SF tools only work when the business objects are a project within the solution?

No.  The looks through all references associated with the project.  So if you do not have a reference to the BO library, then they will not show up.  Also, there are times that Visual Studio may try to hold on to the previous assembly within the AppDomain.  You may get out and come back into Visual Studio if you do in fact have a reference to your new BO library.  This is a very common task and something that is done every day.  In fact, this is what we do ourselves.

PeterA
PeterA
StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Trent L. Taylor (11/13/2007)
Do the SF tools only work when the business objects are a project within the solution?




No. The looks through all references associated with the project. So if you do not have a reference to the BO library, then they will not show up. Also, there are times that Visual Studio may try to hold on to the previous assembly within the AppDomain. You may get out and come back into Visual Studio if you do in fact have a reference to your new BO library. This is a very common task and something that is done every day. In fact, this is what we do ourselves.




I thought it would be, but I haven't been able to get it working.



I've got a reference set up to my BusinessObjects assembly (see the attached image). I closed out of Visual Studio and came back in, but I still don't get a list of business objects in the "PopulationDataSourceSettings" selection window. I added this to my Web.config:



<add assembly="Payless.BusinessObjects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4158e4ccd233bc0d"/>



It still doesn't do it. Am I missing something else?



Thanks!

Attachments
references.jpg (81 views, 12.00 KB)
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
Is this a web site or a web application project?
PeterA
PeterA
StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Ben Chase (11/15/2007)
Is this a web site or a web application project?




Web Application
PeterA
PeterA
StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Ben Chase (11/15/2007)
Is this a web site or a web application project?




Any progress toward an answer on this?



The only other thing that I can think of that might be the cause is that I don't have the Business Objects' DLL specified in the Web.config file. I have a reference in the Solution Explorer and I have the using statements at the top of my code-beside pages where I need them.



Would the Web.config be the cause of this?



Thanks!

PeterA
PeterA
StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)
Group: Forum Members
Posts: 72, Visits: 235
PeterA (11/20/2007)
Ben Chase (11/15/2007)
Is this a web site or a web application project?




Any progress toward an answer on this?



The only other thing that I can think of that might be the cause is that I don't have the Business Objects' DLL specified in the Web.config file. I have a reference in the Solution Explorer and I have the using statements at the top of my code-beside pages where I need them.



Would the Web.config be the cause of this?



Thanks!





Never mind. I just saw that I already tried this one earlier. I need to re-read my threads before I post. Especially this early in the morning... :-)
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
No problem, glad you found your answer Smile
PeterA
PeterA
StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Trent L. Taylor (11/20/2007)
No problem, glad you found youranswer Smile




Actually, I didn't. My previous post where I tried adding the assembly to the Web.config didn't work. I assumed someone was working on something since Ben asked if this was in a Web Application or Web Site project.



I'm in a Web application and it's still acting funny. Any suggestions?



Thanks!

PeterA
PeterA
StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)StrataFrame Novice (74 reputation)
Group: Forum Members
Posts: 72, Visits: 235
Still hoping for some kind of resolution on this. Any progress? Suggestions?
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