Adding users, Editing Rights for Roles, etc failing

Topics: ASP.NET 2.0, Business Logic Layer, Controls
Jan 7, 2013 at 6:35 PM
Edited Jan 7, 2013 at 6:36 PM

We have implemented BE in a subdirectory of the site and almost successfully integrated it.

xml is the data storage method.

New posts can be added and edited but there are issues with users and roles, adding and editing:

Adding a user...post http://xyz.com/Blog/api/UserService.asmx/Add

returns 500 response:

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()

When we try to save an existing profile the following error is generated:

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()

Editing Roles: http://xyz.com/Blog/api/RoleService.asmx/SaveRights

System.InvalidOperationException: SaveRights 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)

Any ideas or suggestions?
Jan 8, 2013 at 6:44 PM

Appears to be resolved. The .asmx handler line in web.config under the 'Blog' application was commented out due to errors generated during integration with the main site. Restored the handler line and now api calls are handled and no errors complaining about incompatibility with the main site.