locked
File or assembly or dependenciesd not found in windows mobile6.0 application. RRS feed

  • Question

  • Hello,

    I am working on Windows mobile application.i am having microsoft word 2002 and i am trying to open a word file inside windows mobile application form as

    Microsoft.Office.Interop.Word.Application word = null;
    
                    Microsoft.Office.Interop.Word.Document doc = null;
    
                    word = new Microsoft.Office.Interop.Word.Application();
    
                    object fileName = @"\My Documents\Personal\Transactions.doc";
    
                    object falseValue = false;
    
                    object trueValue = true;
    
                    object missing = Type.Missing;
    
                    word.Visible = true;
    
                  word.Activate();
    
                   doc = word.Documents.Open(ref fileName, ref missing, ref trueValue, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing);
    
                 doc.Activate();
    
    
    But it is raising an exception as

    File or assembly name 'Microsoft.Office.Interop.Word, Version=10.0.4504.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35', or one of its dependencies, was not found.

    Is it because i am using assembly of microsoft word  which is installed in my machine and trying to open an doc file which is located in windows mobile application folder.

    if that is the case how can i solve this exception

    Regards,
    Wednesday, December 16, 2009 7:20 AM

Answers