Hello, I reviewed the code you sent. There does not seem to be a problem in the code, but I also get the error you get about not being able to connect to the database. The reason for this error is that the FileManagement service also needs access to the database of the LanguageManagement service. For this reason, if you want to start the FileManagement service on its own, you need to start the other services first. If you want to learn more about microservice application development, you can follow this tutorial.
Hi,
Clear your local NuGet cache will fix the problem.
dotnet nuget locals all --clear
Closing the issue. Feel free to create a new issue if you have further questions.
Hi,
Clear your local nuget cache will fix the problem.
dotnet nuget locals all --clear
You can also find tickets with the same problem as you below:
https://abp.io/support/questions/7937/POST-PUT-and-DELETE-requests-return-a-Bad-Request-400-error
In a ticket I forwarded to you before, it was stated that the problem may be CRSF. However, since you said that you checked this and that this was not the problem, I did not think about it. But if this is the problem, could you try the following configuration and let me know if it works for you?
Configure<AbpAntiForgeryOptions>(options =>
{
options.TokenCookie.SecurePolicy = CookieSecurePolicy.None;
});
Because you are using HTTP, the XSRF-TOKEN cookie required HTTPS. If you want to use HTTP, you have to set SecurePolicy to CookieSecurePolicy.None:
My teammate who is more experienced than me about ISS will try to help you.
By the way, have you tried disabling the WebDAV feature on Windows Server or Desktop machines?
https://dev.to/devvsamjuel/webdav-put-and-delete-http-verbs-remove-webdav-module-on-iis-3l1g
Any chance you can send me the logs? Let's examine in detail.
Yes, i have tried all this. can you help me over remote desktop?
Unfortunately, we do not have such a service.
In the meantime, a colleague of our team said that this could also be caused by the hosting company. Some hosting companies do not open requests other than GET requests by default. Which hosting company do you use?
Note: Deployment is not a feature directly provided by ABP, but I still tried to help as much as we can.