'Assembly could not be found/could not be loaded' Error

G

Guest

I am trying to implement a WORD application with Visual Studio Office Tools
and C#.
The application works with a WORD template installed in a server share, and
creates
WORD documents by filling in bookmarks from data on an XML file produced by a
client-resident Windows app. The error I am getting is

"The assembly <assemblyname> could not be found at <serversharelocation> or
could not be loaded."

I have searched MSDN and the web extensively, and, so far, have not come up
with
a solution. The things I have tried so far are:

1 - Make sure the namespace and class name in the
[assembly: System.ComponentModel.DescriptionAttribute ...] attribute agree
with the
actual namespace and class name in the ThisDocument.cs file.

2 - Change the project's (and thus the template's) assembly link from
relative to
absolute, and ensure that it agrees with the actual location on the server.

3 - Double check the _AssemblyName0 and _AssemblyLocation0 properties in the
template to make sure they are set properly.

4 - Using caspol on the client machine, grant FullTrust permission, at the
user level,
to the folder and the assembly.

5 - Make sure msosec.dll is in the GAC.

6 - Using caspol on the client machine, establish FullTrust permission for
msosec.dll.

I'm out of ideas. I've done all of the above and still get the error.

Has anyone else "out there" run across this problem and solved it? Does
anyone have
any other ideas of things to try?

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top