Community discussion forum

ERROR in referencing..

Tags: asp.net India
  • 3 years ago

    Hi developers!!

              I'm working in a project where i need to make a word document from asp.net 2.0

    i made the reference for the COM of Word10.0 object library.. but when i tried to instantiate for that using the code

    Word.ApplicationClass oWordApp = new Word.ApplicationClass();

    it gives the ERROR as below..

    System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. at _Default.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\a\Default.aspx.cs:line 28

    Plz do help me...

    With Thanks.,

    R.Chezhian

     

  • 2 years ago

    Hi Chez

    Click here to solve your problem
    For more information
    click here

    Regards
    DoctorMahdi

  • 2 years ago

    N.B This error occur when you try to create ms office documents in unauthorized way using the asp.net, so the solution will be the same
    the first link I gave you is for ms excel and it works well with ms word
    the second link explain step by step how you can create ms word through asp.net but you will face the same problem if you don't click the first link and solve it

    Regards
    DoctorMahdi

  • 8 months ago
    try this line in web.config in This will solve your problem. Regards, Altaf Hussain

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback