PDA

View Full Version : .net unhandled exception



soccerdad
2010-06-13, 06:08 PM
I updated vcred, and directx per the links. The install went very quickly. Just a couple of seconds. The "n" is in the tray and it looks like all the stuff is in the program folder. I get a "unhandled .net exception" when I try to launch it that I can only recover from by killing from task manager. I don't see any logs to post...

soccerdad
2010-06-13, 06:08 PM
I also just blew out .net 3.5 and reinstalled it, rebooted and still get the same error.

sub
2010-06-13, 06:10 PM
Can you post the c:\users\public\npvr\log\npvr.log file?

soccerdad
2010-06-13, 06:11 PM
For more information, this is on my development box, xp home. Normally rock solid.

orennahum
2010-06-13, 06:13 PM
The same for me, the the following exception:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at NextPVR.ControllerForm.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at NextPVR.ControllerForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3607 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
NextPVR
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NextPVR.exe
----------------------------------------
NShared
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NShared.DLL
----------------------------------------
NUtility
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/NPVR/NUtility.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3614 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.65.0
Win32 Version: 1.0.65.0
CodeBase: file:///C:/Program%20Files/NPVR/System.Data.SQLite.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data.Entity
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Data.Entity/3.5.0.0__b77a5c561934e089/System.Data.Entity.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

sub
2010-06-13, 06:13 PM
On XP the logs are in C:\Documents and Settings\All Users\Documents\NPVR\Logs

soccerdad
2010-06-13, 06:14 PM
Can you post the c:\users\public\npvr\log\npvr.log file? Hmm, don't have a C:\users folder (xp) Where would it be?

orennahum
2010-06-13, 06:15 PM
My 2 computers are running winxp with sp3.

Reddwarf
2010-06-13, 06:16 PM
Hmm, don't have a C:\users folder (xp) Where would it be?


On XP the logs are in C:\Documents and Settings\All Users\Documents\NPVR\Logs

:)

orennahum
2010-06-13, 06:17 PM
In both two computers there is no "C:\Documents and Settings\All Users\Documents\NPVR\Logs" directory.

soccerdad
2010-06-13, 06:19 PM
Well in All Users I don't have a Documents folder....

imilne
2010-06-13, 06:21 PM
I haven't tried in anger yet on a real PC, but a quick test in a VM is showing lots of files being skipped during the install (if you look at the more details option). I then see the same exceptions as above. The vcredist is also leaving a bunch of files at the root of c: - is that to be expected?

(I'll add that I didn't expect the app to run in the VM due to not having dx9, but I was just wanting to look at the installed files, etc).

sub
2010-06-13, 06:21 PM
In both two computers there is no "C:\Documents and Settings\All Users\Documents\NPVR\Logs" directory.If you're on Vista or Win7, the logs directory is c:\users\public\npvr\log

Reddwarf
2010-06-13, 06:23 PM
Well in All Users I don't have a Documents folder....

It's sometimes called All Users.WINDOWS, but try searching your local harddisks for "NPVR.log".

soccerdad
2010-06-13, 06:27 PM
It's sometimes called All Users.WINDOWS, but try searching your local harddisks for "NPVR.log".

no love, "NPVR.log" is not on my computer. I think something was wrong with the install. It only took a couple of seconds to complete. I tried the install twice.

soccerdad
2010-06-13, 06:29 PM
When I uninstall I get a "error data directory" message from the uninstall program.

imilne
2010-06-13, 06:34 PM
I haven't tried in anger yet on a real PC, but a quick test in a VM is showing lots of files being skipped during the install (if you look at the more details option). I then see the same exceptions as above.

The same test with a Windows 7 VM has succeeded. The app installed and the main window is up and running. So it's looking like an issue with the installer on XP?

sub
2010-06-13, 06:36 PM
So it's looking like an issue with the installer on XP?Yes, sounding like that might be the case.

soccerdad
2010-06-13, 06:37 PM
On reinstall as I finish, I read the install logs and it looks like it skips tons of files and ini's

orennahum
2010-06-13, 06:39 PM
No log file for also.

