Permissions problem with localhost

Discussion in 'ASP .Net Web Controls' started by Oldman, Sep 30, 2004.

  1. Oldman

    Oldman Guest

    I have a strange problem with referring to URLS or any embedded user controls
    that are referenced using http://localhost... from my web application on my
    computer.
    If my web application attempts to load an embedded control via the URL name
    classid=http://localhost/TestApp/Control1.dll the control fails to load. If
    I attempt to access a file through a URL using http://localhost... I get an
    Error: Request for permission of type System.Net.WebPermission. However, if
    I change the URL's to http://<machinename>/... it works fine. This seems to
    be the opposite of all other problems I've seen where localhost works but
    computer name doesn't.

    Does anyone have an idea of what could be wrong?

    Thanks,

    Oldman
    Oldman, Sep 30, 2004
    #1
    1. Advertising

  2. Oldman

    Richard Guest

    "Oldman" <> skrev i en meddelelse
    news:...
    > I have a strange problem with referring to URLS or any embedded user

    controls
    > that are referenced using http://localhost... from my web application on

    my
    > computer.
    > If my web application attempts to load an embedded control via the URL

    name
    > classid=http://localhost/TestApp/Control1.dll the control fails to load.

    If
    > I attempt to access a file through a URL using http://localhost... I get

    an
    > Error: Request for permission of type System.Net.WebPermission. However,

    if
    > I change the URL's to http://<machinename>/... it works fine. This seems

    to
    > be the opposite of all other problems I've seen where localhost works but
    > computer name doesn't.


    Have you added the dll file as a reference in your project? I'm using visual
    studio, and there I add them in the top of the solution explorer in the
    right side of visual studio

    Regards Richard
    Richard, Oct 2, 2004
    #2
    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. Jiong Feng
    Replies:
    0
    Views:
    804
    Jiong Feng
    Nov 19, 2003
  2. Alex
    Replies:
    4
    Views:
    556
    Hasani Blackwell
    Feb 8, 2005
  3. =?Utf-8?B?S2VuTGVl?=
    Replies:
    5
    Views:
    2,696
  4. EdwardH

    Localhost isn't localhost

    EdwardH, Sep 29, 2005, in forum: Java
    Replies:
    20
    Views:
    6,365
    Roedy Green
    Oct 1, 2005
  5. koicat
    Replies:
    0
    Views:
    216
    koicat
    Jul 2, 2010
Loading...

Share This Page