• Posts: 17
  • Joined: 13/12/2013
I'm having a problem with Attachments in YAF editor. When the attachment icon is selected, the popup doesn't list existing attachments,, but shows "internal server error" above "upload new files". However, I can still upload and use new attachments.

It appears that the POST to …/forum/YafAjax.asmx/GetAttachments is giving HTTP 500 error; the detail of the error is
"System.InvalidOperationException: Request format is invalid: application/json; charset=utf-8.
at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()

The web service appears to be fine with XML requests, but is rejecting JSON requests.

What have I got wrong in my web.config?

YAF version 2.24.20
  • Posts: 17
  • Joined: 13/12/2013
I should have googled a bit harder first!

I needed to add
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

to system.webserver.handlers
Forum Jump  
  • You cannot post new topics in this forum.
  • You cannot reply to topics in this forum.
  • You cannot delete your posts in this forum.
  • You cannot edit your posts in this forum.
  • You cannot create polls in this forum.
  • You cannot vote in polls in this forum.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved