RadioDJ - Free Radio Automation Software Forum

RadioDJ v1.7+ => v1.7+ - Support Forum => Topic started by: wrm on April 01, 2015, 12:08:29 AM

Title: .Net Error - I think
Post by: wrm on April 01, 2015, 12:08:29 AM
Anyone know what this is ?


(http://www.celestial-images.com/RadioDJ-Error.jpg)

Win7 - Premium. Applied updates to .Net to try and fix this. No Joy. It appears to be related in some manner to events. If I create the following event and run it it throws this error.

1 Stop
2 Run Application C:\blah blah blah\ .bat file to replace the TTS xml file.
3 Load Rotation General Rotation
4 Clear Playlist
5 Play

Only this one Computer throws this error. My Test Laptop, also Win7 does not.

Any suggestions would be welcomed. Searching for this error doesn't yield much that's useful.

Thanks

Bill
Title: Re: .Net Error - I think
Post by: wrm on April 01, 2015, 03:02:30 AM
Update,

Ran a lot of tests with various Events and it looks like it may have been a UAC problem. Though its curious why it only affected Events. But Running RadioDJ as Administrator seems to get past this. Though more testing is in order.


Title: Re: .Net Error - I think
Post by: Marius on April 01, 2015, 09:08:22 AM
UAC is very sensitive when it comes to access files outside of the user's folder. If you .bat also copies/replaces files, it's even worse.
Title: Re: .Net Error - I think
Post by: wrm on April 01, 2015, 02:17:37 PM
Marius,

Stripping down the event to the bare minimum told me that it wasn't the .bat file. It also seemed to load a track or rotation without error. But stopping and starting did throw this error.

1 Stop|
2 Start|

Threw the error.

Regards

Bill
Title: Re: .Net Error - I think
Post by: AndyDeGroo on April 01, 2015, 07:59:20 PM
The exception trace indicates it is coming after or in Plugin_TTS.PluginClass.ReadXMLTemplate method. Looks like one of TTS template XML files is misformatted. Exact file is determined from track type.
There must be something missing in the XML template as the exception trace tries to read past available properties - "There is no row at index 3". Is suspect it is NowPlaying.xml, because original file contains 4 <Message> rows and "index 3" is in fact 4th.
I've never used TTS, so don't really know how templates work.

Title: Re: .Net Error - I think
Post by: wrm on April 02, 2015, 03:03:34 AM
Hi Andy,

Interesting ..... I *assumed* (which is usually a mistake) that the line in this template:

<Tracks2Speak>3</Tracks2Speak>

the "3" indicated something other than the number of records. If as you say it is an index, based on zero then this makes sense.

good Info - Thank You. The comedy here is that the .bat file copies over the NowPlaying file with basically empty records. Effectively turning  TTS off. The test system(s), 1 Win7 and 1 XP have never thrown this error and the XML files are the same. The production system, using an ASI soundcard so swapping them around wasn't as simple, had an egregious error in that the RadioDJ executable was not marked "Run As Administrator". An oversight - and making this change seemed to solve it.

So hopefully that this is now solved. And I guess I have some additional reading to do regarding XML  8)

Regards

Bill