pBS
2010-06-13, 06:52 PM
same here on xp, looks like a dir isn't being created, starts skipping just after NRECORD.EXE INSTALL line, where Output Folder: is blank...
most everything after that skips extraction..
i notice the .reg file also only has vista style docs dir.."DataDirectory"="C:\\Users\\Public\\NPVR"
which obviously won't work on xp...
i think some of the subdirs aren't getting created...only subdir in NPVR is 'other'...seems like after that, all fails copying..

Install.log from root of c:
[second re-install attempt]


Running a transacted installation.

Beginning the Install phase of the installation.
Installing service NPVR Recording Service...
Service NPVR Recording Service has been successfully installed.
Creating EventLog source NPVR Recording Service in log Application...

The Install phase completed successfully, and the Commit phase is beginning.

The Commit phase completed successfully.

The transacted install has completed.

Running a transacted installation.

Beginning the Install phase of the installation.
Installing service NPVR Recording Service...
Creating EventLog source NPVR Recording Service in log Application...

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: The specified service already exists

The Rollback phase of the installation is beginning.
Restoring event log to previous state for source NPVR Recording Service.

The Rollback phase completed successfully.

The transacted install has completed.


The uninstall is beginning.
Removing EventLog source NPVR Recording Service.
Service NPVR Recording Service is being removed from the system...
Service NPVR Recording Service was successfully removed from the system.
Attempt to stop service NPVR Recording Service.

The uninstall has completed.

pBS
2010-06-13, 06:56 PM
p.s. how to add additional devices? will all capture cards that worked show up automatically?

mvallevand
2010-06-13, 07:07 PM
same here on xp, looks like a dir isn't being created, starts skipping just after NRECORD.EXE INSTALL line, where Output Folder: is blank...
most everything after that skips extraction..
i notice the .reg file also only has vista style docs dir.."DataDirectory"="C:\\Users\\Public\\NPVR"
which obviously won't work on xp...
i think some of the subdirs aren't getting created...only subdir in NPVR is 'other'...seems like after that, all fails copying..

Install.log from root of c:
[second re-install attempt]

There seems to be a problem doing a reinstall without an uninstall which I avoided by typing before running NPVRSetup

NRecord UNINSTALL

Martin

pBS
2010-06-13, 07:21 PM
well i just created "c:\Documents and Settings\All Users\Documents\NPVR" dir and it installed successfully after that...files copied, and app started...:D
oh, i also edited the registry entry to be correct for xp users..'DataDirectory' = c:\Documents and Settings\All Users\Documents\NPVR instead of what's in the included .reg file
i already had a 'documents' dir in 'all users', but it may need to be created also for some people..

pBS
2010-06-13, 07:28 PM
is there a client mode?! and i don't see any config options... ahh,mouse rt-click for config..:)

still hoping there's some sort of client mode...i know recordings are nice from library now, but livetv...

Reddwarf
2010-06-13, 07:34 PM
is there a client mode?! and i don't see any config options...

There is no client/server in NPVR. Configuring is done by right-clicking in the app window and selecting from the popup menue.

BrettB
2010-06-13, 07:38 PM
well i just created "c:\Documents and Settings\All Users\Documents\NPVR" dir and it installed successfully after that...files copied, and app started...:D
oh, i also edited the registry entry to be correct for xp users..'DataDirectory' = c:\Documents and Settings\All Users\Documents\NPVR instead of what's in the included .reg file
i already had a 'documents' dir in 'all users', but it may need to be created also for some people..

On Windows Server 2003, I was seeing the same problem as being reported with XP--install skipping many files, .NET error on startup, etc. Strangely, when I went to look in the C:\Documents and Settings\All Users\ directory with a Windows Explorer window, no Documents folder shows up. (And I do have it set to show hidden and system files, so ALL files should be showing up.) However, when I create a new folder and try to rename it to Documents, I get an error saying that folder already exists. If I open a command prompt window and go to the same C:\Documents and Settings\All Users\ directory, I do indeed see a Documents folder! Very strange--and I'm guessing somehow related to what is confusing the installer.

sub
2010-06-13, 07:39 PM
is there a client mode?! and i don't see any config options... No, not yet, but I do intend to add it soon. Where it ends up in the priority list will depend on the feedback from users.

