I have a very strange problem with a Excel VSTO Document Application.
I´m using VS2005 (No Service Pack), .NET FW v2.0.50727, Office 2003 SP2,
Win XP SP2
I've created a very simple VSTO Document application and published it. The
only code in the project is this:
private void ThisWorkbook_Startup(object sender, System.EventArgs e)
{
this.SaveAs(@"c:\Temp\ExcelTest", missing, missing, missing, missing,
missing, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlNoChange,
missing, missing, missing, missing, missing);
}
The problem is that when user A is logged on and runs the template the
document gets saved but the Runtime Storage Control is not copied to the
document. so when i open the .xls document i get an error that says that the
Assembly manifest could not be found. If i log on as another user it works
just fine.
Roaming Profiles is in use and i suspect the problem lies in the profile in
some way, But what can cause the problem ? We must now because now and then
a profile starts behaving like this and we need to create a new profile for
that particular user.
Anyone have a clue ?
/Niklas
XL-Dennis - 22 Apr 2007 08:38 GMT
Hi Niklas,
VSTO works as expected (should work) when installed under the HKCU section
of the Windows Registry. Any installation targeting 'All users' will be
unreliable and unstable.
---------------
With kind regards,
Dennis
Weekly Blog .NET & Excel: http://xldennis.wordpress.com/
My English site: http://www.excelkb.com/default.aspx
My Swedish site: http://www.xldennis.com/