This problem only happens after I’m logged in. The URL is: sso.theanimenetwork.com/Watch-Anime/Genre/Mature
– Addendum: after some experimentation, I have ascertained that I can watch the videos while logged in, but only by loading the video list page while logged out (using multiple tabs works best for this), then logging in, and selecting the specific video (or selecting the specific video, logging in, then refreshing to get the proper player), or by directly plugging in the specific video’s URL while logged in.
The error for this page follows.
======================================================================================
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 52: <button class=“@Model.AddToQueueButtonClass addTitle@(title.Id) @(Model.Queue.Count(x => x.Id == title.Id) == 0?”“:“hidden”)” onclick=“addTitleToQueue(@title.Id,‘@SHA1Hash.SaltedHash(Model.User.Id.ToString()+title.Id.ToString())’);” title=“Add To Queue”>
Line 53: <button class=“@Model.RemoveFromQueueButtonClass removeTitle@(title.Id) @(Model.Queue.Count(x => x.Id == title.Id) == 0?“hidden”:”“)” onclick=“removeTitleFromQueue(@title.Id,‘@SHA1Hash.SaltedHash(Model.User.Id.ToString() + title.Id.ToString())’);” title=“Remove From Queue”>
Line 54: <button class=“@Model.AddFavoriteButtonClass addFavorite@(title.Id) @(Model.Favorites.Count(x => x.Id == title.Id) == 0?”“:“hidden”)” onclick=“addFavorite(@title.Id,‘@SHA1Hash.SaltedHash(Model.User.Id.ToString() + title.Id.ToString())’);” title=“Add Favorite”>
Line 55: <button class=“@Model.RemoveFavoriteButtonClass removeFavorite@(title.Id) @(Model.Favorites.Count(x => x.Id == title.Id) == 0 ? “hidden” : “”)” onclick=“removeFavorite(@title.Id,‘@SHA1Hash.SaltedHash(Model.User.Id.ToString() + title.Id.ToString())’);” title=“Remove Favorite”>
Line 56:
Source File: c:\inetpub\wwwroot\Views\Anime\TitlesByTag.cshtml Line: 54
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
ASP.<>c__DisplayClass9.b__3(Title x) in c:\inetpub\wwwroot\Views\Anime\TitlesByTag.cshtml:54
System.Linq.Enumerable.Count(IEnumerable1 source, Func
2 predicate) +153
ASP._Page_Views_Anime_TitlesByTag_cshtml.Execute() in c:\inetpub\wwwroot\Views\Anime\TitlesByTag.cshtml:50
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +279
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +128
System.Web.WebPages.StartPage.ExecutePageHierarchy() +142
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +112
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +397
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +117 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +942
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +942 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +942
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +100 System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +231 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +32 System.Web.Mvc.Async.WrappedAsyncVoid
1.CallEndDelegate(IAsyncResult asyncResult) +111
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +19 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +54 System.Web.Mvc.Async.WrappedAsyncVoid
1.CallEndDelegate(IAsyncResult asyncResult) +111
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212
======================================================================================
The error for a video series is slightly different. Using Modern Magic Made Simple as an example, here are the URL and error respectively:
URL: http://sso.theanimenetwork.com/Watch-Anime/Modern-Magic-Made-Simple
Error:
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 54: <button class=“@Model.AddToQueueButtonClass @(Model.Queue.Count(x => x.Id == Model.Title.Id) == 0 ? “” : “hidden”) addTitle@(Model.Title.Id)” onclick=“addTitleToQueue(@Model.Title.Id,‘@SHA1Hash.SaltedHash(Model.User.Id.ToString() + Model.Title.Id.ToString())’);” title=“Add To Queue”>
Line 55: <button class=“@Model.RemoveFromQueueButtonClass @(Model.Queue.Count(x => x.Id == Model.Title.Id) == 0 ? “hidden” : “”) removeTitle@(Model.Title.Id)” onclick=“removeTitleFromQueue(@Model.Title.Id,‘@SHA1Hash.SaltedHash(Model.User.Id.ToString() + Model.Title.Id.ToString())’);” title=“Remove From Queue”>
Line 56: <button class=“@Model.AddFavoriteButtonClass addFavorite@(Model.Title.Id) @(Model.Favorites.Count(x => x.Id == Model.Title.Id) == 0 ? “” : “hidden”)” onclick=“addFavorite(@Model.Title.Id,‘@SHA1Hash.SaltedHash(Model.User.Id.ToString() + Model.Title.Id.ToString())’);” title=“Add Favorite”>
Line 57: <button class=“@Model.RemoveFavoriteButtonClass removeFavorite@(Model.Title.Id) @(Model.Favorites.Count(x => x.Id == Model.Title.Id) == 0 ? “hidden” : “”)” onclick=“removeFavorite(@Model.Title.Id,‘@SHA1Hash.SaltedHash(Model.User.Id.ToString() + Model.Title.Id.ToString())’);” title=“Remove Favorite”>
Line 58:
Source File: c:\inetpub\wwwroot\Views\Anime\Info.cshtml Line: 56
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
ASP._Page_Views_Anime_Info_cshtml.b__2(Title x) in c:\inetpub\wwwroot\Views\Anime\Info.cshtml:56
System.Linq.Enumerable.Count(IEnumerable1 source, Func
2 predicate) +153
ASP._Page_Views_Anime_Info_cshtml.Execute() in c:\inetpub\wwwroot\Views\Anime\Info.cshtml:53
System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +279
System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +128
System.Web.WebPages.StartPage.ExecutePageHierarchy() +142
System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +112
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +397
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +117 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +942
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +942 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList
1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +942
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +100 System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +231 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +32 System.Web.Mvc.Async.WrappedAsyncVoid
1.CallEndDelegate(IAsyncResult asyncResult) +111
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +19 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +54 System.Web.Mvc.Async.WrappedAsyncVoid
1.CallEndDelegate(IAsyncResult asyncResult) +111
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34212