Server errors galore, local runs fine

Discussion in 'ASP .Net' started by George Addison, Nov 28, 2003.

  1. I'm caught in a situation where my app runs absolutely
    perfectly on my local machine. When I upload to my ISPs
    server, however, I'm presented with a few errors I have
    not run into, and have exhausted my search for an answer.

    -------------------------------
    1) Error: "The virtual path '/UserControls/uLegal.ascx'
    maps to another application, which is not allowed."

    I'm referencing the user control from the SAME
    application, and have tried using the "~/..." reference,
    with the same result. What else can I check for? Could
    the ISP's IIS settings be misconfigured?

    2) Error: "System.NullReferenceException: Object
    reference not set to an instance of an object."

    I get this whenever I instantiate a custom class. What
    could be causing this?--yes, I am instantiating
    correctly... Could this again be related to server
    misconfiguration?

    3) Error: "Could not load type 'PC.privacy'"

    This is a fresh build, and only happens on some pages.

    -------------------------------

    All this is absent on my local machine...can anyone offer
    some advice?
     
    George Addison, Nov 28, 2003
    #1
    1. Advertisements

  2. George Addison

    Tommy Guest

    Error 1: Make sure only the root of your web applications's virtual
    directory is created as an application. You might get this error if
    your "UserControls" virtual directory is also created as an
    application.

    Error 2 and 3: Make sure the dll assembly of your web application is
    placed in the correct location. It should be in the "bin" subfolder
    directly under the root folder that contains your web application.

    Tommy,

    "George Addison" <> wrote in message news:<04ce01c3b575$8fe5f7c0$>...
    > I'm caught in a situation where my app runs absolutely
    > perfectly on my local machine. When I upload to my ISPs
    > server, however, I'm presented with a few errors I have
    > not run into, and have exhausted my search for an answer.
    >
    > -------------------------------
    > 1) Error: "The virtual path '/UserControls/uLegal.ascx'
    > maps to another application, which is not allowed."
    >
    > I'm referencing the user control from the SAME
    > application, and have tried using the "~/..." reference,
    > with the same result. What else can I check for? Could
    > the ISP's IIS settings be misconfigured?
    >
    > 2) Error: "System.NullReferenceException: Object
    > reference not set to an instance of an object."
    >
    > I get this whenever I instantiate a custom class. What
    > could be causing this?--yes, I am instantiating
    > correctly... Could this again be related to server
    > misconfiguration?
    >
    > 3) Error: "Could not load type 'PC.privacy'"
    >
    > This is a fresh build, and only happens on some pages.
    >
    > -------------------------------
    >
    > All this is absent on my local machine...can anyone offer
    > some advice?
     
    Tommy, Nov 29, 2003
    #2
    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. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,264
    Mark Goldin
    Jan 17, 2004
  2. Andrew Thompson

    Re: Applet runs fine Pre IE 7 Now errors

    Andrew Thompson, Aug 29, 2006, in forum: Java
    Replies:
    0
    Views:
    3,007
    Andrew Thompson
    Aug 29, 2006
  3. Replies:
    4
    Views:
    627
    Maett
    Jan 9, 2006
  4. ashjas
    Replies:
    7
    Views:
    496
    ashjas
    Dec 10, 2007
  5. Doug Morse
    Replies:
    10
    Views:
    1,468
    Thomas Heller
    Mar 16, 2008
  6. Otto __
    Replies:
    1
    Views:
    222
    Robert Klemme
    Oct 13, 2008
  7. Bas Cost Budde

    IE: Object expected; Moz: runs fine

    Bas Cost Budde, Feb 5, 2004, in forum: Javascript
    Replies:
    3
    Views:
    171
    kaeli
    Feb 6, 2004
  8. Bucker

    Runs Fine In Perl :: Not As Cron Job

    Bucker, Jan 15, 2007, in forum: Perl Misc
    Replies:
    6
    Views:
    335
    -berlin.de
    Jan 17, 2007
Loading...