S Pittaway wrote:i am guessing you are writing your own xml file? because something is forgeting to replace the special xml chars (&, >, < etc)
Yes, It was easier at the time I'll have a look...
S Pittaway wrote:i am guessing you are writing your own xml file? because something is forgeting to replace the special xml chars (&, >, < etc)
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 XMail.XMail.Clean(String TexStr)
at XMail.XMail.GetMail()
at XMail.XMail.Execute(String fullcommand)
at xlobby2.Command.Run(Control control)
at xlobby2.Setup.button56_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(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.1433 (REDBITS.050727-1400)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
xlobby2
Assembly Version: 2.0.8150.5
Win32 Version: 2.0.08150.05
CodeBase: file:///C:/Program%20Files/xlobby/xlobby2.exe
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
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.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Interop.ActiveHomeScriptLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/xlobby/Interop.ActiveHomeScriptLib.DLL
----------------------------------------
XPluginSDK
Assembly Version: 1.0.2817.26334
Win32 Version: 1.0.2817.26334
CodeBase: file:///C:/Program%20Files/xlobby/XPluginSDK.DLL
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Interop.X10
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/xlobby/Interop.X10.DLL
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
DShowPlayer
Assembly Version: 0.0.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files/xlobby/DShowPlayer.DLL
----------------------------------------
msvcm80
Assembly Version: 8.0.50727.1433
Win32 Version: 8.00.50727.1433
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.1433_x-ww_5cf844d2/msvcm80.dll
----------------------------------------
xlobbydvdcopy
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/xlobby/plugins/xlobbydvdcopy.dll
----------------------------------------
xusbuirt
Assembly Version: 1.0.2988.30813
Win32 Version: 1.0.2988.30813
CodeBase: file:///C:/Program%20Files/xlobby/plugins/xusbuirt.dll
----------------------------------------
xDatabase
Assembly Version: 1.0.3077.28542
Win32 Version: 1.0.3077.28542
CodeBase: file:///C:/Program%20Files/xlobby/plugins/xDataBase/xDatabase.dll
----------------------------------------
xDigiTv
Assembly Version: 1.0.2902.16818
Win32 Version: 1.0.2902.16818
CodeBase: file:///C:/Program%20Files/xlobby/plugins/xDigiTv/xDigiTv.dll
----------------------------------------
Mail
Assembly Version: 2.5.2352.26470
Win32 Version: 2.5.2352.26470
CodeBase: file:///C:/Program%20Files/xlobby/plugins/XMail/Mail.dll
----------------------------------------
XMail
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Program%20Files/xlobby/plugins/XMail/XMail.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
xMono
Assembly Version: 1.0.3028.28150
Win32 Version: 1.0.3028.28150
CodeBase: file:///C:/Program%20Files/xlobby/plugins/xMono/xMono.dll
----------------------------------------
xMusic
Assembly Version: 1.0.3042.26920
Win32 Version: 1.0.3042.26920
CodeBase: file:///C:/Program%20Files/xlobby/plugins/xMusic/xMusic.dll
----------------------------------------
XRemote
Assembly Version: 0.2.1966.29535
Win32 Version: 0.2.1966.29535
CodeBase: file:///C:/Program%20Files/xlobby/plugins/XRemote/XRemote.dll
----------------------------------------
texluygc
Assembly Version: 0.2.1966.29535
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
bc_xbjhm
Assembly Version: 0.2.1966.29535
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
xSleep
Assembly Version: 1.0.2942.31190
Win32 Version: 1.0.2942.31190
CodeBase: file:///C:/Program%20Files/xlobby/plugins/xSleep/xSleep.dll
----------------------------------------
xTopPicks
Assembly Version: 1.6.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///C:/Program%20Files/xlobby/plugins/xTopPicks/xTopPicks.dll
----------------------------------------
XWeather
Assembly Version: 1.0.3023.23285
Win32 Version: 1.0.3023.23285
CodeBase: file:///C:/Program%20Files/xlobby/plugins/xweather/XWeather.dll
----------------------------------------
Interop.Shell32
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/xlobby/Interop.Shell32.DLL
----------------------------------------
Mail
Assembly Version: 2.5.2352.26470
Win32 Version: 2.5.2352.26470
CodeBase: file:///C:/Program%20Files/xlobby/Mail.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.
static public string XmlEncodeString(string XMLString)
{
if (XMLString == null || XMLString == "" )
{
//its already safe
}
else
{
XMLString = XMLString.Replace("\001", ".");
XMLString = XMLString.Replace("\002", ".");
XMLString = XMLString.Replace("\002", ".");
XMLString = XMLString.Replace("\003", ".");
XMLString = XMLString.Replace("\004", ".");
XMLString = XMLString.Replace("\005", ".");
XMLString = XMLString.Replace("\006", ".");
XMLString = XMLString.Replace("\007", ".");
XMLString = XMLString.Replace("\008", ".");
XMLString = XMLString.Replace("\009", ".");
XMLString = XMLString.Replace("&", "&");
XMLString = XMLString.Replace("<", "<");
XMLString = XMLString.Replace(">", ">");
}
return XMLString;
}//XmlEncodeString