NullReferenceException after deploying asp.net project RRS feed

  • Question

  • Everything  works fine on localhost.

    But after deploying my site on shared hosting an error occured


    Server Error in '/' Application.
    Object reference not set to an instance of an object.

    Source Error:

    PricelistBLL logic = new PricelistBLL();

    Stack Trace:

    [NullReferenceException: Object reference not set to an instance of an object.]
    ByteDatabaseTableAdapters.PricelistsTableAdapter.InitConnection() +59
    ByteDatabaseTableAdapters.PricelistsTableAdapter.get_Connection() +15
    ByteDatabaseTableAdapters.PricelistsTableAdapter.InitAdapter() +262
    ByteDatabaseTableAdapters.PricelistsTableAdapter.get_Adapter() +15
    ByteDatabaseTableAdapters.PricelistsTableAdapter.GetPriceLists() +13
    PricelistBLL.GetLastPricelistURL() +16

    • Moved by Keshav Ramarao Sunday, May 16, 2010 4:53 PM Looks like a .Net question, not a SQL Server migration question. (From:SQL Server Migration)
    Sunday, May 16, 2010 4:42 AM