Hi,

I am working on com+ simple sample application. I created com+ component and later registered it. When I access that component through ASP.NET app, I am getting the following error.
Could you please trace this error and suggest me what to do?
--------------------------------------------------------------------------------

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 61: mk = New ReceiveOrder()
Line 62:
Line 63: If mk.Receive(ViewState("OrderToReceive"), ViewState("SKUToReceive"), ViewState("LineNumber"), CInt(txtQuantityToReceive.Text)) Then
Line 64: ContextUtil.SetComplete()
Line 65: Else


Source File: D:\Inetpub\wwwroot\SupermarketWeb\ReceiveOrder.aspx.vb Line: 63

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +264
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +682
SuperMarketSystem.Supermarket.IReceiveOrder.Receive(String Ordernumber, String sku, Int32 linenumber, Int32 quantityreceived) +0
SupermarketWeb.ReceiveOrderM.cmdReceive_Click(Object sender, EventArgs e) in D:\Inetpub\wwwroot\SupermarketWeb\ReceiveOrder.aspx.vb:63
System.Web.UI.WebControls.Button.OnClick(EventArgs e)
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET Version:1.0.3705.0