Solved

Com Addin not getting enabled when i migrate the code from .net framework 3.5 to .net framework 4.5

Posted on 2015-01-29
12
132 Views
Last Modified: 2015-05-08
Hello,

I migrated my C# code from .net 3.5 to .net 4.5. Now i am unable to re enable the com add-in in the excel. Please help if i am missing any steps.

Regards,
Siva prasanth.
0
Comment
Question by:pkoivula
  • 9
  • 3
12 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40579618
what errors are being shown on the screen and in the event logs
0
 

Author Comment

by:pkoivula
ID: 40596791
I've requested that this question be deleted for the following reason:

I didn't receive appropriate response even after posting comments the expert answer.
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40596792
YOU  didn't answer my questions
0
 

Author Comment

by:pkoivula
ID: 40597400
David,
I earlier answered the question and deleted as i didn't get any updates.

Here is the error:

       Here is the error

    *** Assembly Binder Log Entry  (2/3/2015 @ 2:30:54 PM) ***

    The operation failed.
    Bind result: hr = 0x80070002. The system cannot find the file specified.

    Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
    Running under executable  C:\Program Files\Microsoft Office\Office12\EXCEL.EXE
    --- A detailed error log follows.

    === Pre-bind state information ===
    LOG: User = Domain\Username
    LOG: DisplayName = MyAssembly.resources, Version=2.0.73.99, Culture=en, PublicKeyToken=a68d408e0b55e55b
     (Fully-specified)
    LOG: Appbase = file:///C:/Program Files/MyCompany/MyProduct/
    LOG: Initial PrivatePath = NULL
    LOG: Dynamic Base = NULL
    LOG: Cache Base = NULL
    LOG: AppName = NULL
    Calling assembly : MyAssembly, Version=2.0.73.99, Culture=neutral, PublicKeyToken=a68d408e0b55e55b.
    ===
    LOG: This bind starts in default load context.
    LOG: No application configuration file found.
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Post-policy reference: MyAssembly.resources, Version=2.0.73.99, Culture=en, PublicKeyToken=a68d408e0b55e55b
    LOG: The same bind was seen before, and was failed with hr = 0x80070002.
    ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).
0
 

Author Comment

by:pkoivula
ID: 40632462
Any updates..
0
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40632499
   LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Post-policy reference: MyAssembly.resources, Version=2.0.73.99, Culture=en, PublicKeyToken=a68d408e0b55e55b
Still using .net 3.5

Bind result: hr = 0x80070002. The system cannot find the file specified. Which file is it looking for..

can you run this in a debugger or use procmon and exclude other processes to see what file is failing?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:pkoivula
ID: 40632765
David,

I am seeing several results  for excel.exe . either success or name not found.  I couldnt find error.
0
 

Author Comment

by:pkoivula
ID: 40695353
Any updates on this question ?
0
 

Author Comment

by:pkoivula
ID: 40695695
David Johnson , do this statement helps us for further analysis.

Unhandled exception at 0x0F80B548 (********ShimProject.dll) in EXCEL.EXE: 0xC0000005: Access violation reading location 0x00000000.
0
 

Author Comment

by:pkoivula
ID: 40726771
Got the sol;ution to resolve Unhandled exception at 0x0F80B548 (********ShimProject.dll) in EXCEL.EXE: 0xC0000005: Access violation reading location 0x00000000.

I updated msaddndr.dll version to 6.1.98.16.
0
 

Accepted Solution

by:
pkoivula earned 0 total points
ID: 40757785
Finally i figured out and got the issue resolved. here are the steps i performed.

1. updated msaddndr.dll version to 6.1.98.16, this dll was used in shim project.

2.Created a config file with name excel.exe.config and copied the file in the  folder of excel.exe location (Example for office 2007 it is C:\Program Files\Microsoft Office\Office12). The content of the config file is :

<?xml version="1.0"?>
   <configuration>
    <startup useLegacyV2RuntimeActivationPolicy="true">
     <requiredRuntime version="v4.0.30319" />
  <supportedRuntime version="v4.0.30319" />
    </startup>
</configuration>

Performing above changes resolved the issue.
0
 

Author Closing Comment

by:pkoivula
ID: 40766391
This can be graded as A because it is working fine and i tested the changes on excel 2007 and excel 2010.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now