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
146 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 3
12 Comments
 
LVL 80

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 80

Expert Comment

by:David Johnson, CD, MVP
ID: 40596792
YOU  didn't answer my questions
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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 80

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
 

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

749 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