Problem when Hosting Windows User controls in Webform

Discussion in 'ASP .Net' started by news.microsoft.com, Jul 7, 2003.

  1. I am unable to load the user control from client machine browser if the user
    controls referes other custom dlls that I have created. Its working fine if
    I access the user control from my machine but it is not working if I try to
    access from other machines. Its working only if I copy the referenced dlls
    in C:\Inetpub\wwwroot folder. I don't want to copy the dlls in this folder
    because it is already in GAC. Why it is not pulling from Gac? how to solve
    this problem?


    Thanks,

    Rajan.
     
    news.microsoft.com, Jul 7, 2003
    #1
    1. Advertisements

  2. news.microsoft.com

    Axel Dahmen Guest

    This sounds like a security problem to me. But as I don't know how you access your UserControl locally I can only take a guess:

    In Windows Explorer try to grant read/execute access to the ASP.NET account and to the IUSR_machineName resp. IWAM_machineName account available on your computer.

    HTH,
    Axel Dahmen

    --------------------------------------------------
    "news.microsoft.com" <> schrieb im Newsbeitrag news:#...
    > I am unable to load the user control from client machine browser if the user
    > controls referes other custom dlls that I have created. Its working fine if
    > I access the user control from my machine but it is not working if I try to
    > access from other machines. Its working only if I copy the referenced dlls
    > in C:\Inetpub\wwwroot folder. I don't want to copy the dlls in this folder
    > because it is already in GAC. Why it is not pulling from Gac? how to solve
    > this problem?
    >
    >
    > Thanks,
    >
    > Rajan.
    >
    >
     
    Axel Dahmen, Jul 7, 2003
    #2
    1. Advertisements

  3. Just because they are in the GAC on your server doesn't mean that they are
    publicly available to the whole internet. I bet there are things in the GAC
    that you don't want to share with the whole world. It would be quite
    presumptuous of ASP.NET and IIS to just assume that they should pass along
    your server's private files.
    Therefore it is necessary to copy them to the public wwwroot folder to make
    it clear that you do indeed wish to share these files.

    --
    I hope this helps,
    Steve C. Orr, MCSD
    http://Steve.Orr.net


    "news.microsoft.com" <> wrote in message
    news:%...
    > I am unable to load the user control from client machine browser if the

    user
    > controls referes other custom dlls that I have created. Its working fine

    if
    > I access the user control from my machine but it is not working if I try

    to
    > access from other machines. Its working only if I copy the referenced dlls
    > in C:\Inetpub\wwwroot folder. I don't want to copy the dlls in this folder
    > because it is already in GAC. Why it is not pulling from Gac? how to solve
    > this problem?
    >
    >
    > Thanks,
    >
    > Rajan.
    >
    >
     
    Steve C. Orr, MCSD, Jul 8, 2003
    #3
    1. Advertisements

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. Dblood
    Replies:
    0
    Views:
    430
    Dblood
    Jun 23, 2005
  2. Allan2010
    Replies:
    3
    Views:
    2,107
    Cubaman
    May 6, 2010
  3. news.microsoft.com

    Problem when Hosting Windows User controls in Webform

    news.microsoft.com, Jul 7, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    203
    news.microsoft.com
    Jul 7, 2003
  4. Faizan Ahmed
    Replies:
    1
    Views:
    465
    John Saunders
    Jan 4, 2005
  5. Yannis CORRE via .NET 247

    User controls in a WebForm and pb with state of PlaceHolder

    Yannis CORRE via .NET 247, Jun 5, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    171
    Yannis CORRE via .NET 247
    Jun 5, 2004
  6. Faizan Ahmed
    Replies:
    1
    Views:
    509
    John Saunders
    Jan 4, 2005
  7. M. Cota

    Problem hosting .net user control on Windows Vista / IE7

    M. Cota, Sep 1, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    184
    M. Cota
    Sep 1, 2007
  8. teo1991
    Replies:
    0
    Views:
    816
    teo1991
    Apr 2, 2009
Loading...