I have the error INTERFACE NOT REGISTERED (Exception From HRESULT:0x80040155) while reading word file from server and it works fine on my local system.....please help
object missingType = Type.Missing;
object readOnly = true;
object isVisible = false;
object documentFormat = 8;
object htmlFilePath = Server.MapPath("~/Uploads/Resume/Temp/") + Resume + ".htm";
string directoryPath = Server.MapPath("~/Uploads/Resume/Temp/") + Resume + "_files";
object fileName = Server.MapPath("~/Uploads/Resume/" + Resume);
ApplicationClass applicationclass = new ApplicationClass();
applicationclass.Documents.Open(ref fileName,
ref readOnly,ref missingType, ref missingType, ref missingType,ref missingType, ref missingType, ref missingType,ref missingType, ref missingType, ref isVisible,ref missingType, ref missingType, ref missingType,ref missingType, ref missingType);
applicationclass.Visible = false;
Document document = applicationclass.ActiveDocument;
document.SaveAs(ref htmlFilePath, ref documentFormat, ref missingType,
ref missingType, ref missingType, ref missingType,
ref missingType, ref missingType, ref missingType,
ref missingType, ref missingType, ref missingType,
ref missingType, ref missingType, ref missingType,
ref missingType);
document.Close(ref missingType, ref missingType, ref missingType);
iframe.Attributes.Add("src", "../Uploads/Resume/Temp/" + Resume + ".htm");