Custom HTTP Modules and Web Services

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Custom HTTP Modules and Web Services

    I created a Web Service and a custom HTTP Module.
    I've put the HTTP Module dll in the Web Service's bin
    folder.
    I've put in the Web Service's web.config file the
    httpModules tag with an add tag for the HTTP Module.
    The custom HTTP Module does not load.

    Can anybody help?
    Andrei Coler Guest

  2. Similar Questions and Discussions

    1. Custom PM Modules Won't Work
      Hello I have written a website using Perl which runs in IIS and I now want to divide the functionality into modules but as soon as I try I get...
    2. Http services problem
      Dear Friends: My Problem is about the Http services Install Flex base on BEA Weblogic, JRUN4,Tomcat all the same problem my sever in intranet ,...
    3. HTTP Services for DataGrid
      why is it that, when we send a web request for some data from a .jsp or .xml file, for a datagrid , we dont get the result displayed on the DataGrid...
    4. Using http modules for compression
      Can some please point me towards any articles about using HttpModules for compression of soap requests/responses? I want to be able to compress...
    5. web services over http
      Hi I have a webservice setup for which I want to use client certificates. I installed a Web-Server certificate on my web server. I then generated...
  3. #2

    Default Re: Custom HTTP Modules and Web Services

    Hi,
    hm, what error are you receiving? This should work ...

    Cheers,
    --
    Christian Weyer
    Microsoft .NET & Service Oriented Architectures

    [Microsoft Regional Director, Germany]
    [url]http://www.regionaldirectors.de/[/url]

    * XML Web Services: [url]http://www.xmlwebservices.cc/[/url]
    * Weblog: [url]http://weblogs.asp.net/cweyer/[/url]

    > I created a Web Service and a custom HTTP Module.
    > I've put the HTTP Module dll in the Web Service's bin
    > folder.
    > I've put in the Web Service's web.config file the
    > httpModules tag with an add tag for the HTTP Module.
    > The custom HTTP Module does not load.
    >
    > Can anybody help?
    Christian Weyer [MSDN RD] Guest

  4. #3

    Default Re: Custom HTTP Modules and Web Services

    No error message, it simply does not load the HTTPModule -
    it ignores the tag.

    Andrei
    >-----Original Message-----
    >Hi,
    >hm, what error are you receiving? This should work ...
    >
    >Cheers,
    >--
    >Christian Weyer
    >Microsoft .NET & Service Oriented Architectures
    >
    >[Microsoft Regional Director, Germany]
    >[url]http://www.regionaldirectors.de/[/url]
    >
    >* XML Web Services: [url]http://www.xmlwebservices.cc/[/url]
    >* Weblog: [url]http://weblogs.asp.net/cweyer/[/url]
    >
    >
    >> I created a Web Service and a custom HTTP Module.
    >> I've put the HTTP Module dll in the Web Service's bin
    >> folder.
    >> I've put in the Web Service's web.config file the
    >> httpModules tag with an add tag for the HTTP Module.
    >> The custom HTTP Module does not load.
    >>
    >> Can anybody help?
    >.
    >
    Andrei Coler Guest

  5. #4

    Default Re: Re: Custom HTTP Modules and Web Services

    Can you show your web.config?

    Cheers,
    --
    Christian Weyer
    Microsoft .NET & Service Oriented Architectures

    [Microsoft Regional Director, Germany]
    [url]http://www.regionaldirectors.de/[/url]

    * XML Web Services: [url]http://www.xmlwebservices.cc/[/url]
    * Weblog: [url]http://weblogs.asp.net/cweyer/[/url]


    > No error message, it simply does not load the HTTPModule -
    > it ignores the tag.
    >
    > Andrei
    Christian Weyer [MSDN RD] Guest

  6. #5

    Default Re: Re: Custom HTTP Modules and Web Services

    Just to repeat: same <httpModules> tag with the same
    information works when inserted in the web.config for a
    regular (not Web Services) application.
    The web.config file:

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>

    <system.web>

    <!-- DYNAMIC DEBUG COMPILATION
    Set compilation debug="true" to enable ASPX
    debugging. Otherwise, setting this value to
    false will improve runtime performance of this
    application.
    Set compilation debug="true" to insert debugging
    symbols (.pdb information)
    into the compiled page. Because this creates a
    larger file that executes
    more slowly, you should set this value to true
    only when debugging and to
    false at all other times. For more information,
    refer to the documentation about
    debugging ASP .NET files.
    -->
    <compilation
    defaultLanguage="c#"
    debug="true"
    />
    <!-- CUSTOM ERROR MESSAGES
    Set customError mode values to control the
    display of user-friendly
    error messages to users instead of error details
    (including a stack trace):

    "On" Always display custom (friendly) messages
    "Off" Always display detailed ASP.NET error
    information.
    "RemoteOnly" Display custom (friendly) messages
    only to users not running
    on the local Web server. This setting is
    recommended for security purposes, so
    that you do not display application detail
    information to remote clients.
    -->
    <customErrors
    mode="RemoteOnly"
    />

    <!-- AUTHENTICATION
    This section sets the authentication policies of
    the application. Possible modes are "Windows", "Forms",
    "Passport" and "None"
    -->
    <authentication mode="Windows" />

    <!-- APPLICATION-LEVEL TRACE LOGGING
    Application-level tracing enables trace log
    output for every page within an application.
    Set trace enabled="true" to enable application
    trace logging. If pageOutput="true", the
    trace information will be displayed at the
    bottom of each page. Otherwise, you can view the
    application trace log by browsing
    the "trace.axd" page from your web application
    root.
    -->
    <trace
    enabled="false"
    requestLimit="10"
    pageOutput="false"
    traceMode="SortByTime"
    localOnly="true"
    />

    <!-- SESSION STATE SETTINGS
    By default ASP .NET uses cookies to identify
    which requests belong to a particular session.
    If cookies are not available, a session can be
    tracked by adding a session identifier to the URL.
    To disable cookies, set sessionState
    cookieless="true".
    -->
    <sessionState
    mode="InProc"
    stateConnectionString="tcpip=127.0.0.1:42424"
    sqlConnectionString="data
    source=127.0.0.1;user id=sa;password="
    cookieless="false"
    timeout="20"
    />

    <!-- GLOBALIZATION
    This section sets the globalization settings of
    the application.
    -->
    <globalization
    requestEncoding="utf-8"
    responseEncoding="utf-8"
    />

    <httpModules>
    <add

    type="WebServiceAuthenticationModule.WebServiceAut h
    enticationModule, WebServiceAuthenticationModule"
    name="WebServiceAuthenticationModule"/>
    </httpModules>
    </system.web>

    </configuration>

    Thanks, Andrei

    >-----Original Message-----
    >Can you show your web.config?
    >
    >Cheers,
    >--
    >Christian Weyer
    >Microsoft .NET & Service Oriented Architectures
    >
    >[Microsoft Regional Director, Germany]
    >[url]http://www.regionaldirectors.de/[/url]
    >
    >* XML Web Services: [url]http://www.xmlwebservices.cc/[/url]
    >* Weblog: [url]http://weblogs.asp.net/cweyer/[/url]
    >
    >
    >
    >> No error message, it simply does not load the
    HTTPModule -
    >> it ignores the tag.
    >>
    >> Andrei
    >.
    >
    Andrei Coler Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139