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 / March 2007

Tip: Looking for answers? Try searching our database.

Can't deploy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
HockeyFan - 20 Mar 2007 18:31 GMT
I have an Excel project in C# that was developed in Visual Studio
2005.  It works great.  Development was great.  Deployment has been a
bitch, to say the least.

I have tried publishing the Release to my local webserver and then hit
the site with a web browser and get the xls.  The xls comes up fine,
but a message comes up saying that
"The customization assembly could not be fond or could not be
loaded."

So then I tried created a setup program and deployment to C:\Program
Files\whatever\

This runs on my machine, but doesn't seem to run on anyone else's when
installed.

I've gone in and configured Framework 2.0 to allow this directory
fulltrust.

How do the xls know where the assembly is?  There's an application
manifest and an assembly manifest.  I've looked at both and cannot
tell why the user can view the spreadsheet, but doesn't get the
assembly to load or run.
Bryan Phillips - 21 Mar 2007 02:03 GMT
You may want to GAC your assembly on the users' machines.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> I have an Excel project in C# that was developed in Visual Studio
> 2005.  It works great.  Development was great.  Deployment has been a
[quoted text clipped - 19 lines]
> tell why the user can view the spreadsheet, but doesn't get the
> assembly to load or run.
HockeyFan - 21 Mar 2007 15:47 GMT
> You may want to GAC your assembly on the users' machines.
>
> --
> Bryan Phillips
> MCSD, MCDBA, MCSE
> Blog:  http://bphillips76.spaces.live.com

And this will make it so that the xls file will invoke the assembly?
Right now, I'm not getting any kind of error.  It's just not
invoking.  I would think that if it were an issue that the GAC would
solve, that I'd be getting an error.  In this case, Excel acts as if
it isn't even aware that the assembly exists.
Bob Eaton - 23 Mar 2007 03:54 GMT
Isn't "The customization assembly could not be fond or could not be loaded."
an error?

I have no idea whether this is your problem (not knowing much about VSTO),
but the way .Net normally works is that the assembly must be a) in the same
folder as the exe calling it (i.e. C:\PF\MO\Office11...), b) the Global
assembly cache (where it can find it easily enough), or c) you must register
the assembly with "Regasm /codebase" so that it adds the assembly location
to the registry.

Bob

>> You may want to GAC your assembly on the users' machines.
>>
[quoted text clipped - 8 lines]
> solve, that I'd be getting an error.  In this case, Excel acts as if
> it isn't even aware that the assembly exists.

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.