I am trying to use an UmbracoAuthorizedController on the backend and for some reason is giving me the following error:
The process cannot access the file 'C:\BitBucket\CEAV\CEAV-Web\CEAV\App_Data\TEMP\ExamineIndexes\ASTA-8PBQG62\InternalMember\Index\write.lock' because it is being used by another process.
If I try with the UmbracoAuthorize attribute I get the same error but if I try with UmbracoController all works well.
Any idea why I can't use the Authorized Controller?
Unable to use Controller Authorisation
I am trying to use an UmbracoAuthorizedController on the backend and for some reason is giving me the following error:
The process cannot access the file 'C:\BitBucket\CEAV\CEAV-Web\CEAV\App_Data\TEMP\ExamineIndexes\ASTA-8PBQG62\InternalMember\Index\write.lock' because it is being used by another process.
If I try with the UmbracoAuthorize attribute I get the same error but if I try with UmbracoController all works well.
Any idea why I can't use the Authorized Controller?
Thank you.
Hi Mario,
Can you post some code ? It's easier to reproduce when people can see the code.
Dave
Thanks for the suggestion Dave, it's just that the code seems pretty straight forward, but here we go:
I have my controller in the App_Plugins but it is not using the plugin attribute or anything.
My Controller:
My route:
I can access the controller using:
http://dev.domain.local/backoffice/PrintableList/299
This is actually working. The problem comes if I use the UmbracoAuthorizedController.
I'm having the same issue.
Hi Mario,
I think that the problem is that you are registering your own routes.
Umbraco handles the routing out of the box : https://our.umbraco.org/documentation/Reference/Routing/WebApi/routing
https://our.umbraco.org/documentation/Reference/Routing/Authorized/
If you inherit from UmbracoAuthorizedApiController the route created by Umbraco also starts with /backoffice...Probably your route conflicts with this
Dave
is working on a reply...