ironcross
2010-06-13, 07:41 PM
It's your "Shared Documents" folder. Put the NPVR folder in there.

bgowland
2010-06-13, 07:53 PM
sub - I thought you were going to set the installer to use C:\Documents and Settings\All Users\Application Data\NPVR for XP.

BrettB
2010-06-13, 07:55 PM
It's your "Shared Documents" folder. Put the NPVR folder in there.

It's too bad the installer isn't using the "Application Data" folder since that would be common across all platforms (XP through Win 7), I think.

sub
2010-06-13, 08:10 PM
Can one of the XP users run "set > env.txt" at a command prompt and post me the env.txt file?

pBS
2010-06-13, 08:17 PM
sent you mine...

soccerdad
2010-06-13, 08:21 PM
here is the env.txt file

26755

martint123
2010-06-13, 08:48 PM
and mine (same looking error after install)

JonRoyle
2010-06-13, 09:52 PM
On Windows Server 2003, I was seeing the same problem as being reported with XP--install skipping many files, .NET error on startup, etc.


Same here. Happy to send any logs etc to assist in diagnosis

wannabepvr
2010-06-13, 10:01 PM
Oh crap.... I just joined this club too.
All the same observations regarding skipped directories etc.
No matter I will take a look on my win7 machine - I just want to see it!

JEF
2010-06-13, 10:58 PM
I'm using XP SP3 and got the same problem --env.txt attached

sub
2010-06-14, 01:07 AM
I've updated http://www.gbpvr.com/NPVRSetup.exe if an XP user or two wants to try it. As a disclaimer though, two XP testers had success with this fix, one didnt.

I'd suggest you try an uninstall if you've got it installed. I'd also delete the HKLM\Software\NPVR registry key before running the install.

dave.t
2010-06-14, 01:34 AM
Worked for me
Dave

sub
2010-06-14, 01:37 AM
Worked for me
DaveGreat.

tomper
2010-06-14, 01:38 AM
Worked fine here too.

Thanks for the quick fix.

IanSav
2010-06-14, 02:01 AM
Hi,

The updated installation package now installed for me as well (Windows XP SP3). Only one small anomaly noted, the "install.log" file was left in the root directory (C:\).

Thanks for the quick fix.

Regards,
Ian.

soccerdad
2010-06-14, 02:12 AM
You hit it spot on. No problems now.

Thanks sub! It looks great. I am sure there will be some trying times with it, but I for one really appreciate your work and continue to be in awe.

Ommina
2010-06-14, 02:49 AM
After a bit of fussing (mostly related to getting the original half-installed version out of the way), the new installation worked on my XP SP3.

Similar to IanSav's report above, I did end up with a number of files in the root of C:



KeyMappings.xml
empty.db3
npvr.db3
DigitalDevices.xml
AnalogDevices.xml
DeviceRules.xml
config.xml
Config-master-dont-edit.xml
install.log


I didn't check until after reading IanSav's post, so I don't know which of these files were created by the installer, and which by the application itself.

Edit: after deleting the files from the root and re-running the application, the files did not reappear, and settings changes from the previous instance were not lost.

Edit of the edit: For giggles, I did an uninstall and reinstall. The files listed above did not all reappear, although install.log did. (Perhaps the longer list was from the earlier, failed XP install.)

sub
2010-06-14, 03:00 AM
After a bit of fussing (mostly related to getting the original half-installed version out of the way), the new installation worked on my XP SP3.

Similar to IanSav's report above, I did end up with a number of files in the root of C:



KeyMappings.xml
empty.db3
npvr.db3
DigitalDevices.xml
AnalogDevices.xml
DeviceRules.xml
config.xml
Config-master-dont-edit.xml
install.log
These were from the earlier attempted install, when it wasnt able to correctly identify the location for the data directory.

IanSav
2010-06-14, 03:00 AM
Hi Ommina,

I had a similarly long list of files after my first install, with the broken installer. I cleaned up before using the fixed installer. The newer installer only left the "install.log" file in the root directory.

Regards,
Ian.

