Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
developer
active.documents
automation
binary.file_format
clipboard.dde
com.add_ins
hosting.controls
internet_other
office.sdks
officedev
officedev.other
outlook.forms
outlook.vba
smarttags
vba
web.components
  
 
date: Tue, 19 Aug 2008 18:17:56 -0600,    group: microsoft.public.office.developer.com.add_ins        back       


weird ACCDDS.DLL error   
Any idea what this means?

The assembly loaded from code base 'file:///C:\Program Files
(x86)\Microsoft Office\Office12\ACCDDS.DLL' failed to load in the
'LoadFrom' binding context of the AppDomain with ID 1. The cause of
the failure was: System.BadImageFormatException: Could not load file
or assembly 'file:///C:\Program Files (x86)\Microsoft
Office\Office12\ACCDDS.DLL' or one of its dependencies. The module was
expected to contain an assembly manifest.

File name: 'file:///C:\Program Files (x86)\Microsoft
Office\Office12\ACCDDS.DLL'

 

=== Pre-bind state information ===

LOG: User = adamm-PC\adamm

LOG: Where-ref bind. Location = C:\Program Files (x86)\Microsoft
Office\Office12\ACCDDS.DLL

LOG: Appbase = file:///C:/Program Files (x86)/Microsoft
Office/Office12/

LOG: Initial PrivatePath = NULL

Calling assembly : (Unknown).

===

LOG: This bind starts in LoadFrom load context.

WRN: Native image will not be probed in LoadFrom context. Native image
will only be probed in default load context, like with
Assembly.Load().

LOG: No application configuration file found.

LOG: Using machine configuration file from
C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.

LOG: Attempting download of new URL file:///C:/Program Files
(x86)/Microsoft Office/Office12/ACCDDS.DLL.

ERR: Failed to complete setup of assembly (hr = 0x80131018). Probing
terminated.



david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
date: Tue, 19 Aug 2008 18:17:56 -0600   author:   David Thielen am

RE: weird ACCDDS.DLL error   
Hello Dave, 

I think this may occur on a 64 bit machine running .net 2.0. ACCDDS 
assemblies have unmanaged code in them, so they always need to be run in 
the 32 bit runtime.  "BadImageFormat" is referring to the format of the 
dll, it means .net tried to load a 32 bit only assembly into the 64 bit 
runtime. I found the following msdn blog article related to this topic: 
http://blogs.msdn.com/joshwil/archive/2005/04/08/406567.aspx. According to 
the article, this BadImageFormatException error may occur in the following 
three scenarios:

1.anycpu.exe -- runs as a 64-bit process, can load anycpu.dll and x64.dll, 
will get BadImageFormatException if it tries to load x86.dll

2.x86.exe -- runs as a 32-bit process, can load anycpu.dll and x86.dll, 
will get BadImageFormatException if it tries to load x64.dll

3.x64.exe -- runs as a 64-bit process, can load anycpu.dll and x64.dll, 
will get BadImageFormatException if it tries to load x86.dll

Hope this helps to troubleshoot the issue on your side. And if you need any 
future help, could you please elaborate a little more about the problem? 
Which kind of project we are working on? And, how do we reference the 
ACCDDS.dll in our project? With more information, I can try to reproduce it 
on my side.


Best regards,
Ji Zhou (v-jzho@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to 
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
where an initial response from the community or a Microsoft Support 
Engineer within 1 business day is acceptable. Please note that each follow 
up response may take approximately 2 business days as the support 
professional working with you may need further investigation to reach the 
most efficient resolution. The offering is not appropriate for situations 
that require urgent, real-time or phone-based interactions or complex 
project analysis and dump analysis issues. Issues of this nature are best 
handled working with a dedicated Microsoft Support Engineer by contacting 
Microsoft Customer Support Services (CSS) at 
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
date: Wed, 20 Aug 2008 06:10:59 GMT   author:   (Ji Zhou [MSFT])

Re: weird ACCDDS.DLL error   
Hi;

Sorry - I should have given more context. This occurs when running a
PowerPoint AddIn under the VS 2005 debugger (must use 2005 because we
have J# code) on Vista 64-bit and Office 2007.

Our AddIn is built as "any CPU" but my understanding is that AddIns
are always called in 32-bit mode from Office.

Is this enough to tell us how to work around it?

thanks - dave


On Wed, 20 Aug 2008 06:10:59 GMT, v-jzho@online.microsoft.com ("Ji
Zhou [MSFT]") wrote:

>Hello Dave, 
>
>I think this may occur on a 64 bit machine running .net 2.0. ACCDDS 
>assemblies have unmanaged code in them, so they always need to be run in 
>the 32 bit runtime.  "BadImageFormat" is referring to the format of the 
>dll, it means .net tried to load a 32 bit only assembly into the 64 bit 
>runtime. I found the following msdn blog article related to this topic: 
>http://blogs.msdn.com/joshwil/archive/2005/04/08/406567.aspx. According to 
>the article, this BadImageFormatException error may occur in the following 
>three scenarios:
>
>1.anycpu.exe -- runs as a 64-bit process, can load anycpu.dll and x64.dll, 
>will get BadImageFormatException if it tries to load x86.dll
>
>2.x86.exe -- runs as a 32-bit process, can load anycpu.dll and x86.dll, 
>will get BadImageFormatException if it tries to load x64.dll
>
>3.x64.exe -- runs as a 64-bit process, can load anycpu.dll and x64.dll, 
>will get BadImageFormatException if it tries to load x86.dll
>
>Hope this helps to troubleshoot the issue on your side. And if you need any 
>future help, could you please elaborate a little more about the problem? 
>Which kind of project we are working on? And, how do we reference the 
>ACCDDS.dll in our project? With more information, I can try to reproduce it 
>on my side.
>
>
>Best regards,
>Ji Zhou (v-jzho@online.microsoft.com, remove 'online.')
>Microsoft Online Community Support
>
>Delighting our customers is our #1 priority. We welcome your comments and 
>suggestions about how we can improve the support we provide to you. Please 
>feel free to let my manager know what you think of the level of service 
>provided. You can send feedback directly to my manager at: 
>msdnmg@microsoft.com.
>
>==================================================
>Get notification to my posts through email? Please refer to 
>http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
>
>Note: The MSDN Managed Newsgroup support offering is for non-urgent issues 
>where an initial response from the community or a Microsoft Support 
>Engineer within 1 business day is acceptable. Please note that each follow 
>up response may take approximately 2 business days as the support 
>professional working with you may need further investigation to reach the 
>most efficient resolution. The offering is not appropriate for situations 
>that require urgent, real-time or phone-based interactions or complex 
>project analysis and dump analysis issues. Issues of this nature are best 
>handled working with a dedicated Microsoft Support Engineer by contacting 
>Microsoft Customer Support Services (CSS) at 
>http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
>==================================================
>This posting is provided "AS IS" with no warranties, and confers no rights.


david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
date: Wed, 20 Aug 2008 08:53:37 -0600   author:   David Thielen am

Re: weird ACCDDS.DLL error   
Hello Dave, 

Thanks for the information. After reviewing your first post, I found the 
log mentions that "Native image will not be probed in LoadFrom context". 
So, I try the following codes on my side:

public void OnConnection(object application, Extensibility.ext_ConnectMode 
connectMode, object addInInst, ref System.Array custom)
{
   try
   {
      Assembly.LoadFrom(@"C:\Program Files (x86)\Microsoft 
Office\Office12\ACCDDS.DLL");
      applicationObject = application as PowerPoint.Application;
      addInInstance = addInInst;
   }
   catch (Exception ex)
   {
      Debug.Print(ex.Message);
      Debug.Print(ex.StackTrace);
   }
}

It pops up the exactly same exception message as you post: 
"System.BadImageFormatException: Could not load file or assembly 
'file:///C:\Program Files (x86)\Microsoft Office\Office12\ACCDDS.DLL' or 
one of its dependencies. The module was expected to contain an assembly 
manifest.". I think this issue may result from calling Assembly.LoadFrom() 
to load a native dll. And, the problematical codes may exist in our Add-In 
or one of its referenced assembly. Could you please help to check the 
ex.StackTrace's content which tells where the exception comes from.

And one more thing to mention, could you please tell me what's the 
objective to load ACCDDS.dll and how we are loading it now? Native dlls are 
supposed to be loaded via native api LoadLibrary instead of the 
Assembly.LoadFrom() method.


Best regards,
Ji Zhou (v-jzho@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
date: Thu, 21 Aug 2008 11:28:28 GMT   author:   (Ji Zhou [MSFT])

Re: weird ACCDDS.DLL error   
Hello Dave,

I am writing to check the status of the issue on your side. Could you 
please let me know if the suggestion works for you or not? If you have any 
questions or concerns, please feel free to let me know. I am more than 
happy to be of assistance. 

Have a nice day!

Best regards, 
Ji Zhou  (v-jzho@online.microsoft.com, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and 
suggestions about how we can improve the support we provide to you. Please 
feel free to let my manager know what you think of the level of service 
provided. You can send feedback directly to my manager at: 
msdnmg@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
date: Thu, 28 Aug 2008 05:05:02 GMT   author:   (Ji Zhou [MSFT])

Re: weird ACCDDS.DLL error   
We're still trying to figure this out here. I'll let you know once we
make some progress.

thanks - dave


On Thu, 28 Aug 2008 05:05:02 GMT, v-jzho@online.microsoft.com ("Ji
Zhou [MSFT]") wrote:

>Hello Dave,
>
>I am writing to check the status of the issue on your side. Could you 
>please let me know if the suggestion works for you or not? If you have any 
>questions or concerns, please feel free to let me know. I am more than 
>happy to be of assistance. 
>
>Have a nice day!
>
>Best regards, 
>Ji Zhou  (v-jzho@online.microsoft.com, remove 'online.')
>Microsoft Online Community Support
>
>=================================================
>Delighting our customers is our #1 priority. We welcome your comments and 
>suggestions about how we can improve the support we provide to you. Please 
>feel free to let my manager know what you think of the level of service 
>provided. You can send feedback directly to my manager at: 
>msdnmg@microsoft.com.
>
>This posting is provided "AS IS" with no warranties, and confers no rights.
>=================================================
>


david@at-at-at@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
date: Thu, 28 Aug 2008 11:09:56 -0600   author:   David Thielen am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us