Hi all!
We have upgraded our test enviroment onpremise from 9.0 to 9.1. We are having issue with the Endpoint Service. It cannot be reached.
When i try to call the our endpoint devcrm365.xxx.ru/.../ i get the following error:
Microsoft.Crm.CrmException: The current organization id could not be determined. at Microsoft.Crm.Application.Security.UserInformationIdentity.get_OrganizationId() at Microsoft.Crm.Errors.ErrorInformation..ctor(Exception exception, Uri requestUrl, Boolean logError, IOrganizationContext context) at Microsoft.Crm.MainApplication.Application_Error(Object sender, EventArgs eventArguments)
I have enable trace on the server and get the error detail:
[2021-11-10 21:03:12.859] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 28 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 39eed8c0-d161-4db2-9ba1-5afd79938803 |ActivityId: 39eed8c0-d161-4db2-9ba1-5afd79938803 | ProductionCallerPropertiesProvider.GetCallerProperties ilOffset = 0xC0
at ProductionCallerPropertiesProvider.GetCallerProperties(IDbConnectionFactory connectionFactory) ilOffset = 0xC0
at SecurityLibrary.GetCallerAndBusinessGuids() ilOffset = 0x0
at CrmODataUtilities.GetOrganizationContext() ilOffset = 0x0
at TraceUtilities.Trace(TraceLevel traceLevel, String message, Exception ex) ilOffset = 0x0
>Crm Exception: Message: userId '00000000-0000-0000-0000-000000000000' not found on UserIdentityContext.Current.Principal, ErrorCode: -2147220970
and
[2021-11-10 21:03:12.859] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 28 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 39eed8c0-d161-4db2-9ba1-5afd79938803 |ActivityId: 39eed8c0-d161-4db2-9ba1-5afd79938803 | HttpApplication.RaiseOnError ilOffset = 0x0
>Request devcrm365.xxx.ru/.../$metadata failed with exception Microsoft.Crm.CrmException: userId '00000000-0000-0000-0000-000000000000' not found on UserIdentityContext.Current.Principal
When i try to open the endpoint url on the server where IIS is hosted i get this error:

I have not this physical path on the server...
The URL endpoint from outside also cannot be reached. All users can log in to crm without any problems. We use ADFS to authentication
There is not an api folder. How can i fix the service endpoint?