.NET

Reply
Distinguished Contributor
SRSDS
Posts: 243
Registered: ‎04-15-2011
Message 1 of 2 (773 Views)
Accepted Solution

The module was expected to contain an assembly manifest.

773 Views, 1 Replies
07-25-2012 07:34 AM

Hi,

Can anyone explain this error when trying to NETLOAD a compiled dll. It's on a Windows 7 machine running 2009.

 

 

Cannot load assembly. Error details: System.BadImageFormatException: Could not

load file or assembly 'file:///C:\Program Files\Profile\Profile .NET3.0.dll' or

one of its dependencies. The module was expected to contain an assembly

manifest.

File name: 'file:///C:\Program Files\Profile\Profile .NET3.0.dll'

  at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase,

Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark,

Boolean throwOnFileNotFound, Boolean forIntrospection)

   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,

Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

   at System.Reflection.Assembly.LoadFrom(String assemblyFile)

   at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)

   at loadmgd()

WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value

[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure

logging.

To turn this feature off, remove the registry value

[HKLM\Software\Microsoft\Fusion!EnableLog].

Distinguished Contributor
SRSDS
Posts: 243
Registered: ‎04-15-2011
Message 2 of 2 (757 Views)

Re: The module was expected to contain an assembly manifest.

07-26-2012 02:07 AM in reply to: SRSDS

I'm not sure which of these fixed this but..

 

There were a few reference dll files that I failed to bundle in with the project. Most likely the problem.

 

I also cleaned the project which was one suggestion I found. Build>Clean

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community