Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Read/Amend of MS words in C# (ASP.NET)

Read/Amend of MS words in C# (ASP.NET)

Scheduled Pinned Locked Moved ASP.NET
csharpcomhelpasp-netsysadmin
12 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HatakeKaKaShi
    wrote on last edited by
    #1

    Hi guys i am using Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application(); to read my MS word document. When i run the program in my own pc. The application work perfectly. Howevr when i move up to server or access the programme from another pc i recieve an error msg below : System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. i have try google it but still can't seem to work. Any idea or solution from u guys will help Thanks

    KaKaShi HaTaKe

    V A C 3 Replies Last reply
    0
    • H HatakeKaKaShi

      Hi guys i am using Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application(); to read my MS word document. When i run the program in my own pc. The application work perfectly. Howevr when i move up to server or access the programme from another pc i recieve an error msg below : System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. i have try google it but still can't seem to work. Any idea or solution from u guys will help Thanks

      KaKaShi HaTaKe

      V Offline
      V Offline
      Viral Upadhyay
      wrote on last edited by
      #2

      Its look like permission related problem, Check your folder and file's permission.

      Viral My Site Tips & Tracks

      H 1 Reply Last reply
      0
      • V Viral Upadhyay

        Its look like permission related problem, Check your folder and file's permission.

        Viral My Site Tips & Tracks

        H Offline
        H Offline
        HatakeKaKaShi
        wrote on last edited by
        #3

        Yup i checked. No issue.

        KaKaShi HaTaKe

        1 Reply Last reply
        0
        • H HatakeKaKaShi

          Hi guys i am using Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application(); to read my MS word document. When i run the program in my own pc. The application work perfectly. Howevr when i move up to server or access the programme from another pc i recieve an error msg below : System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. i have try google it but still can't seem to work. Any idea or solution from u guys will help Thanks

          KaKaShi HaTaKe

          A Offline
          A Offline
          Abhishek Sur
          wrote on last edited by
          #4

          Interop services requires component to be installed in the machine where it is calling. Does your server have Microsoft office installed ?? Also are you working on asp.net and calling Interop.Word?

          Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


          My Latest Articles-->** Microsoft Bing MAP using Javascript
          CLR objects in SQL Server 2005
          Uncommon C# Keywords
          /xml>

          H 1 Reply Last reply
          0
          • A Abhishek Sur

            Interop services requires component to be installed in the machine where it is calling. Does your server have Microsoft office installed ?? Also are you working on asp.net and calling Interop.Word?

            Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


            My Latest Articles-->** Microsoft Bing MAP using Javascript
            CLR objects in SQL Server 2005
            Uncommon C# Keywords
            /xml>

            H Offline
            H Offline
            HatakeKaKaShi
            wrote on last edited by
            #5

            Yap i have yes i am working on ASP.NET and calling interop.word

            KaKaShi HaTaKe

            1 Reply Last reply
            0
            • H HatakeKaKaShi

              Hi guys i am using Microsoft.Office.Interop.Word.Application wordApp = new Microsoft.Office.Interop.Word.Application(); to read my MS word document. When i run the program in my own pc. The application work perfectly. Howevr when i move up to server or access the programme from another pc i recieve an error msg below : System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005. i have try google it but still can't seem to work. Any idea or solution from u guys will help Thanks

              KaKaShi HaTaKe

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              As someone said, this is a permissions error. And, it plainly is, it says so in the exception. I suggest you read my article on how to use google. If you followed the advice in that article and googled the error, you'd have found this[^].

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              H 1 Reply Last reply
              0
              • C Christian Graus

                As someone said, this is a permissions error. And, it plainly is, it says so in the exception. I suggest you read my article on how to use google. If you followed the advice in that article and googled the error, you'd have found this[^].

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                H Offline
                H Offline
                HatakeKaKaShi
                wrote on last edited by
                #7

                yup i gotten this doc and followed it but it still didn't work. I can run from my pc but i can't run from other computer which access my webpage in my own pc. I already set all the permission for user still have the same issue.

                KaKaShi HaTaKe

                C 1 Reply Last reply
                0
                • H HatakeKaKaShi

                  yup i gotten this doc and followed it but it still didn't work. I can run from my pc but i can't run from other computer which access my webpage in my own pc. I already set all the permission for user still have the same issue.

                  KaKaShi HaTaKe

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #8

                  I'm sorry, but you're wrong. The exception says it's a permissions issue, so you've plainly not fixed it. You realise the ASP.NET process runs under the ASPNET account, not the one you logged in as ?

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  H 1 Reply Last reply
                  0
                  • C Christian Graus

                    I'm sorry, but you're wrong. The exception says it's a permissions issue, so you've plainly not fixed it. You realise the ASP.NET process runs under the ASPNET account, not the one you logged in as ?

                    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                    H Offline
                    H Offline
                    HatakeKaKaShi
                    wrote on last edited by
                    #9

                    Yup that i have set it too. ASPNET acc but problem still same

                    KaKaShi HaTaKe

                    H C 2 Replies Last reply
                    0
                    • H HatakeKaKaShi

                      Yup that i have set it too. ASPNET acc but problem still same

                      KaKaShi HaTaKe

                      H Offline
                      H Offline
                      HatakeKaKaShi
                      wrote on last edited by
                      #10

                      sorry bro now is this error System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005

                      KaKaShi HaTaKe

                      1 Reply Last reply
                      0
                      • H HatakeKaKaShi

                        Yup that i have set it too. ASPNET acc but problem still same

                        KaKaShi HaTaKe

                        C Offline
                        C Offline
                        Christian Graus
                        wrote on last edited by
                        #11

                        Well, according to google, everyone here, and the text of your error message, you have a permissions issue.

                        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                        H 1 Reply Last reply
                        0
                        • C Christian Graus

                          Well, according to google, everyone here, and the text of your error message, you have a permissions issue.

                          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                          H Offline
                          H Offline
                          HatakeKaKaShi
                          wrote on last edited by
                          #12

                          huh strange but i already did what ever u guys have mentioned. just can't seem to solve the issue. i follew exactly the ink u provided me

                          KaKaShi HaTaKe

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups