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. Decompiling framework methods

Decompiling framework methods

Scheduled Pinned Locked Moved C#
debugginghelpquestion
5 Posts 3 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.
  • M Offline
    M Offline
    MrEyes
    wrote on last edited by
    #1

    hello all, Is there anyway to decompile a framework function so that I can see exactly what it does? The reason I want to do this is that I am having a few issues with : HttpServerUtility.MapPath(string) The issues I am having are far to long and complicated to get into, but any help would be greatly appreciated. Another option would be to somehow debug the method so I can see what data is actually travelling through it. post.mode = postmodes.signature; SELECT everything FROM everywhere WHERE something = something_else; > 1 Row Returned > 42

    N L 2 Replies Last reply
    0
    • M MrEyes

      hello all, Is there anyway to decompile a framework function so that I can see exactly what it does? The reason I want to do this is that I am having a few issues with : HttpServerUtility.MapPath(string) The issues I am having are far to long and complicated to get into, but any help would be greatly appreciated. Another option would be to somehow debug the method so I can see what data is actually travelling through it. post.mode = postmodes.signature; SELECT everything FROM everywhere WHERE something = something_else; > 1 Row Returned > 42

      N Offline
      N Offline
      N8url
      wrote on last edited by
      #2

      Lutz Roeder does a 'Reflector' that might help. It has come in handy for looking into system assemblies on a number of occasions. Try [^]

      M L 2 Replies Last reply
      0
      • M MrEyes

        hello all, Is there anyway to decompile a framework function so that I can see exactly what it does? The reason I want to do this is that I am having a few issues with : HttpServerUtility.MapPath(string) The issues I am having are far to long and complicated to get into, but any help would be greatly appreciated. Another option would be to somehow debug the method so I can see what data is actually travelling through it. post.mode = postmodes.signature; SELECT everything FROM everywhere WHERE something = something_else; > 1 Row Returned > 42

        L Offline
        L Offline
        leppie
        wrote on last edited by
        #3

        Look at HttpRequest.MapPath(string, string, bool) top secret xacc-ide 0.0.1

        1 Reply Last reply
        0
        • N N8url

          Lutz Roeder does a 'Reflector' that might help. It has come in handy for looking into system assemblies on a number of occasions. Try [^]

          M Offline
          M Offline
          MrEyes
          wrote on last edited by
          #4

          I have Reflector and it gets me part of the way towards solving my problem but not all the way. A little more information might be useful here, I get the following exception :

          [ArgumentNullException: Value cannot be null.
          Parameter name: str]
          System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str) +231
          System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) +88
          System.Web.HttpRequest.MapPath(String virtualPath, String baseVirtualDir, Boolean allowCrossAppMapping) +305

          Having used reflector to view the code for .MapPath(...) it does not seem to call AddPathList(...) or go anywhere near the System.Security.Permissions namespace. Which leads me to believe that reflector isnt giving me all the code. Without getting into the nitty gritty of this, I have written an Apache webserver module that will allow me to serve ASP .NET applications with this webserver - it works brilliantly until I run anything that contains .MapPath. post.mode = postmodes.signature; SELECT everything FROM everywhere WHERE something = something_else; > 1 Row Returned > 42

          1 Reply Last reply
          0
          • N N8url

            Lutz Roeder does a 'Reflector' that might help. It has come in handy for looking into system assemblies on a number of occasions. Try [^]

            L Offline
            L Offline
            leppie
            wrote on last edited by
            #5

            N8url wrote: It has come in handy for looking into system assemblies on a number of occasions. Just as long as it doesnt jump into unmanaged code! :) top secret xacc-ide 0.0.1

            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