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. General Programming
  3. C#
  4. exe giving exception while running on xp

exe giving exception while running on xp

Scheduled Pinned Locked Moved C#
asp-netcomhelpannouncement
11 Posts 6 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.
  • S Offline
    S Offline
    situ21
    wrote on last edited by
    #1

    Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used

    using Microsoft.Office.Core;
    using Excel = Microsoft.Office.Interop.Excel;

    as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance

    OriginalGriffO L K R G 5 Replies Last reply
    0
    • S situ21

      Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used

      using Microsoft.Office.Core;
      using Excel = Microsoft.Office.Interop.Excel;

      as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Do you have Excel installed on the XP machine? Is it the right version, or higher? If not, it won't work...

      Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      S 1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Do you have Excel installed on the XP machine? Is it the right version, or higher? If not, it won't work...

        Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

        S Offline
        S Offline
        situ21
        wrote on last edited by
        #3

        yes exel is intalled

        1 Reply Last reply
        0
        • S situ21

          Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used

          using Microsoft.Office.Core;
          using Excel = Microsoft.Office.Interop.Excel;

          as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Did you install the correct .NET framework? Did you install the correct Interop DLL's[^]?

          I are Troll :suss:

          S 1 Reply Last reply
          0
          • L Lost User

            Did you install the correct .NET framework? Did you install the correct Interop DLL's[^]?

            I are Troll :suss:

            S Offline
            S Offline
            situ21
            wrote on last edited by
            #5

            how i install interop

            L 1 Reply Last reply
            0
            • S situ21

              how i install interop

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              satendrasitu wrote:

              how i install interop

              As described in the link that I posted, that's the reason why it's included :) Do read the note at the bottom;

              MSDN states;

              PIAs are version specific, so you should use the same version of the PIAs as the application version. For example, if you want to migrate your Microsoft Office XP managed code solution to Microsoft Office 2003, you should recompile the Office XP managed code solution with Office 2003 PIAs. You should also have two different setup packages—one for Office XP and another for Office 2003—if you intend for the same solution to work in both Office XP and Office 2003. Deployment of PIAs for Office XP is very different from that for Office 2003. For further information about these differences, see the ReadMe file included in the Office XP PIAs download[^].

              I are Troll :suss:

              S 1 Reply Last reply
              0
              • L Lost User

                satendrasitu wrote:

                how i install interop

                As described in the link that I posted, that's the reason why it's included :) Do read the note at the bottom;

                MSDN states;

                PIAs are version specific, so you should use the same version of the PIAs as the application version. For example, if you want to migrate your Microsoft Office XP managed code solution to Microsoft Office 2003, you should recompile the Office XP managed code solution with Office 2003 PIAs. You should also have two different setup packages—one for Office XP and another for Office 2003—if you intend for the same solution to work in both Office XP and Office 2003. Deployment of PIAs for Office XP is very different from that for Office 2003. For further information about these differences, see the ReadMe file included in the Office XP PIAs download[^].

                I are Troll :suss:

                S Offline
                S Offline
                situ21
                wrote on last edited by
                #7

                thanks for this, but how I include this with my exe , because it is not run in client mechine

                modified on Friday, April 1, 2011 5:46 AM

                L 1 Reply Last reply
                0
                • S situ21

                  thanks for this, but how I include this with my exe , because it is not run in client mechine

                  modified on Friday, April 1, 2011 5:46 AM

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  satendrasitu wrote:

                  thanks for this, but how I include this with my exe

                  Using a set-up application that installs all required components. Or, you'll have to copy them manually. You can't link them into the executable itself. ..wel, you could add it as an embeddable resource, unpack it and load it on demand, but that would probably cost more than the trouble would be worth.

                  I are Troll :suss:

                  1 Reply Last reply
                  0
                  • S situ21

                    Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used

                    using Microsoft.Office.Core;
                    using Excel = Microsoft.Office.Interop.Excel;

                    as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance

                    K Offline
                    K Offline
                    Keith Barrow
                    wrote on last edited by
                    #9

                    Change your username as soon as possible, otherwise you'll wind up with endless adverts for hair-loss remedies, herbal viagra and pics of nudie ladies and/or gents in your inbox. Unless you want that of course :-).

                    Sort of a cross between Lawrence of Arabia and Dilbert.[^]
                    -Or-
                    A Dead ringer for Kate Winslett[^]

                    1 Reply Last reply
                    0
                    • S situ21

                      Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used

                      using Microsoft.Office.Core;
                      using Excel = Microsoft.Office.Interop.Excel;

                      as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance

                      R Offline
                      R Offline
                      RaviRanjanKr
                      wrote on last edited by
                      #10

                      Actually this type of problem occur due to .net framework missing on the Client System. to run .net application it required its perquisites. It runs on higher version of XP because .net framework resides implicitly which is not in XP. so be confirm about it or give us more details what exception is generating while running your application on XP.

                      1 Reply Last reply
                      0
                      • S situ21

                        Hi all, I have made an application in which i need to save my data in excel sheet, for doing this i have used

                        using Microsoft.Office.Core;
                        using Excel = Microsoft.Office.Interop.Excel;

                        as namespace and its functions.. My problem is my exe run's fine on windows vista and higher version but it is not running on windows xp. When i run it on xp it gives exception. I am not getting what i am missing in my application. Thanks in advance

                        G Offline
                        G Offline
                        Ganesh Kumar Kaki
                        wrote on last edited by
                        #11

                        which exception it is throwing?

                        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