Server Error in '/' Application.

Object reference not set to an instance of an object.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:


Line 21:         {
Line 22:            // CatCompany company = WECatalogLibrary.Managers.CatCompanyManager.GetByUrlAllias(Request.QueryString["allias"]);
Line 23:             CatCompany company = new CatCompany(int.Parse(Request.QueryString["id"]));
Line 24:             if (company != null)
Line 25:             {

Source File: d:\www\stavimesen.cz\Catalog\Company.aspx.cs    Line: 23

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   WECatalogLibrary.BaseBO.BaseCatCompany.LoadItem(BaseCatCompany item) +60
   WECatalogLibrary.BaseBO.BaseCatCompany..ctor(Int32 id) +228
   WECatalogLibrary.BO.CatCompany..ctor(Int32 id) +37
   Catalog_Company.Page_Load(Object sender, EventArgs e) in d:\www\stavimesen.cz\Catalog\Company.aspx.cs:23
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   WebElementsLibrary.Web.SimplePage.OnLoad(EventArgs e) +52
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3535.0