I have a simple webservice with two webmethods.
https://localhost/Sub/WS/Dash.asmx/test_error_methodnameXXXXXXXXXXX
When i call the above request from the browser. It gives me a error message saying something like this:-
System.InvalidOperationException: test_error_methodnameXXXXXXXXXXX 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)
I tried to make a work around with the help of web.config file as follows:-
<system.web>
<customErrors mode="On" defaultRedirect="~/Sub/ErrorPage/AppErrors.aspx">
<error statusCode="500" redirect="500.aspx" />
</customErrors>
</system.web>
Here in this case, the redirection is not happening to the 500.aspx page or the AppErrors.aspx. I can see the change happening, if i change the value in the mode attribute..
Thanks.