This project is read-only.

SmsDesktopAgent crash

May 21, 2008 at 4:16 PM
hello everyone,

i've tried to install the toolkit. when i start a new project in visual studio and try to run it, it says: make sure that SmsDesktopAgent runs or refresh the client list.
well i've located SmsDesktopAgent and tried to launch it manually and got the error: sqlcese30.dll was missing.

so i installed sql mobile 2005

it installed in C:\Program Files (x86)\Microsoft SQL Server Compact Edition\v3.1

it still gave the error, so i copied all the dll's from the directory above to the dir that SmsDesktopAgent is in.
it still doesn't launch and gave me the error below:

does someone have any suggestions please?

best regards,
JP
---
System.BadImageFormatException: Poging om een programma te laden met een onjuiste indeling. (Uitzondering van HRESULT: 0x8007000B)
   bij System.Data.SqlServerCe.NativeMethods.CreateErrorInstance(IntPtr& pError)
   bij System.Data.SqlServerCe.SqlCeCommand..ctor()
   bij MSRI.DesktopAgent.SmsServerDataSetTableAdapters.Sms_BlockedListTableAdapter.InitAdapter()
   bij MSRI.DesktopAgent.SmsServerDataSetTableAdapters.Sms_BlockedListTableAdapter.get_Adapter()
   bij MSRI.DesktopAgent.SmsServerDataSetTableAdapters.Sms_BlockedListTableAdapter.Fill(Sms_BlockedListDataTable dataTable)
   bij MSRI.DesktopAgent.AgentForm.MainForm_Load(Object sender, EventArgs e)
   bij System.Windows.Forms.Form.OnLoad(EventArgs e)
   bij System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   bij System.Windows.Forms.Control.CreateControl()
   bij System.Windows.Forms.Control.WmShowWindow(Message& m)
   bij System.Windows.Forms.Control.WndProc(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladen assembly's **************
mscorlib
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
SmsDesktopAgent
    Assembly-versie: 1.1.1.0
    Win32-versie: 1.1.1.0
    CodeBase: file:///C:/Program%20Files%20(x86)/MSR%20India/SMS%20Server/SmsDesktopAgent.exe
----------------------------------------
System.Windows.Forms
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.resources
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_nl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Accessibility
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Configuration
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
mscorlib.resources
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
System.Runtime.Remoting
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
MSRI_SMS_Server
    Assembly-versie: 1.1.1.0
    Win32-versie: 1.1.1.0
    CodeBase: file:///C:/Program%20Files%20(x86)/MSR%20India/SMS%20Server/MSRI_SMS_Server.DLL
----------------------------------------
System.Web
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Data.SqlServerCe
    Assembly-versie: 9.0.242.0
    Win32-versie: 3.0.5300.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Data.SqlServerCe/9.0.242.0__89845dcd8080cc91/System.Data.SqlServerCe.dll
----------------------------------------

************** JIT-foutopsporing **************
Als u JIT-foutopsporing wilt inschakelen, moet in het configuratiebestand voor deze
toepassing of computer (machine.config) de waarde
jitDebugging in het gedeelte system.windows.forms zijn ingesteld.
De toepassing moet ook zijn gecompileerd terwijl foutopsporing
was ingeschakeld.

Bijvoorbeeld:

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

Wanneer JIT-foutopsporing is ingeschakeld, worden onverwerkte uitzonderingen
naar het JIT-foutopsporingsprogramma gestuurd dat op de computer is geregistreerd
en worden niet door dit dialoogvenster verwerkt.



Coordinator
May 22, 2008 at 12:28 PM
Dear JP,

This looks like a version Issue. if you can send me an email on vibhoregoyal at gmail dot com, i will be happy to send you the exact dll you need.

Best,
Vibhore
May 22, 2008 at 2:17 PM
ok thanks vibhore, i've just send an email from my @hotmail.com account :)

thanks in advanced for your time

best regards,
JP
May 22, 2008 at 3:10 PM
Edited May 22, 2008 at 3:16 PM
i've received the mail with the zipped dll's and have overwritten mine.

here is the error, that i receive when i manually start 'smsdesktopagent.exe'

Zie het einde van dit bericht voor meer informatie over het aanroepen
van JIT-foutopsporing (Just In Time) in plaats van dit dialoogvenster.

************** Tekst van uitzondering **************
System.BadImageFormatException: Poging om een programma te laden met een onjuiste indeling. (Uitzondering van HRESULT: 0x8007000B)
   bij System.Data.SqlServerCe.NativeMethods.CreateErrorInstance(IntPtr& pError)
   bij System.Data.SqlServerCe.SqlCeCommand..ctor()
   bij MSRI.DesktopAgent.SmsServerDataSetTableAdapters.Sms_BlockedListTableAdapter.InitAdapter()
   bij MSRI.DesktopAgent.SmsServerDataSetTableAdapters.Sms_BlockedListTableAdapter.get_Adapter()
   bij MSRI.DesktopAgent.SmsServerDataSetTableAdapters.Sms_BlockedListTableAdapter.Fill(Sms_BlockedListDataTable dataTable)
   bij MSRI.DesktopAgent.AgentForm.MainForm_Load(Object sender, EventArgs e)
   bij System.Windows.Forms.Form.OnLoad(EventArgs e)
   bij System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   bij System.Windows.Forms.Control.CreateControl()
   bij System.Windows.Forms.Control.WmShowWindow(Message& m)
   bij System.Windows.Forms.Control.WndProc(Message& m)
   bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladen assembly's **************
mscorlib
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
SmsDesktopAgent
    Assembly-versie: 1.1.1.0
    Win32-versie: 1.1.1.0
    CodeBase: file:///C:/Program%20Files%20(x86)/MSR%20India/SMS%20Server/SmsDesktopAgent.exe
----------------------------------------
System.Windows.Forms
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.resources
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_nl_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
Accessibility
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Configuration
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
mscorlib.resources
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
System.Runtime.Remoting
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
MSRI_SMS_Server
    Assembly-versie: 1.1.1.0
    Win32-versie: 1.1.1.0
    CodeBase: file:///C:/Program%20Files%20(x86)/MSR%20India/SMS%20Server/MSRI_SMS_Server.DLL
----------------------------------------
System.Web
    Assembly-versie: 2.0.0.0
    Win32-versie: 2.0.50727.1434 (REDBITS.050727-1400)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
System.Data.SqlServerCe
    Assembly-versie: 9.0.242.0
    Win32-versie: 3.0.5300.0
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Data.SqlServerCe/9.0.242.0__89845dcd8080cc91/System.Data.SqlServerCe.dll
----------------------------------------

************** JIT-foutopsporing **************
Als u JIT-foutopsporing wilt inschakelen, moet in het configuratiebestand voor deze
toepassing of computer (machine.config) de waarde
jitDebugging in het gedeelte system.windows.forms zijn ingesteld.
De toepassing moet ook zijn gecompileerd terwijl foutopsporing
was ingeschakeld.

Bijvoorbeeld:

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

Wanneer JIT-foutopsporing is ingeschakeld, worden onverwerkte uitzonderingen
naar het JIT-foutopsporingsprogramma gestuurd dat op de computer is geregistreerd
en worden niet door dit dialoogvenster verwerkt.

-=-=-=



so when i start the sms project in visual studio and want to run the sample,

i get this error: Error:Please restart the Sms Desktop Agent or refresh the Client List

on this rule: SmsService = new SmsServiceClass("smstest");

i think that i have a wrong version of sql mobile or sql lite.... or anything...
what version should i install?

Coordinator
May 22, 2008 at 9:14 PM
Looks like its not able to find the right SQL file. It would help if you can mail me the directory structure of your installation folder. Please send me this detail on my personal email id. Its hard to post here. I will post the final solution once we figure it out.

Vibhore