1. Enable more detailed error messages to get the full stack trace of the
exception. eg.
http://blog.drisgill.com/2008/08/turning-on-detailed-error-messages-in.htmlThis
will help you with more details on why it's failing.2.
As far as I know, you don't have to register your external library assembly
in Safe Controls (remember hearing this somewhere but can't seen find a
reference online to support this)

Sezai.

On Tue, Jul 28, 2009 at 12:40 PM, Chris Milne <
[email protected]> wrote:

>  Afternoon all,
>
>
>
> I’m developing a web part in which I would like to reference functionality
> that exists in one of our other company Visual Studio projects (.net
> assembly/dll).  I’m having trouble doing this and hoping someone can point
> me in the right direction J  I’ve created a simple VS web part project
> which works if I deploy it just by itself (not using the library
> functionality).  I then added a reference to my dll, added a ‘using’ to
> import the namespace into my code (if I deploy again at this point it still
> works), but if I add one line of code that uses the external library into
> CreateChildControls() and deploy, I get a generic ‘Error An Unexpected
> error has occurred’ message on a page the webpart exists on.
>
>
>
> Visual Studio is automatically adding a <SafeControl Assembly=..> to my
> web.config for my web part assembly but not the external library assembly,
> do I need to add that?  Both assemblies are automatically being added to the
> GAC.  Any help is appreciated!
>
>
>
>
>
> Kind regards,
>
>
>
> Chris
>   ------------------------------
> Support procedure: https://www.codify.com/lists/support
> List address: [email protected]
> Subscribe: [email protected]
> Unsubscribe: [email protected]
> List FAQ: http://www.codify.com/lists/ozmoss
> Other lists you might want to join: http://www.codify.com/lists
>
--------------------------------------------------------------------------------
Support procedure: http://www.codify.com/lists/support
List address: [email protected]
Subscribe: [email protected]
Unsubscribe: [email protected]
List FAQ: http://www.codify.com/lists/ozmoss
Other lists you might want to join: http://www.codify.com/lists

Reply via email to