473,508 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.
Jul 21 '05 #1
0 2997

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
878
by: Harry N | last post by:
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...
0
1927
by: karunakar | last post by:
Hi All I am not able to read the class name I want read the particular class name string path = System.Configuration.ConfigurationSettings.AppSettings; string className = path + ".User";...
1
2780
by: Zachary Hartnett | last post by:
I was trying to write a routine this morning that would open a given assembly, walk the inheritance tree of classes in the assembly, and provide a list of classes in the assembly that inherit from...
3
2153
by: markoueis | last post by:
Our .NET application, let's call it A, needs to load an assembly of another .NET application, let's call it B. Preferably I would like to early bind and early load the B assembly. However, in a...
3
2068
by: Karl Hungus | last post by:
A cs file I compiled into an assembly dll is in my bin directory. In the cs file I have a using statement for System.Xml I compiled it using this command: csc /out:XmlContent.dll /t:library...
1
7105
by: Scott Hamlin | last post by:
I am receiving an error while trying to use Crystal Reports with .NET, which I have pasted below. The main problem is this message: File or assembly name CrystalDecisions.CrystalReports.Engine,...
1
5038
by: Olav Tollefsen | last post by:
I get the included error message when trying to run my ASP.NET application under Windows Server 2003 (with all updates installed). How can I troubleshoot this? Olav File or assembly name...
3
1812
by: Web Team | last post by:
Hi All, I recently moved our assembly which stores our 'common' code into the GAC. I then moved all copies of this assembly out of the /bin folders, restarted IIS. I get the error below. This...
7
10936
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed...
4
4444
by: =?Utf-8?B?SmFu?= | last post by:
I have a .NET 2.0 application divided in two assemblies; the exe and a dll. The application generates a plugin-dll which is then loaded in a separate AppDomain (along with a second instance of my...
0
7226
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5631
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3186
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1561
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
767
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.