NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 … 20 21 22 23 24 … 43 Next »
Unexpected error starting web server

 
  • 0 Vote(s) - 0 Average
Unexpected error starting web server
MrReis
Offline

Member

Posts: 58
Threads: 6
Joined: Oct 2013
#1
2016-10-16, 11:56 PM
NextPVR web server will not start. This started to happen while Windows was changing the indexing properties on all files on the C drive (where NextPVR is installed). I have completely uninstalled and reinstalled NextPVR (3.8.3.160929) which does not help. The Windows event log states "Event ID 1325 from ASP.NET.4.0.30319.0 cannot be found. Component is not installed or the installation is corrupted." I can't figure out what is "not installed" or what "installation is corrupted." It can't be NRecord.exe since I completely uninstalled and reinstalled NextPVR.

Can anyone suggest a way to find out what is not installed or corrupted?

At the time of the error the NRecord.log shows the following.

Code:
[...startup]
2016-10-16 15:08:20.805    [DEBUG][4]    OnStart()
2016-10-16 15:08:20.820    [DEBUG][4]    Checking if upgrade required
2016-10-16 15:08:20.820    [DEBUG][4]    master file is C:\Users\Public\NPVR\Config-master-dont-edit.xml
2016-10-16 15:08:20.836    [INFO][4]    Using local in-process recording service
2016-10-16 15:08:21.992    [DEBUG][4]    CaptureSource.LoadAll()
2016-10-16 15:08:22.039    [DEBUG][4]    RecordingServiceProxy@exit
2016-10-16 15:08:22.039    [INFO][4]    RecordingService.Startup()
2016-10-16 15:08:22.039    [INFO][4]    Starting remoting service (on port 8968)
2016-10-16 15:08:22.102    [DEBUG][10]    Requesting wake up for 'EPGWAKEUP-backup' at 10/17/2016 3:22 AM
2016-10-16 15:08:22.102    [INFO][13]    ServiceLocatorThread() Hostname:  HT2
2016-10-16 15:08:22.117    [DEBUG][10]    Requesting wake up for 'EPGWAKEUP' at 10/17/2016 3:22 AM
2016-10-16 15:08:22.117    [DEBUG][10]    Next EPG update time: 10/17/2016 3:22 AM
2016-10-16 15:08:22.117    [INFO][4]    Starting web server on: 8866
2016-10-16 15:08:22.117    [INFO][4]    Setting working directory to: C:\Program Files (x86)\NPVR\
2016-10-16 15:08:22.117    [INFO][4]    Web root: C:\Users\Public\NPVR\web
2016-10-16 15:08:22.149    [INFO][9]    RecordingService starting...
2016-10-16 15:08:22.149    [DEBUG][9]    Doing database vacuum
2016-10-16 15:08:22.305    [INFO][13]    IP Address: 192.168.1.108
2016-10-16 15:08:22.305    [DEBUG][13]    Waiting for broadcast
2016-10-16 15:08:27.103    [DEBUG][11]    Client Listener starting on port 7969
2016-10-16 15:08:28.369    [DEBUG][9]    vacuuming done
2016-10-16 15:08:28.369    [DEBUG][5]    Deleting web temp files
2016-10-16 15:08:28.385    [DEBUG][9]    No C:\Users\Public\NPVR\Scripts\PostStartup.bat
2016-10-16 15:08:28.400    [DEBUG][9]    PurgeOldDeletes()
2016-10-16 15:08:28.400    [DEBUG][9]    Loading recording schedule
2016-10-16 15:08:28.400    [ERROR][4]    [color=#FF0000]Unexpected error starting web server:[/color]
System.AppDomainUnloadedException: The application domain in which the thread was running has been unloaded.
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateInstanceInNewWorkerAppDomain(Type type, String appId, VirtualPath virtualPath, String physicalPath)
   at System.Web.Hosting.ApplicationHost.CreateApplicationHost(Type hostType, String virtualDir, String physicalDir)
   at Cassini.Server.CreateHost()
   at Cassini.Server..ctor(Int32 port, String virtualPath, String physicalPath)
   at [color=#FF0000]NRecord[/color].RecordingService.OnStart(String[] args)
2016-10-16 15:08:28.400    [DEBUG][4]    OnStart() complete...
2016-10-16 15:08:28.416    [DEBUG][9]    CancelAllWakeupRequests
2016-10-16 15:19:36.211    [DEBUG][17]    OnStop()
2016-10-16 15:19:36.211    [DEBUG][17]    About to stop webserver
2016-10-16 15:19:36.211    [DEBUG][17]    webserver stopped
2016-10-16 15:19:36.211    [DEBUG][17]    About to stop MVP servers
2016-10-16 15:19:36.211    [DEBUG][17]    MVPManager shutdown initiated
2016-10-16 15:19:36.211    [DEBUG][17]    MVPManager shutdown complete
2016-10-16 15:19:36.211    [DEBUG][17]    MVP servers stopped
2016-10-16 15:19:36.211    [DEBUG][17]    About to stop recording service
2016-10-16 15:19:36.211    [INFO][17]    RecordingService.Shutdown()
2016-10-16 15:19:36.211    [INFO][17]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.211    [INFO][17]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.211    [INFO][17]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.211    [INFO][17]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.211    [INFO][17]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.211    [INFO][17]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.462    [INFO][9]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.462    [INFO][9]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.462    [INFO][9]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.462    [INFO][9]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.462    [INFO][9]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.462    [INFO][9]    HDHomeRun.StopAllStreams()
2016-10-16 15:19:36.672    [DEBUG][17]    recording service stopped
2016-10-16 15:19:36.672    [DEBUG][17]    OnStop() complete...
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#2
2016-10-17, 01:20 AM
Uninstalling doesn't delete the temporary web server files. I would stop the recording service and delte

Code:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root

and restart.

Martin
MrReis
Offline

Member

Posts: 58
Threads: 6
Joined: Oct 2013
#3
2016-10-17, 02:36 AM
mvallevand Wrote:Uninstalling doesn't delete the temporary web server files. I would stop the recording service and delte

Code:
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root

and restart.

Thank you for your suggestion Martin.

I (1) stopped the recording service, (2) deleted everything (directories and files) under "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root" and (3) started the recording service.

NextPVR web server will still not start with the same error in NRecord.log
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#4
2016-10-17, 02:40 AM
Does it start after a clean boot? I remember on Windows Server 2012 user where it'd only run once after each reboot. Never did work out why this happened for him.
MrReis
Offline

Member

Posts: 58
Threads: 6
Joined: Oct 2013
#5
2016-10-17, 04:27 AM
sub Wrote:Does it start after a clean boot? I remember on Windows Server 2012 user where it'd only run once after each reboot. Never did work out why this happened for him.

I performed a "clean boot" (per https://support.microsoft.com/en-us/kb/929135 for Windows 10) with the exception of disabling nTray.exe. NRecord.log shows that NextPVR web server still does not start.

Code:
[...startup]
2016-10-16 21:01:23.193    [DEBUG][4]    OnStart()
2016-10-16 21:01:23.224    [DEBUG][4]    Checking if upgrade required
2016-10-16 21:01:23.224    [DEBUG][4]    master file is C:\Users\Public\NPVR\Config-master-dont-edit.xml
2016-10-16 21:01:23.255    [INFO][4]    Using local in-process recording service
2016-10-16 21:01:25.677    [DEBUG][4]    CaptureSource.LoadAll()
2016-10-16 21:01:25.833    [DEBUG][4]    RecordingServiceProxy@exit
2016-10-16 21:01:25.849    [INFO][4]    RecordingService.Startup()
2016-10-16 21:01:25.849    [INFO][4]    Starting remoting service (on port 8968)
2016-10-16 21:01:26.021    [DEBUG][10]    Requesting wake up for 'EPGWAKEUP-backup' at 10/17/2016 3:22 AM
2016-10-16 21:01:26.021    [DEBUG][10]    Requesting wake up for 'EPGWAKEUP' at 10/17/2016 3:22 AM
2016-10-16 21:01:26.037    [DEBUG][10]    Next EPG update time: 10/17/2016 3:22 AM
2016-10-16 21:01:26.068    [INFO][13]    ServiceLocatorThread() Hostname:  HT2
2016-10-16 21:01:26.130    [INFO][9]    RecordingService starting...
2016-10-16 21:01:26.130    [DEBUG][9]    Doing database vacuum
2016-10-16 21:01:26.130    [INFO][4]    Starting web server on: 8866
2016-10-16 21:01:26.130    [INFO][4]    Setting working directory to: C:\Program Files (x86)\NPVR\
2016-10-16 21:01:26.130    [INFO][4]    Web root: C:\Users\Public\NPVR\web
2016-10-16 21:01:26.818    [INFO][13]    IP Address: 192.168.1.108
2016-10-16 21:01:26.818    [DEBUG][13]    Waiting for broadcast
2016-10-16 21:01:31.021    [DEBUG][11]    Client Listener starting on port 7969
2016-10-16 21:01:31.365    [ERROR][4]    Unexpected error starting web server:
System.AppDomainUnloadedException: The application domain in which the thread was running has been unloaded.
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateInstanceInNewWorkerAppDomain(Type type, String appId, VirtualPath virtualPath, String physicalPath)
   at System.Web.Hosting.ApplicationHost.CreateApplicationHost(Type hostType, String virtualDir, String physicalDir)
   at Cassini.Server.CreateHost()
   at Cassini.Server..ctor(Int32 port, String virtualPath, String physicalPath)
   at NRecord.RecordingService.OnStart(String[] args)
2016-10-16 21:01:31.365    [DEBUG][4]    OnStart() complete...
2016-10-16 21:01:36.444    [DEBUG][9]    vacuuming done
2016-10-16 21:01:36.475    [DEBUG][20]    Deleting web temp files
2016-10-16 21:01:36.490    [DEBUG][9]    No C:\Users\Public\NPVR\Scripts\PostStartup.bat
2016-10-16 21:01:36.490    [DEBUG][9]    PurgeOldDeletes()
2016-10-16 21:01:36.490    [DEBUG][9]    Loading recording schedule
2016-10-16 21:01:36.506    [DEBUG][9]    CancelAllWakeupRequests

Can you suggest any diagnostic software that would help identify the problem?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#6
2016-10-17, 06:28 AM
Odd. I'm not reallly sure what might be causing that.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,850
Threads: 954
Joined: May 2006
#7
2016-10-17, 01:06 PM
I read threads that error can be related to Drive Compression. I makes sense since the Web Server runs in C:\Windows and compressing the system folder has never been recommended that makes some sense.

Martin
MrReis
Offline

Member

Posts: 58
Threads: 6
Joined: Oct 2013
#8
2016-10-17, 06:07 PM
I removed NTFS compression from the C drive and suddenly NextPVR web server can now start.

The system (that does not allow NextPVR web server to start with NTFS compression) is 64-bit Windows 10. I have the same exact NextPVR setup running on a 32-bit Windows 8.1 system with NTFS compression and NextPVR web server is able to start just fine. Go figure.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Error: All tuners are locked to a single channel. ulyssesmiller 1 128 2025-05-22, 12:51 PM
Last Post: BrettB
  Android TV Box Upgrade & Player Error meccano 11 1,046 2024-09-17, 03:32 PM
Last Post: mvallevand
  Kodi Server Plugin - EPG Update Failure ceejayemm 5 870 2024-04-28, 08:25 PM
Last Post: mvallevand
  Error 'Recording failed: No video data received' JackNoren 2 680 2024-02-27, 09:44 AM
Last Post: mvallevand
  Error all tuners locked to one channel JackNoren 1 515 2024-02-23, 04:52 PM
Last Post: sub
  Kodi NextPVR playback error "Playback Failed" eggburt 6 2,227 2024-02-16, 04:33 AM
Last Post: eggburt
  Multiple Server JohnySmith1010 3 573 2024-01-01, 09:25 PM
Last Post: mvallevand
  Error "This copy of Windows is not genuine" JohanBoyer 2 640 2023-11-17, 08:59 PM
Last Post: gEd
  NextPVR not starting or couldn't be loaded Apple TV on Kodi start Ade_AV 19 2,701 2023-08-25, 01:12 AM
Last Post: mvallevand
  Setting up a media server for my kodi devices? jiwlei 3 2,687 2022-04-23, 04:05 PM
Last Post: JavaWiz

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode