assembly reference with 3rd party control

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/9/2008 5:30:44 PM
Gravatar
Total Posts 29

assembly reference with 3rd party control

 

 

I am trying to install a module I wrote. I have setup my enviornment per your suggestion with the seperate solution, xcopy the dll's etc. Basic modules work just fine. I am working on one that uses a 3rd party control. The site crashes when I try to view it. Per the error, I have added the references to every project and I still get the error. What am I missing?

 

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0012: The type 'DevExpress.Utils.IAssignableCollection' is defined in an assembly that is not referenced. You must add a reference to assembly 'DevExpress.Data.v8.2, Version=8.2.3.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1'.

Source Error:

Line 235:
Line 236: [System.Diagnostics.DebuggerNonUserCodeAttribute()]
Line 237: private void @__BuildControl__control2(DevExpress.Web.ASPxNavBar.NavBarGroupCollection @__ctrl) {
Line 238: global::DevExpress.Web.ASPxNavBar.NavBarGroup @__ctrl1;
Line 239:

 

Who or what is asking for this?

 

Thanks

Greg P

9/10/2008 7:16:14 AM
Gravatar
Total Posts 18439

Re: assembly reference with 3rd party control

If the 3rd party dll exists in the bin folder of your project after building it then you should add a line to your post build event to copy the 3rd party dll to the Web/bin folder. If its in the GAC on your machine then you may need to add a reference to your 3rd party library right on the mjoPortal.Web project to make it work, or you may need to add an assembly reference in Web.config. Probably the 3rd party provides some documentation about integrating and distributing their dll with your app.

Hope it helps,

Joe

9/10/2008 6:58:27 PM
Gravatar
Total Posts 29

Re: assembly reference with 3rd party control

 

I forgot to add the reference in the master web.config. Thanks for pointing me in the right direction.

 

Greg

You must sign in to post in the forums. This thread is closed to new posts.