"External component has thrown an exception" - ASP.NET Bug?

Discussion in 'ASP .Net' started by SH, Jun 21, 2008.

  1. SH

    SH Guest

    There seems to be an issue with .NET 3.5/Visual Studio 2008 (Team System).

    After convincing my company to create our latest project in .NET 3.5, this
    is kind of reflecting bad on me.

    Problem:

    Solution will NOT compile. Error is simply: "External component has thrown
    an exception". NO other details.

    What started the problem?:

    I created a content page and put it in a subdirectory. If I remove this
    content page the problem dissapears.

    Workaround:

    If I right click on the content page -> click build page -> then compile the
    solution then this works fine. Obviously this is not desirable, especially
    with automated deployments.



    Win2k3, MS VS.NET 2008 TFS, .NET 3.5, Simple ASP.NET Web Application.


    ANY help would be appreciated.
     
    SH, Jun 21, 2008
    #1
    1. Advertising

  2. If you google for "External component has thrown an exception" (don't skip
    the quotes) you will find quite a number of discussions on this problem. You
    need either clean up the project by deleting all temporary fields, removing
    the last installed component etc. or check carefully your web.config,
    project references, control registration directives to see if everything is
    there and is consistent. Do both: cleanup and checkup.


    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]
    http://msmvps.com/blogs/egoldin
    http://usableasp.net


    "SH" <> wrote in message
    news:...
    > There seems to be an issue with .NET 3.5/Visual Studio 2008 (Team System).
    >
    > After convincing my company to create our latest project in .NET 3.5, this
    > is kind of reflecting bad on me.
    >
    > Problem:
    >
    > Solution will NOT compile. Error is simply: "External component has thrown
    > an exception". NO other details.
    >
    > What started the problem?:
    >
    > I created a content page and put it in a subdirectory. If I remove this
    > content page the problem dissapears.
    >
    > Workaround:
    >
    > If I right click on the content page -> click build page -> then compile
    > the
    > solution then this works fine. Obviously this is not desirable, especially
    > with automated deployments.
    >
    >
    >
    > Win2k3, MS VS.NET 2008 TFS, .NET 3.5, Simple ASP.NET Web Application.
    >
    >
    > ANY help would be appreciated.
     
    Eliyahu Goldin, Jun 22, 2008
    #2
    1. Advertising

  3. SH

    SH Guest

    Thanks for the reply. I've done many a search for "external comp....".

    * What do you mean by deleting temporary fields? Do you mean files?

    The one thing that I thought it might have been is the control references,
    since I did create a user control, but then delete it after. There is no
    trace of this user control in the master page of content pages. Where else
    could metadata around this be lurking?

    "Eliyahu Goldin" wrote:

    > If you google for "External component has thrown an exception" (don't skip
    > the quotes) you will find quite a number of discussions on this problem. You
    > need either clean up the project by deleting all temporary fields, removing
    > the last installed component etc. or check carefully your web.config,
    > project references, control registration directives to see if everything is
    > there and is consistent. Do both: cleanup and checkup.
    >
    >
    > --
    > Eliyahu Goldin,
    > Software Developer
    > Microsoft MVP [ASP.NET]
    > http://msmvps.com/blogs/egoldin
    > http://usableasp.net
    >
    >
    > "SH" <> wrote in message
    > news:...
    > > There seems to be an issue with .NET 3.5/Visual Studio 2008 (Team System).
    > >
    > > After convincing my company to create our latest project in .NET 3.5, this
    > > is kind of reflecting bad on me.
    > >
    > > Problem:
    > >
    > > Solution will NOT compile. Error is simply: "External component has thrown
    > > an exception". NO other details.
    > >
    > > What started the problem?:
    > >
    > > I created a content page and put it in a subdirectory. If I remove this
    > > content page the problem dissapears.
    > >
    > > Workaround:
    > >
    > > If I right click on the content page -> click build page -> then compile
    > > the
    > > solution then this works fine. Obviously this is not desirable, especially
    > > with automated deployments.
    > >
    > >
    > >
    > > Win2k3, MS VS.NET 2008 TFS, .NET 3.5, Simple ASP.NET Web Application.
    > >
    > >
    > > ANY help would be appreciated.

    >
    >
    >
     
    SH, Jun 22, 2008
    #3
  4. SH

    SH Guest

    I think I've fixed it.

    I created a new ASCX (just add new item from VS 2008 TFS). The control was
    empty, completely default ASCX. anyway, I deleted it and the problem went
    away. I definately put this down to a bug in the VS 2008 IDE more than
    anything else.

    I hope it doesn't come back! Thanks for your help

    SH.

    "SH" wrote:

    > Thanks for the reply. I've done many a search for "external comp....".
    >
    > * What do you mean by deleting temporary fields? Do you mean files?
    >
    > The one thing that I thought it might have been is the control references,
    > since I did create a user control, but then delete it after. There is no
    > trace of this user control in the master page of content pages. Where else
    > could metadata around this be lurking?
    >
    > "Eliyahu Goldin" wrote:
    >
    > > If you google for "External component has thrown an exception" (don't skip
    > > the quotes) you will find quite a number of discussions on this problem. You
    > > need either clean up the project by deleting all temporary fields, removing
    > > the last installed component etc. or check carefully your web.config,
    > > project references, control registration directives to see if everything is
    > > there and is consistent. Do both: cleanup and checkup.
    > >
    > >
    > > --
    > > Eliyahu Goldin,
    > > Software Developer
    > > Microsoft MVP [ASP.NET]
    > > http://msmvps.com/blogs/egoldin
    > > http://usableasp.net
    > >
    > >
    > > "SH" <> wrote in message
    > > news:...
    > > > There seems to be an issue with .NET 3.5/Visual Studio 2008 (Team System).
    > > >
    > > > After convincing my company to create our latest project in .NET 3.5, this
    > > > is kind of reflecting bad on me.
    > > >
    > > > Problem:
    > > >
    > > > Solution will NOT compile. Error is simply: "External component has thrown
    > > > an exception". NO other details.
    > > >
    > > > What started the problem?:
    > > >
    > > > I created a content page and put it in a subdirectory. If I remove this
    > > > content page the problem dissapears.
    > > >
    > > > Workaround:
    > > >
    > > > If I right click on the content page -> click build page -> then compile
    > > > the
    > > > solution then this works fine. Obviously this is not desirable, especially
    > > > with automated deployments.
    > > >
    > > >
    > > >
    > > > Win2k3, MS VS.NET 2008 TFS, .NET 3.5, Simple ASP.NET Web Application.
    > > >
    > > >
    > > > ANY help would be appreciated.

    > >
    > >
    > >
     
    SH, Jun 22, 2008
    #4
  5. Good.

    Yes, I meant temporary files, sorry.

    VS 2008 is a vary large product. It is easy to understand that optimizing
    performance while providing tremendously rich functionality may cause
    integrity issues. Cleaning up is the major troubleshooting technique here.

    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]
    http://msmvps.com/blogs/egoldin
    http://usableasp.net


    "SH" <> wrote in message
    news:D...
    >I think I've fixed it.
    >
    > I created a new ASCX (just add new item from VS 2008 TFS). The control was
    > empty, completely default ASCX. anyway, I deleted it and the problem went
    > away. I definately put this down to a bug in the VS 2008 IDE more than
    > anything else.
    >
    > I hope it doesn't come back! Thanks for your help
    >
    > SH.
    >
    > "SH" wrote:
    >
    >> Thanks for the reply. I've done many a search for "external comp....".
    >>
    >> * What do you mean by deleting temporary fields? Do you mean files?
    >>
    >> The one thing that I thought it might have been is the control
    >> references,
    >> since I did create a user control, but then delete it after. There is no
    >> trace of this user control in the master page of content pages. Where
    >> else
    >> could metadata around this be lurking?
    >>
    >> "Eliyahu Goldin" wrote:
    >>
    >> > If you google for "External component has thrown an exception" (don't
    >> > skip
    >> > the quotes) you will find quite a number of discussions on this
    >> > problem. You
    >> > need either clean up the project by deleting all temporary fields,
    >> > removing
    >> > the last installed component etc. or check carefully your web.config,
    >> > project references, control registration directives to see if
    >> > everything is
    >> > there and is consistent. Do both: cleanup and checkup.
    >> >
    >> >
    >> > --
    >> > Eliyahu Goldin,
    >> > Software Developer
    >> > Microsoft MVP [ASP.NET]
    >> > http://msmvps.com/blogs/egoldin
    >> > http://usableasp.net
    >> >
    >> >
    >> > "SH" <> wrote in message
    >> > news:...
    >> > > There seems to be an issue with .NET 3.5/Visual Studio 2008 (Team
    >> > > System).
    >> > >
    >> > > After convincing my company to create our latest project in .NET 3.5,
    >> > > this
    >> > > is kind of reflecting bad on me.
    >> > >
    >> > > Problem:
    >> > >
    >> > > Solution will NOT compile. Error is simply: "External component has
    >> > > thrown
    >> > > an exception". NO other details.
    >> > >
    >> > > What started the problem?:
    >> > >
    >> > > I created a content page and put it in a subdirectory. If I remove
    >> > > this
    >> > > content page the problem dissapears.
    >> > >
    >> > > Workaround:
    >> > >
    >> > > If I right click on the content page -> click build page -> then
    >> > > compile
    >> > > the
    >> > > solution then this works fine. Obviously this is not desirable,
    >> > > especially
    >> > > with automated deployments.
    >> > >
    >> > >
    >> > >
    >> > > Win2k3, MS VS.NET 2008 TFS, .NET 3.5, Simple ASP.NET Web Application.
    >> > >
    >> > >
    >> > > ANY help would be appreciated.
    >> >
    >> >
    >> >
     
    Eliyahu Goldin, Jun 23, 2008
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ryan
    Replies:
    0
    Views:
    2,009
  2. =?Utf-8?B?U1RlY2g=?=

    External component has thrown an exception

    =?Utf-8?B?U1RlY2g=?=, Mar 14, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    14,955
    Steven Cheng[MSFT]
    Mar 15, 2005
  3. Alan Wang
    Replies:
    1
    Views:
    997
    =?Utf-8?B?RXRpZW5uZQ==?=
    Aug 19, 2005
  4. =?Utf-8?B?RWNobw==?=
    Replies:
    0
    Views:
    389
    =?Utf-8?B?RWNobw==?=
    Oct 24, 2006
  5. JT
    Replies:
    0
    Views:
    676
Loading...

Share This Page