?
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
Medium Priority
?
151 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 82

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 82

Expert Comment

by:David Johnson, CD, MVP
ID: 40596792
YOU  didn't answer my questions
0
ATEN's HDBaseT Presentation at InfoComm 2017

Hear ATEN Product Manager YT Liang review HDBaseT technology, highlighting ATEN’s latest solutions as they relate to real-world applications during her presentation at the HDBaseT booth at InfoComm 2017.

 

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 82

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

In this article I will provide some simple productivity hacks that will help you use Google to specifically show results from any web site (Experts-Exchange.com in my example), with minimal effort in Chrome and Firefox. I've seen a common theme a…
Lately there has been a variety of news related to U.S. employment.  Stories about worker productivity, automobile and airline unions, low employment and foreign laborers have frequented the news.  Each story has good and bad attributes we might arg…
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
Suggested Courses

762 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