mvallevand
2010-06-14, 03:34 AM
I had a check on some of my test boxes, and there was a bogus "Application and Setting" folder in the root to deal with.

It also looks like c:\install.log will get created every time the NRecord service is installed or uninstalled. It is NRecord doing this not the Setup program.

Martin

imilne
2010-06-14, 08:19 AM
The vcredist is also leaving a bunch of files at the root of c: - is that to be expected?

Found some more info on this if anyone is interested... http://support.microsoft.com/kb/950683

JEF
2010-06-14, 08:35 AM
Thanks Sub -- It worked for me as well

martint123
2010-06-14, 09:40 AM
I got the spurious files saved in the root of the install directory (E:\) in my case. The updated installer worked fine though (too late to test fully)

martint123
2010-06-14, 12:26 PM
I had to manually edit the datadir entry in the registry to make it install without skipping.

Could it be an XP thing with 'documents' being the same directory name as 'shared documents' as I tried to create documents but it said it already existed (but didn't!!).
anyway onward and upward.

Oh yes, thanks to Martin for the nrecord uninstall tip.

bgowland
2010-06-14, 02:54 PM
I had to manually edit the datadir entry in the registry to make it install without skipping.The current download should now attempt to install the user stuff to C:\Documents and Settings\All Users\Application Data\NPVR or the equivalent of %ALLUSERSPROFILE%\Application Data\NPVR.

The problem is if you have already tried to install a previous version as the installer will simply look at the registry DataDirectory value and use that again.

To anyone who wants to get the default install (as detailed above) simply delete the HKLM\SOFTWARE\NPVR registry key completely and the installer will think it's a fresh install.

For those who want to clean up a previous failed install on XP, some files (as mentioned) will have been copied to C:\ (or the root of whatever drive was chosen to install the program). The files are as follows...

AnalogDevices.xml
config.xml
Config-master-dont-edit.xml
DeviceRules.xml
DigitalDevices.xml
empty.db3
KeyMappings.xml
npvr.db3

martint123
2010-06-14, 05:08 PM
The current download should now attempt to install the user stuff to C:\Documents and Settings\All Users\Application Data\NPVR or the equivalent of %ALLUSERSPROFILE%\Application Data\NPVR.



It was still failing for me even when I deleted the whole \NPVR registry entry and its entries. When teh install failed, the datadir entry was re-created but was still pointing to nothing. Manually creating it, let me proceed. And, yes, I had re-downloaded the install file.

bgowland
2010-06-14, 10:37 PM
It was still failing for me even when I deleted the whole \NPVR registry entry and its entries. When teh install failed, the datadir entry was re-created but was still pointing to nothing. Manually creating it, let me proceed. And, yes, I had re-downloaded the install file.Strange - this is what was happening to me yesterday (I was the tester that it didn't work for that sub mentions here http://forums.gbpvr.com//showthread.php?46877-.net-unhandled-exception&p=377647#post377647).

Before I posted my message (above) however, I uninstalled what I had in place and deleted everything the installer didn't remove (including the reg key) then downloaded the installer from fresh and it worked fine for me pointing the user stuff at Application Data. Weird.

martint123
2010-06-15, 09:33 AM
Strange - this is what was happening to me yesterday (I was the tester that it didn't work for that sub mentions here http://forums.gbpvr.com//showthread.php?46877-.net-unhandled-exception&p=377647#post377647).

Before I posted my message (above) however, I uninstalled what I had in place and deleted everything the installer didn't remove (including the reg key) then downloaded the installer from fresh and it worked fine for me pointing the user stuff at Application Data. Weird.

I'm going to go back to an image from last week and start afresh.
Something I have done in the last couple of days has stopped my dvb-s tuners from working in gbpvr and dvbviewer. I went back a month and they worked, so I'll try a Sunday restore.
I guess something installed in the last few days has upset it. A driver reinstall didn't fix it. so npvr, wintv7 or microsoft are my suspects ;)

martint123
2010-06-15, 02:07 PM
After a fresh start on Saturdays image, it failed again, but now I think it was a firefox/cache problem and not really getting the updated installer.
Re downloaded with IE and re-imaged again and it installed fine - so sorry for false alarms.