error on web interface main page

Access your ARGUS TV system from your web browser
Post Reply
jtlarson
Posts: 36
Joined: Wed Apr 11, 2012 9:13 pm

error on web interface main page

Post by jtlarson » Tue Dec 17, 2013 6:01 pm

I'm not sure why, but when I tried to access the main page of my ArgusTV web interface yesterday, I received the message below. I'm running ArgusTV 2.1 on Windows 7 64-bit. I only get this error on the main page--'Recorded Programs, Upcoming Programs, Schedules' all still work as expected. The regular Argus Scheduler interface also works fine, AFAICT.

Can anyone give me a translation of what this "System.NullReferenceException: Object reference not set to an instance of an object"
error means?

Code: Select all

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 120:            }
Line 121:            <div class="epgPopupProgramIcons">
Line 122:                @if (0 != (Model.NextUpcomingRecordingInfo.GuideProgram.Flags & GuideProgramFlags.StandardAspectRatio))
Line 123:                {<img alt="4:3" src='@Url.Content("~/Content/Images/Fullscreen.png")' />}
Line 124:                @if (0 != (Model.NextUpcomingRecordingInfo.GuideProgram.Flags & GuideProgramFlags.WidescreenAspectRatio))

Source File: c:\Program Files (x86)\ARGUS TV\Web Access\Views\Home\Status.cshtml    Line: 122 

Stack Trace: 


[NullReferenceException: Object reference not set to an instance of an object.]
   ASP._Page_Views_Home_Status_cshtml.Execute() in c:\Program Files (x86)\ARGUS TV\Web Access\Views\Home\Status.cshtml:122
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +279
   System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +102
   System.Web.WebPages.StartPage.ExecutePageHierarchy() +142
   System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +156
   System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +379
   System.Web.Mvc.<>c__DisplayClass1c.<InvokeActionResultWithFilters>b__19() +32
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613
   System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263
   System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +691
   System.Web.Mvc.Controller.ExecuteCore() +162
   System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +305
   System.Web.Mvc.<>c__DisplayClassb.<BeginProcessRequest>b__5() +62
   System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +20
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +405
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +359

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

jtlarson
Posts: 36
Joined: Wed Apr 11, 2012 9:13 pm

Re: error on web interface main page

Post by jtlarson » Thu Dec 19, 2013 1:01 am

I tried re-installing ArgusTV and that didn't fix it either, so I restored a backup of the SQL database and that seemed to do the trick. I think the problem was linked to a corrupt entry in the 'currently recording'--i.e. a manual recording that I scheduled when the start time had already passed. Not sure why that caused an error--I'll post a bug report if i encounter it again.

User avatar
PaulAEvans
Posts: 532
Joined: Tue Jul 01, 2008 11:42 am

Re: error on web interface main page

Post by PaulAEvans » Sat Dec 21, 2013 3:43 pm

I am now getting error on web interface.

I dont know where to start looking could someone please help . this is with last release 2.2

Code: Select all

Could not load file or assembly 'log4net' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

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.IO.FileLoadException: Could not load file or assembly 'log4net' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'log4net' could not be loaded.


WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace: 


[FileLoadException: Could not load file or assembly 'log4net' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]

[FileLoadException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +130

[ConfigurationErrorsException: Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +1211
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +376
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +116
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +293
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +194
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +119
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1005

[HttpException (0x80004005): Could not load file or assembly 'log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +630
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +1400
Server: Gigabyte GA-Ex58-UD3R Intel i7 Corsair 6GB;Os on Sandisk 128GB SSD; TBS 6984 QuadDVB-S2, Nova-DT Dual DVB-T, Win7 SP1, Argus 2.3, SQLExp 2012
Clients: 3x XBMC RaspPi;1x ASUS A8N-VM CSM AMD 4200+ 2GB RAM, Win7 SP1 MP1.6/XBMC,Argus 2.3

User avatar
dot-i
Site Admin
Posts: 5848
Joined: Mon Oct 01, 2012 3:40 pm

Re: error on web interface main page

Post by dot-i » Fri Jan 03, 2014 1:11 pm

Stupid question perhaps, but did you check for the presence of the log4net.dll in the Web Access folder?
I have the heart of a child. I keep it in a jar on my shelf. -- Robert Bloch
Image

jtlarson
Posts: 36
Joined: Wed Apr 11, 2012 9:13 pm

Re: error on web interface main page

Post by jtlarson » Tue Jan 07, 2014 1:46 am

The error that I originally reported is happening again, but this time I have a bit more data:

I'm pretty certain it has to do with manual scheduling--when I schedule a manual recording (series or single) and try to view the ArgusTV homepage before it starts, I get the error. If it has already started--no issue.

I've narrowed it down to an issue with manual recordings and some code in ARGUS TV\Web Access\Views\Home\Status.cshtml. I noticed that the portion of Status.cshtml where my error occurs is conditioned with an if statement:

Code: Select all

if (Model.NextUpcomingRecordingInfo != null)
Since this error comes from within that if, "Model.NextUpcomingRecordingInfo" cannot be NULL. However if I enclose lines 121-140 with a second if statement based on the child object

Code: Select all

@if ( Model.NextUpcomingRecordingInfo.GuideProgram != null){
then the home page renders incomplete, but without errors. Thus it appears that the object Model.NextUpcomingRecordingInfo.GuideProgram is NULL, yet "Status.cshtml" seems to be trying to use it to decide how to display the upcoming recording.

I'm hoping someone can tell me how to fix this?

User avatar
dot-i
Site Admin
Posts: 5848
Joined: Mon Oct 01, 2012 3:40 pm

Re: error on web interface main page

Post by dot-i » Wed Jan 08, 2014 6:44 pm

I'll make sure this is properly fixed in 2.2.1. Basically the error occurs because of a manual schedule that has no matching guide program (which is basically what you had figured out yourself already), and this is indeed perfectly possible and should handled correctly.
I have the heart of a child. I keep it in a jar on my shelf. -- Robert Bloch
Image

User avatar
PaulAEvans
Posts: 532
Joined: Tue Jul 01, 2008 11:42 am

Re: error on web interface main page

Post by PaulAEvans » Wed Jan 08, 2014 8:34 pm

dot-i wrote:Stupid question perhaps, but did you check for the presence of the log4net.dll in the Web Access folder?
I have since updated .Net Framework now all working ok. :D
Server: Gigabyte GA-Ex58-UD3R Intel i7 Corsair 6GB;Os on Sandisk 128GB SSD; TBS 6984 QuadDVB-S2, Nova-DT Dual DVB-T, Win7 SP1, Argus 2.3, SQLExp 2012
Clients: 3x XBMC RaspPi;1x ASUS A8N-VM CSM AMD 4200+ 2GB RAM, Win7 SP1 MP1.6/XBMC,Argus 2.3

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests