IIS5 Default File with Parameters?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • btarb24
    New Member
    • Dec 2007
    • 2

    IIS5 Default File with Parameters?

    I need to be able to have a default file in IIS5.0 that allows me to send parameters.

    For instance: www.server.com/Test?bla=bla
    instead of:
    www.server.com/Test/file.asmx?bla=b la

    When I set the default file for www.server.com/Test to file.asmx I get "Method not allowed" errors. Though, when I type out the full URI it will work fine.

    Additionally, I need a similar thing. I need all requests to www.server.com/test2 to use the non-existent default file of file.cdsproxy. This way my speciall dll for the cdsproxy extension will fire. Though, It looks like IIS tests for mappings Before it adds the default file to the requested URI?
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    One way would be URL Rewriting in ASP.NET

    Comment

    • btarb24
      New Member
      • Dec 2007
      • 2

      #3
      Thank you for the suggestion. I went and read up on it a bit but now run into the question, how do I map asp.net since I need to request only a directory?

      My requested URL needs to be server.com/LiveJobControl? sessionID=abc

      I need to redirect that to server.com/LiveJobControl/LiveJobControl. asmx?sessionID= abc

      would an ASP.net redirect be applicable in this situation? If so, how would I create a mapping to reference aspnet_isapi.dl l from IIS since there technically isn't a file extension yet.

      It looks like if I use a default document then IIS just discards my parameters when It loads the document. any thoughts?

      Comment

      • kenobewan
        Recognized Expert Specialist
        • Dec 2006
        • 4871

        #4
        It's important to understand that the ASP.NET engine gets its hands only on incoming Web requests whose extensions are explicitly mapped to the aspnet_isapi.dl l in IIS. The events used are events of the System.Web.Http Application class. Notice with rewrite what the browser's address bar the URL reads and the user is actually are not the same thing. HTH.

        Comment

        Working...