error in generating .cs file from aximp.exe

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • madushan
    New Member
    • Feb 2007
    • 15

    error in generating .cs file from aximp.exe

    hi all ,
    I try to generate .cs file from AxInterop.SHDoc Vw.dll by using the bellow command

    C:\Documents and Settings\malik\ Desktop\Debug>a ximp out:AxInterop.S HDocVw.dll /source

    but then bellow error is given
    error:Unhandled Exception: System.NotSuppo rtedException: The given path's format is not supported.
    at System.Security .Util.StringExp ressionSet.Cano nicalizePath(St ring path, Boolean needFullPath)
    at System.Security .Util.StringExp ressionSet.AddE xpressions(Stri ng[] str, Boolean checkForDuplica tes, Boolean needFullPath)
    at System.Security .Permissions.Fi leIOPermission. AddPathList(Fil eIOPermissionA
    ccess access, String[] pathListOrig, Boolean checkForDuplica tes, Boolean needFullPath, Boolean copyPathList)
    at System.Security .Permissions.Fi leIOPermission. .ctor(FileIOPer missionAccess
    access, String[] pathList, Boolean checkForDuplica tes, Boolean needFullPath)
    at System.IO.FileI nfo..ctor(Strin g fileName)
    at System.Tools.Ax Imp.ParseArgume nts(String[] aArgs, Options& Options, Int32&
    ReturnCode)
    at System.Tools.Ax Imp.Main(String[] args)

    I am new to this
    if I have done any mistake point me that.
    or
    if there another way please let me know

    any kind of help is highly appriciated

    madushan
  • madushan
    New Member
    • Feb 2007
    • 15

    #2
    Originally posted by madushan
    hi all ,
    I try to generate .cs file from AxInterop.SHDoc Vw.dll by using the bellow command

    C:\Documents and Settings\malik\ Desktop\Debug>a ximp out:AxInterop.S HDocVw.dll /source

    but then bellow error is given
    error:Unhandled Exception: System.NotSuppo rtedException: The given path's format is not supported.
    at System.Security .Util.StringExp ressionSet.Cano nicalizePath(St ring path, Boolean needFullPath)
    at System.Security .Util.StringExp ressionSet.AddE xpressions(Stri ng[] str, Boolean checkForDuplica tes, Boolean needFullPath)
    at System.Security .Permissions.Fi leIOPermission. AddPathList(Fil eIOPermissionA
    ccess access, String[] pathListOrig, Boolean checkForDuplica tes, Boolean needFullPath, Boolean copyPathList)
    at System.Security .Permissions.Fi leIOPermission. .ctor(FileIOPer missionAccess
    access, String[] pathList, Boolean checkForDuplica tes, Boolean needFullPath)
    at System.IO.FileI nfo..ctor(Strin g fileName)
    at System.Tools.Ax Imp.ParseArgume nts(String[] aArgs, Options& Options, Int32&
    ReturnCode)
    at System.Tools.Ax Imp.Main(String[] args)

    I am new to this
    if I have done any mistake point me that.
    or
    if there another way please let me know

    any kind of help is highly appriciated

    madushan

    Why any one is not going to answer my question

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Originally posted by madushan
      Why any one is not going to answer my question
      You have to be patient in waiting for an answer.
      I've never used the tool you're using to create a cs file in this manner and I don't know if anyone else has.

      C:\...\Debug>ax imp out:AxInterop.S HDocVw.dll /source

      Your exception is telling you that "The given path's format is not supported."
      Are you sure you're supplying the right arguments to the command?

      What are you trying to do exactly?

      Comment

      • madushan
        New Member
        • Feb 2007
        • 15

        #4
        Originally posted by Frinavale
        You have to be patient in waiting for an answer.
        I've never used the tool you're using to create a cs file in this manner and I don't know if anyone else has.

        C:\...\Debug>ax imp out:AxInterop.S HDocVw.dll /source

        Your exception is telling you that "The given path's format is not supported."
        Are you sure you're supplying the right arguments to the command?

        What are you trying to do exactly?

        Thanks Frinavale for ur kind reply.

        Actually write a wraper class for wrapping Internet Explore to used in windows app. by using the SHDocVw.dll. but once I compile that it crate AxInterop.SHDoc Vw.dll automatically.
        but I dont like to have that dll with my .dll
        So I want to combine that dll content with my code or another dll.
        But i didn't find a way combine two dll.
        So I find a way to take the sorce (or AX.... .cs ) from AX..... .dll .
        If i take that .cs class Then I can combine that with my existing source code.

        Actually that what I want?

        Madusan Thilina

        Comment

        • Frinavale
          Recognized Expert Expert
          • Oct 2006
          • 9749

          #5
          Originally posted by madushan
          Thanks Frinavale for ur kind reply.

          Actually write a wraper class for wrapping Internet Explore to used in windows app. by using the SHDocVw.dll. but once I compile that it crate AxInterop.SHDoc Vw.dll automatically.
          but I dont like to have that dll with my .dll
          So I want to combine that dll content with my code or another dll.
          But i didn't find a way combine two dll.
          So I find a way to take the sorce (or AX.... .cs ) from AX..... .dll .
          If i take that .cs class Then I can combine that with my existing source code.

          Actually that what I want?

          Madusan Thilina
          I see,

          I don't think what you're trying to do is possible.
          I remember researching Interop a couple months ago because I too was confused by them.

          When you're using a COM object (which I'm assuming is what your DLL is) it is wrapped with a .NET Interop assembly that allows you to use the COM interface at design-time.

          You kind of need it in order to make your project work.

          I don't think that you can easily derive the source code from the Interop assembly.

          Is it really that bad to have it referenced?

          Am I being of any help?

          -Frinny

          Comment

          • madushan
            New Member
            • Feb 2007
            • 15

            #6
            Originally posted by Frinavale
            I see,

            I don't think what you're trying to do is possible.
            I remember researching Interop a couple months ago because I too was confused by them.

            When you're using a COM object (which I'm assuming is what your DLL is) it is wrapped with a .NET Interop assembly that allows you to use the COM interface at design-time.

            You kind of need it in order to make your project work.

            I don't think that you can easily derive the source code from the Interop assembly.

            Is it really that bad to have it referenced?

            Am I being of any help?

            -Frinny

            Hi Frinavale,

            Actually ur guids was very helpful to me.
            Thank for ur kindness.

            I think it can't get that .cs file from that .dll since there isn't relevant .ocx file that suport for IE in system32 folder.
            Is that the reason fro that?.

            /regards
            madushan thilina

            Comment

            • Frinavale
              Recognized Expert Expert
              • Oct 2006
              • 9749

              #7
              Originally posted by madushan
              Hi Frinavale,

              Actually ur guids was very helpful to me.
              Thank for ur kindness.

              I think it can't get that .cs file from that .dll since there isn't relevant .ocx file that suport for IE in system32 folder.
              Is that the reason fro that?.

              /regards
              madushan thilina
              I think you can't get the cs file from that .dll since its only a wrapper class for the dll. Its not the real dll. (hehe its not the real <dll>deal).

              -Frinny

              Comment

              • madushan
                New Member
                • Feb 2007
                • 15

                #8
                Originally posted by Frinavale
                I think you can't get the cs file from that .dll since its only a wrapper class for the dll. Its not the real dll. (hehe its not the real <dll>deal).

                -Frinny
                hi
                Aha is it so.
                if so then actually what is the real dll used for that

                thank for ur reply
                madushan thilina

                Comment

                • Frinavale
                  Recognized Expert Expert
                  • Oct 2006
                  • 9749

                  #9
                  Originally posted by madushan
                  hi
                  Aha is it so.
                  if so then actually what is the real dll used for that

                  thank for ur reply
                  madushan thilina
                  Hi there!

                  Check out this link for more information on Interop and how it works with DLL's (COM objects) and .NET.

                  It is pretty cool stuff (at least I think so)

                  -Frinny

                  Comment

                  • madushan
                    New Member
                    • Feb 2007
                    • 15

                    #10
                    Originally posted by Frinavale
                    Hi there!

                    Check out this link for more information on Interop and how it works with DLL's (COM objects) and .NET.

                    It is pretty cool stuff (at least I think so)

                    -Frinny

                    Hi Frinny

                    Thank for ur help.It was great help to me.

                    madushan thilina

                    Comment

                    Working...