2 Comments

  1. This did not resolved things for me in a recent version of .Net. However, removing ‘Class’ from the name did. See: https://stackoverflow.com/questions/2483659/interop-type-cannot-be-embedded

    “In most cases, this error is the result of code which tries to instantiate a COM object. For example, here is a piece of code starting up Excel:

    Excel.ApplicationClass xlapp = new Excel.ApplicationClass();
    Typically, in .NET 4 you just need to remove the ‘Class’ suffix and compile the code:

    Excel.Application xlapp = new Excel.Application();”

Comments are closed, but trackbacks and pingbacks are open.