Composite Assemblies Not Loading

Discussion in 'ASP .Net Building Controls' started by Garry, Jul 14, 2003.

  1. Garry

    Garry Guest

    Hi,
    I have a customWebcontrol that has the following hierarchy

    WebPage(aspx)
    |
    ---->CustomWebControl
    |
    ---->Assembly1
    |
    ----->Assembly2
    |
    ---->Assembly3


    Adding the customWebControl to the aspx through Visual Studio
    automatically injects Assembly1 and Assembly3 into the project as
    references but fails to include Assembly2. If I manually add Assembly2
    as a reference to the CustomWebControl then everything works as I
    expect. Does anyone know what the best solution is to load Assembly2
    when the CustomWebcontrol is added to the aspx page?

    Thx,
    Garry
    Garry, Jul 14, 2003
    #1
    1. Advertising

  2. Hi Garry,

    >>>>Does anyone know what the best solution is to load Assembly2

    By "load" do you mean adding a reference under your Proyects' References?

    --
    Victor Garcia Aprea
    Microsoft MVP | ASP.NET
    Looking for insights on ASP.NET? Read my blog:
    http://obies.com/vga/blog.aspx
    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
    and not by private mail.

    "Garry" <> wrote in message
    news:...
    > Hi,
    > I have a customWebcontrol that has the following hierarchy
    >
    > WebPage(aspx)
    > |
    > ---->CustomWebControl
    > |
    > ---->Assembly1
    > |
    > ----->Assembly2
    > |
    > ---->Assembly3
    >
    >
    > Adding the customWebControl to the aspx through Visual Studio
    > automatically injects Assembly1 and Assembly3 into the project as
    > references but fails to include Assembly2. If I manually add Assembly2
    > as a reference to the CustomWebControl then everything works as I
    > expect. Does anyone know what the best solution is to load Assembly2
    > when the CustomWebcontrol is added to the aspx page?
    >
    > Thx,
    > Garry
    Victor Garcia Aprea [MVP], Jul 15, 2003
    #2
    1. Advertising

  3. Garry

    Garry - Guest

    Victor,
    Thx for the quick response. Yes, each assembly was included as a
    reference.

    --Garry

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Garry -, Jul 15, 2003
    #3
  4. Garry

    Garry Guest

    Interestingly the problem does not occur if simulated
    locally. Only when the assemblies are compiled to the
    server do I see this problem.

    Locally I do not see all the dependent assemblies added to
    the aspx page but rather just a reference to the control.
    The server version attempts to add references to "ALL"
    known assemblies.
    Garry, Jul 15, 2003
    #4
  5. Hello Gary,

    Could you please post detailed repro steps here? I will test it on my side. Thanks very much.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - www.microsoft.com/security
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !Content-Class: urn:content-classes:message
    !From: "Garry" <>
    !Sender: "Garry" <>
    !References: <> <>
    !Subject: Re: Composite Assemblies Not Loading
    !Date: Tue, 15 Jul 2003 12:07:58 -0700
    !Lines: 8
    !Message-ID: <030901c34b04$676d13e0$>
    !MIME-Version: 1.0
    !Content-Type: text/plain;
    ! charset="iso-8859-1"
    !Content-Transfer-Encoding: 7bit
    !X-Newsreader: Microsoft CDO for Windows 2000
    !Thread-Index: AcNLBGdtKxLhzHUvS1uSKMAzsVW8OQ==
    !X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingcontrols
    !Path: cpmsftngxa06.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet.buildingcontrols:6600
    !NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingcontrols
    !
    !Interestingly the problem does not occur if simulated
    !locally. Only when the assemblies are compiled to the
    !server do I see this problem.
    !
    !Locally I do not see all the dependent assemblies added to
    !the aspx page but rather just a reference to the control.
    !The server version attempts to add references to "ALL"
    !known assemblies.
    !
    Yan-Hong Huang[MSFT], Jul 16, 2003
    #5
  6. Hi Gary,

    Are you still montinoring this thread? Please post here if the problem still exists. Thanks very much.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - www.microsoft.com/security
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !X-Tomcat-ID: 62804816
    !References: <> <>
    <030901c34b04$676d13e0$>
    !MIME-Version: 1.0
    !Content-Type: text/plain
    !Content-Transfer-Encoding: 7bit
    !From: (Yan-Hong Huang[MSFT])
    !Organization: Microsoft
    !Date: Wed, 16 Jul 2003 02:57:34 GMT
    !Subject: Re: Composite Assemblies Not Loading
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingcontrols
    !Message-ID: <>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingcontrols
    !Lines: 42
    !Path: cpmsftngxa06.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet.buildingcontrols:6608
    !NNTP-Posting-Host: TOMCATIMPORT2 10.201.218.182
    !
    !Hello Gary,
    !
    !Could you please post detailed repro steps here? I will test it on my side. Thanks very much.
    !
    !Best regards,
    !Yanhong Huang
    !Microsoft Online Partner Support
    !
    !Get Secure! - www.microsoft.com/security
    !This posting is provided "AS IS" with no warranties, and confers no rights.
    !
    !--------------------
    !!Content-Class: urn:content-classes:message
    !!From: "Garry" <>
    !!Sender: "Garry" <>
    !!References: <> <>
    !!Subject: Re: Composite Assemblies Not Loading
    !!Date: Tue, 15 Jul 2003 12:07:58 -0700
    !!Lines: 8
    !!Message-ID: <030901c34b04$676d13e0$>
    !!MIME-Version: 1.0
    !!Content-Type: text/plain;
    !! charset="iso-8859-1"
    !!Content-Transfer-Encoding: 7bit
    !!X-Newsreader: Microsoft CDO for Windows 2000
    !!Thread-Index: AcNLBGdtKxLhzHUvS1uSKMAzsVW8OQ==
    !!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    !!Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingcontrols
    !!Path: cpmsftngxa06.phx.gbl
    !!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet.buildingcontrols:6600
    !!NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
    !!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingcontrols
    !!
    !!Interestingly the problem does not occur if simulated
    !!locally. Only when the assemblies are compiled to the
    !!server do I see this problem.
    !!
    !!Locally I do not see all the dependent assemblies added to
    !!the aspx page but rather just a reference to the control.
    !!The server version attempts to add references to "ALL"
    !!known assemblies.
    !!
    !
    !
    !
    Yan-Hong Huang[MSFT], Jul 18, 2003
    #6
    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. Timothy
    Replies:
    1
    Views:
    398
    Gaurav Khanna [C# MVP]
    Jan 27, 2004
  2. Garry
    Replies:
    0
    Views:
    395
    Garry
    Jul 14, 2003
  3. sleigh
    Replies:
    1
    Views:
    2,660
    sleigh
    Feb 12, 2004
  4. WT
    Replies:
    5
    Views:
    6,154
    gerardopg
    Jun 5, 2010
  5. Chad
    Replies:
    0
    Views:
    206
Loading...

Share This Page