21.11.2016, 12:22 | #1 |
Участник
|
AIF Web Service from C# (AX 2009)
Всем привет!
Пытаюсь разобраться с AIF, Web Service + C#. Методичку https://msdn.microsoft.com/en-US/lib...(v=AX.50).aspx почитал. Установил AIF Web services, AX добавил Web site, настроил сервис. Отредактировал web.config PHP код:
PHP код:
PHP код:
The Application Integration Framework Web service cannot determine the Windows login of the user calling the Web service. Check the Web server Event Viewer for more information, or contact your Administrator. Соответствующий Event: The description for Event ID 0 from source Dynamics Application Integration Server cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer. If the event originated on another computer, the display information had to be saved with the event. The following information was included with the event: An error occurred while Web service request http://zeus2.ealtd.com/MicrosoftDyna...andservice.svc and action http://schemas.microsoft.com/dynamic...rvice/findKeys were being processed. Error details: The Application Integration Framework Web service cannot determine the Windows login of the user calling the Web service. Check the Web server Event Viewer for more information, or contact your Administrator. The WCF service cannot determine the Windows identity of the caller. If using basicHttpBinding, please update the Web.config file as follows using the MS Service Configuration Editor (in binding configuration): 1- Set the Mode property to TransportCredentialOnly. 2- Set the TransportClientCredentialType property to anything other than None. 3- In IIS, set the directory security for the virtual directory to match the TransportClientCredentialType. For example, if the TransportClientCredentialType property is set to Windows then set the IIS authentication method to Integrated Windows authentication.. The specified resource type cannot be found in the image file Чувствую, что я что-то должен поменять в web.config и/или app.config, а что не пойму. Помогите пожалуйста |
|
21.11.2016, 12:30 | #2 |
Участник
|
В веб.конфиге попробуйте что-нибудь типа
Код: <security mode="Transport"> <transport clientCredentialType="Windows"/> </security> |
|
|
За это сообщение автора поблагодарили: AnGor (1). |
21.11.2016, 13:02 | #3 |
Участник
|
Цитата:
вот что в ивентах: WebHost failed to process a request. Sender Information: System.ServiceModel.Activation.HostedHttpRequestAsyncResult/40550573 Exception: System.ServiceModel.ServiceActivationException: The service '/MicrosoftDynamicsAXAif50/inventoryonhandservice.svc' cannot be activated due to an exception during compilation. The exception message is: Could not find a base address that matches scheme https for the endpoint with binding WSHttpBinding. Registered base address schemes are [http].. ---> System.InvalidOperationException: Could not find a base address that matches scheme https for the endpoint with binding WSHttpBinding. Registered base address schemes are [http]. at System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress) at System.ServiceModel.ServiceHostBase.ApplyConfiguration() at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) at System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath) at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) --- End of inner exception stack trace --- at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) Process Name: w3wp Process ID: 5528 |
|
21.11.2016, 15:24 | #4 |
Участник
|
Заработало!
переписал web.config: PHP код:
PHP код:
|
|
|
За это сообщение автора поблагодарили: gl00mie (2). |
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|