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 6824:        public bool DispCharEntrance(c_profile cprof, Control top, string path, ref string jscr, ref int jcnt)
Line 6825:        {
Line 6826:            string charname = cprof.p_picurl.Replace(".jpg", "");//Strings.Replace(cprof.p_picurl, ".jpg", "", Compare: CompareMethod.Text);
Line 6827:            string promo_flv = path + "/" + charname + ".flv";
Line 6828:            string promo_mp4 = path + "/" + charname + ".mp4";

Source File: c:\inetpub\wwwroot\bigbroweb\bigbroweb\App_Code\clib.cs    Line: 6826

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
   clibname.clib.DispCharEntrance(c_profile cprof, Control top, String path, String& jscr, Int32& jcnt) in c:\inetpub\wwwroot\bigbroweb\bigbroweb\App_Code\clib.cs:6826
   profile.Page_Init(Object sender, EventArgs e) in C:\inetpub\wwwroot\bigbroweb\bigbroweb\profile.aspx.vb:77
   System.Web.UI.Control.OnInit(EventArgs e) +107
   System.Web.UI.Page.OnInit(EventArgs e) +16
   System.Web.UI.Control.InitRecursive(Control namingContainer) +172
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +490


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