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

G

Guest

I am trying to implement a WORD application developed with Visual Studio
Office Tools and C#. The application resides on a server and is invoked from
another Windows application that resides on client boxes. The Windows app
supplies bookmark data to a WORD template via an XML file to generate a WORD
document. I get the error message:

The assembly <assembly name> could not be found at <location> or could not
be loaded.

I have done a fairly extensive search in MSDN and over the internet and have
tried all of the following suggestions to no avail:

1 - Change from a relative to an abolute assembly link

2 - Make sure the _AssemblyName0 and _AssemblyLocation0 properties in the
template agree with the actual DLL name and server directory location

3 - Make sure the namespace and class name are correct in the
[assembly:System.ComponentModel.DescriptionAttribute ...] attribute in the
ThisDocument.cs file

4 - Make sure msosec.dll is in the GAC

5 - Establish FullTrust permission for msosec within the proper server share
location - at the machine level (using caspol)

6 - Grant folder and assembly FullTrust permission for the proper server
folder and the proper application DLL - at the user level (using caspol)

I don't know what else to try. Does anyone have any ideas?

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