I secured most of my services by adding annotations to my service implementations like so:
[Authenticate] [RequiresAnyRole("User", "Administrator", "SysBizBusService")]
When I try to get the source code from Windows in VS2017 I get a 405 not allowed error. The screenshot shows the details:
I have already a generated file form a different server (OpsManagerDTOs.dtos.cs) and I can update this one without any problem, also after securing most of the services. Now I try another file with DTOs from another service which the client is using as well.
So I wonder if I can have files from TWO servers in the same project or if this is not possible.
And in the same context a second question: Is it possible to change the URL somewhere after having created the file or do I need to delete it (thats how I do it now). The background is, that I have a bunch of services and they run usually in docker containers. If I am debugging a client, I prefer to run the server in the debugger as well to see what is going on on the server side as well. In such cases, the URL is different (my dockerhost is on a separate machine for services I do not currently work on)
I tried to add a new project to the solution but it is the same problem (405). So what is called when a request to generate the DTOs is made? What could be the reson a 405 is returned?