Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / April 2007

Tip: Looking for answers? Try searching our database.

Excel VSTO Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Niklas Magnusson - 18 Apr 2007 09:40 GMT
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/

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.