Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin 48 posts 69 karma points
    Dec 30, 2010 @ 18:51
    Martin
    0

    Internal server error

    Hi,

    I'm getting an internal server error trying to reach:

    /umbraco/webservices/RVContactFormMailer.asmx/SendContactForm

    If I try to load the url directly via the browser, I get:

    "Request format is unrecognized for URL unexpectedly ending in '/sendcontactform'."

    Yet if I remove the trailing / text, the definition for the web service loads just fine.

    (Just "/umbraco/webservices/RVContactFormMailer.asmx")

    What am I missing?

    Thanks,

    Martin

    P.S. The full text on the project page doesn't seem to appear when using Internet Explorer - it stops after the first paragraph, so you can't see the instructions, source downloads, or anything else.

  • Martin 48 posts 69 karma points
    Dec 30, 2010 @ 19:08
    Martin
    0

    OK, I think the main thrust of my question I can answer myself. By default, the package installer doesn't add or check whether the appropriate web.config changes have been made to allow web service extensions:

    <system.web> 
      <webServices> 
        <protocols> 
          <add name="HttpGet" /> (while testing only?)
          <add name="HttpPost" /> 
          <add name="HttpSoap" /> 
        </protocols> 
      </webServices> 
    </system.web> 

    Martin

  • Martin 48 posts 69 karma points
    Dec 30, 2010 @ 19:10
    Martin
    0

    But now I have another error damnit.

    System.InvalidOperationException: sendcontactform Web Service method name is not valid.
       at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
       at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)

  • Martin 48 posts 69 karma points
    Dec 30, 2010 @ 19:32
    Martin
    0

    But now that I have recompiled the source to change the field valiation, we seem to be up and running - excellent.

    Martin

    (Just off to vote up this project!)

  • Martin 48 posts 69 karma points
    Dec 30, 2010 @ 19:40
    Martin
    0

    Well, I would have voted, but I'm still a little short on 'karma' by the look of it. I'll try to remember to come back!

    Am now going to try to extend the source to allow the email config to be driven by ancestor-or-self type document properties..

    Martin

  • Eran 292 posts 436 karma points
    Dec 30, 2010 @ 22:57
    Eran
    0

    good i see that you solved everything.

    if you have good idea and suggestions for improvments i will be happy to here.

    thanks

    eran.

  • Daniel Horn 319 posts 344 karma points
    Feb 04, 2011 @ 15:38
    Daniel Horn
    0

    Hi

    Got the same problem - added the webservice thing in web.config but now i have that error:

    System.InvalidOperationException: SendContactForm Web Service method name is not valid.
       at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
       at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
       at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    

    What did you do to fix it Martin?

Please Sign in or register to post replies

Write your reply to:

Draft