ClickOnce, app-install from the web fails on a clean XP Prof. SP3...


Author
Message
Ralph Rutschmann
Ralph Rutschmann
StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)StrataFrame User (131 reputation)
Group: Forum Members
Posts: 69, Visits: 1.3K
Hi,

surely I'm doing something really stupid...

I did a few tests to install my App after deploying through ClickOnce to a web page:

http://www.systemhaus-alber.de/waupdate/brainspark/

It always worked as expected. Untill I tried to install the app from the web directly to a clean machine with XP Prof. SP3. It installs the .NET-Framework 2.0 and SQLExpress, but then it fails to install my app, telling me that there first have to be the assembly 'Microsoft.SqlServer.Dmf Version 10.0.0.0' installed into the GAC.

After looking at the GAC, all versions there are 9.0.242.0 on a clean XP. On a clean Vista Ultimate it is all at version 10.0.0.0, but I tried not to install under Vista, because I want my app to run on XP also.

So I looked at my development machine, witch is XP Prof. SP3, and there are both versions in the GAC. Therefore no error while testing the install of my app, I think. Don't know from where I got the version 10.0.0.0 ones on my XP machine, what I could have installed to have them there...

At the source code of SF I found no suspect references to such an assembly. So I decided to install VS and SF at the clean machine with XP Prof. SP3. Now I have an error message as soon as I try to change the connection string through the appropriate SF-dialog, which I call from a menu_click() like that:

//-- Change the connection string
if (ConnectionManager.ShowAvailableConnectionStrings())
{     //-- Set the connection string
      ConnectionManager.SetConnections();}

The the called ConnectionManager is the original and untouched SF-ConnectionManager.

The error message is now:

-----------------------------------------------------------------

FileNotFoundException
  Die Datei oder Assembly Microsoft.SqlServer.Smo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
FileNotFoundException
  Die Datei oder Assembly Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91 oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.

Source     : MicroFour StrataFrame UI

Stack Trace:
   bei MicroFour.StrataFrame.DBEngine.SQL.SQLServerSchema..ctor()
   bei MicroFour.StrataFrame.Data.SQLServerConnectionPage..ctor()
   bei MicroFour.StrataFrame.Data.ConnectionWizard.LoadRequiredPages()
   bei MicroFour.StrataFrame.Data.ConnectionWizard..ctor(RequiredDataSourceCollection RequiredItems, Int32 ApplicationPK, Boolean PersistData)
   bei MicroFour.StrataFrame.Data.ConnectionWizard..ctor(RequiredDataSourceCollection RequiredItems, Int32 ApplicationPK)
   bei MicroFour.StrataFrame.Data.ConnectionManager.ShowConnectionWizard(Int32 ApplicationPK)
   bei MicroFour.StrataFrame.Data.ConnectionManager.ShowConnectionWizard()
   bei MicroFour.StrataFrame.Data.DBEShowApplicationConnectionStrings.cmdAdd_Click(Object sender, EventArgs e)
   bei System.Windows.Forms.Control.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
   bei System.Windows.Forms.Button.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   bei System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

-----------------------------------------------------------------

Oh yes, on the clean machine there are only assemblies with the version 9.0.242.0 and not 10.0.0.0. On my development machine with both versions in the GAC it works, but this is not what I want, because some of my customers may not have both versions on there machines.

The references at the SF-SourceCode do not point to any 10.0.0.0 version, so recompiling and 'AfterBuild'ing (running the AfterBuild.bat), looking hard to secure all assemblies on the machine are at the same level in every subdirectory and the GAC did not help.

Any hint where I could look next?

TIA, Ralph

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search