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. Http Handler

Http Handler

Scheduled Pinned Locked Moved ASP.NET
helpcsharpcomsysadminwindows-admin
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.
  • S Offline
    S Offline
    ss mmm
    wrote on last edited by
    #1

    My aim is to block the .doc file access through Url. on IIS, I added a mapping to *.doc. This is a remote server that does not have dotnet installed. On my application, I put a class which includes ProcessRequest method. On the web.config, I have added <add verb="*" path="*.doc" type="DocNamespace.DocClass,DocDllName>; <add key="PathToRedirect" value="~/Fail.aspx>; I compiled this class to dll and put it on my bin folder. Error I find is "Could not load file or assembly DocDllNameor one of its dependencies. The system cannot find the file specified." I referred the below http://www.15seconds.com/issue/020417.htm[^] Please help. Thanks

    N V 2 Replies Last reply
    0
    • S ss mmm

      My aim is to block the .doc file access through Url. on IIS, I added a mapping to *.doc. This is a remote server that does not have dotnet installed. On my application, I put a class which includes ProcessRequest method. On the web.config, I have added <add verb="*" path="*.doc" type="DocNamespace.DocClass,DocDllName>; <add key="PathToRedirect" value="~/Fail.aspx>; I compiled this class to dll and put it on my bin folder. Error I find is "Could not load file or assembly DocDllNameor one of its dependencies. The system cannot find the file specified." I referred the below http://www.15seconds.com/issue/020417.htm[^] Please help. Thanks

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      ss.mmm wrote:

      This is a remote server that does not have dotnet installed.

      Then how are you deploying and running an ASP.NET application?


      only two letters away from being an asset

      S 1 Reply Last reply
      0
      • N Not Active

        ss.mmm wrote:

        This is a remote server that does not have dotnet installed.

        Then how are you deploying and running an ASP.NET application?


        only two letters away from being an asset

        S Offline
        S Offline
        ss mmm
        wrote on last edited by
        #3

        Sorry, I should have written that the Remote Server has .Net Framework installed and not visual studio.

        Thanks

        S 1 Reply Last reply
        0
        • S ss mmm

          Sorry, I should have written that the Remote Server has .Net Framework installed and not visual studio.

          Thanks

          S Offline
          S Offline
          ss mmm
          wrote on last edited by
          #4

          On my local machine, when I try to access the .doc through browser, it takes me to the Fail.aspx and when I go through the application am able to access. The problem is with dll. On the remote server, I get the error. Please help.

          Thanks

          1 Reply Last reply
          0
          • S ss mmm

            My aim is to block the .doc file access through Url. on IIS, I added a mapping to *.doc. This is a remote server that does not have dotnet installed. On my application, I put a class which includes ProcessRequest method. On the web.config, I have added <add verb="*" path="*.doc" type="DocNamespace.DocClass,DocDllName>; <add key="PathToRedirect" value="~/Fail.aspx>; I compiled this class to dll and put it on my bin folder. Error I find is "Could not load file or assembly DocDllNameor one of its dependencies. The system cannot find the file specified." I referred the below http://www.15seconds.com/issue/020417.htm[^] Please help. Thanks

            V Offline
            V Offline
            Venkatesh Mookkan
            wrote on last edited by
            #5

            Could you please post your code?

            [Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot

            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