I have a .Net 4.0 service and cannot make calls on it - they always return with a 405 error (Method not allowed).
Attached is a zip with the service and calling app, and event log entry (i cleared the log and ran my test and it only created one entry). This works properly in VS 2015 as long as the ulracl is set properly, and does not appear to be a security issue. I have tried everything I can think of, and the log/trace files in the install directory do not have any useful information.
The attached test app does not have a default page, but that does not matter - i get the same error in my calling code, its just that attempting to browse to it gives me a 404 when there is no default page.
The client code is just
Service1Client sr=new Service1Client();
string s=sr.GetData(456);
sr.Close();
When I make this call, the event entry gets a warning (in the zip) that says
Exception information:
Exception type: HttpException
Exception message: The HTTP verb POST used to access path '/Service1/' is not allowed.
at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I attached a 'fail', which is what I get when hosted by UltiDev, and a succeed, which is what I get when I run this and let VS launch the server.
Any help would be greatly appreciated.
File Attachment(s):
SteveY attached the following image(s):