Professional Web Applications Themes

Configuration error in Web.config file while accessing the SOAP webservice - ASP.NET Web Services

Hi all, I am creating a webservice to accept SOAP messages, p the message and send a SOAP response back to the client accessing my web service using WSE-2 in ASP.NET. I am creating a class which derives from "SoapReceiver" class and do the processing here. To register this class by using the HTTP protocol, I am editing the "web.config" file. I am adding an "add" element to this config file as follows: <httpHandlers> <add verb="*" path="MyReceiver.ashx" type="CodeService.HttpService"/> </httpHandlers> Here "HttpService" is the class I have created in "CodeService" namespace. Also I am adding a "configSections" element to the "configuration" ...

  1. #1

    Default Configuration error in Web.config file while accessing the SOAP webservice

    Hi all,
    I am creating a webservice to accept SOAP messages, p the
    message and send a SOAP response back to the client accessing my web
    service using WSE-2 in ASP.NET.
    I am creating a class which derives from "SoapReceiver" class
    and do the processing here. To register this class by using the HTTP
    protocol, I am editing the "web.config" file. I am adding an "add"
    element to this config file as follows:
    <httpHandlers>
    <add verb="*" path="MyReceiver.ashx"
    type="CodeService.HttpService"/>
    </httpHandlers>

    Here "HttpService" is the class I have created in "CodeService"
    namespace. Also I am adding a "configSections" element to the
    "configuration" section of the "web.config" file to add
    microsoft.web.services2 configuration section.

    When I try accessing this webservice from a browser say like
    "http://localhost/CodeService/CodeWebService.asmx", I get the follwing
    error
    Pr Error Message: Could not load type CodeService.HttpService from
    assembly System.Web, Version=1.0.5000.0, Culture=neutral,
    PublicKeyToken=b03f5f7f11d50a3a.

    Could anyone please let me know where I am going wrong?

    Thanks,
    kaush

    kaush Guest

  2. #2

    Default Re: Configuration error in Web.config file while accessing the SOAP webservice

    Kaush

    I posted a response to this question in your other post question in the
    microsoft.public.framework.webservices group. Please refer to that.

    http://groups.google.ca/group/microsoft.public.dotnet.framework.webservices/browse_thread/thread/a77dae39f69955fe/411bfdba065827cd#411bfdba065827cd

    Peter Kelcey

    Peter Guest

Similar Threads

  1. Flex with ASP.NET and accessing Web.config file
    By mk_ananth in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: April 5th, 06:55 PM
  2. WebService not obeying web.config error reporting settings
    By Ben Fidge in forum ASP.NET Web Services
    Replies: 1
    Last Post: July 1st, 12:06 PM
  3. Machine.config Configuration Error
    By Calvin Willman in forum Dreamweaver AppDev
    Replies: 1
    Last Post: April 4th, 10:15 PM
  4. Replies: 3
    Last Post: June 1st, 02:49 AM
  5. web.config Configuration Error when deploy
    By Xu ChunMing in forum ASP.NET General
    Replies: 1
    Last Post: July 16th, 10:08 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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