15.12.2013, 20:42 | #1 |
Участник
|
AIF web services and ASP.NET MVC web application
Hi,
I have very strange problem with AIF. I have ASP.NET MVC application which consumes AIF WCF web services. My Scenario is: AX 2009 SP1 RU8 running on Windows Server 2012. On that machine I have one AOS which is load balancer. I have another 4 AOS's. Every one of them runs on a different virtual machine, so I have 5 AOS'es over 5 different machines with Windows Server 2012 operation system. ASP.NET MVC application and AIF web services applicatoion pools are running with busines connector account. BC configuration points to the AOS which is load balancer. One of ASP.net MVC application forms (especialy login form) has a problem when the AX client is started. When I stop AX there is no problem. When AX works with one AOS (without load balancer) everithing is OK. The problem is: Message: <Fault xmlns="http://schemas.microsoft.com/dynamics/2008/01/documents/Fault"> <Code /> <Reason> <Text xml:lang="EN-US">Request Failed. See the Exception Log for details.</Text> </Reason> </Fault>Stack trace: at Microsoft.Dynamics.BusinessConnectorNet.Axapta.CallStaticClassMethod(String className, String methodName, Object[] paramList) at Microsoft.Dynamics.IntegrationFramework.Service.WcfAxAdapter.SubmitMessageToAx() I have no idea what's the problem. Thanks, |
|
16.12.2013, 08:47 | #2 |
Участник
|
Can you give more details about the situation "when the AX client is started"? Where is it started, which AOS does it connect to? And actually is it Windows Rich AX client?
|
|
16.12.2013, 10:24 | #3 |
Участник
|
Hi,
I have 5 virtual machine on which I have installed 5 Application Object Server's. AOS0, AOS1, AOS2, AOS3, AOS4, AOS5. AOS0 is load balancer. I started AX rich windows client on the virtual mashine where load balancer resides. The AX can connect to AOS1, AOS2, AOS3, AOS4. It deppends on load balancer. In current case Ax client is connected to AOS2 as I can see in online users dialog. Business connector configuration points to Load balancer AOS0. Sometimes there is a session to bcproxy user connected to AOS1 when I put request to asp.net mvc application in the browser on the mashine whit AOS1. Somethimes there is not. ist. |
|
16.12.2013, 12:54 | #4 |
Участник
|
So what's in the exception log, Ist? Because the error you posted above just means something failed.
Do you see any errors under System administration \ Perioding \ Services and Application Integration Framework \ Exceptions? |
|
16.12.2013, 13:53 | #5 |
Участник
|
Shure. The exception is: ClrObject static method invocation error.
|
|
16.12.2013, 14:06 | #6 |
Участник
|
Well, that's also not very helpful.
Is there a class/method name? Is there an internal exception with the actual error? |
|
16.12.2013, 15:14 | #7 |
Участник
|
Hi,
Here is actual error stack trace: Server Error in '/wms' Application. -------------------------------------------------------------------------------- Request Failed. See the Exception Log for details. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ServiceModel.FaultException`1[[wms.AxUserRightsServiceRef.AifFault, wms, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]: Request Failed. See the Exception Log for details. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [FaultException`1: Request Failed. See the Exception Log for details.] System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +14489026 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +622 wms.AxUserRightsServiceRef.WMSUserAccessRightsService.find(WMSUserAccessRightsServiceFindRequest request) +0 wms.AxUserRightsServiceRef.WMSUserAccessRightsServiceClient.wms.AxUserRightsServiceRef.WMSUserAccessRightsService.find(WMSUserAccessRightsServiceFindRequest request) in d:\Projects\wms\Service References\AxUserRightsServiceRef\Reference.cs:1534 wms.AxUserRightsServiceRef.WMSUserAccessRightsServiceClient.find(QueryCriteria QueryCriteria) in d:\Projects\wms\Service References\AxUserRightsServiceRef\Reference.cs:1540 wms.Models.UserModel..ctor(String userId) in d:\Projects\wms\Models\AccountModels.cs:36 wms.Controllers.AccountController.Login(LoginModel model, String returnUrl) in d:\Projects\wms\Controllers\AccountController.cs:34 lambda_method(Closure , ControllerBase , Object[] ) +271 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +274 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39 System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +120 System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +452 System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +15 System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +33 System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240 System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28 System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53 System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15 System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42 System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288 |
|
18.12.2013, 12:49 | #8 |
Участник
|
Hi ist,
Have you tried to put your AIF call code inside try-catch statement and get the whole Exception in VS debugger? Also, what are you passing as the first parameter in AIF methods (CallContext)? Alex
__________________
AxAssist 2012 - Productivity Tool for Dynamics AX 2012/2009/4.0/3.0 |
|
24.12.2013, 13:08 | #9 |
Участник
|
Цитата:
I don't use callContext, because the application pool for AIF web services is started with business connector user account (configured in Administration/Setup/Security/System service accounts). I have added business connector user in AX users and configured it's default company. If I want to work in a diferrent AX company I have to change default company for business connector user. Regards, |
|
08.01.2014, 17:01 | #10 |
Участник
|
.NET business connector
Hi,
I have an idea for solving my problem, and I would like to discus it with you. To remember situation: I have five AOS'es (AOS0 - AOS4) over five virtual machines. AOS0 is my load balancer. See attachment. I have installed .Net business connector only on the mashine where load balancer reside. My idea is to install .Net Business Connector on the all machines where AOS'es are installed. What do you think? Regards, Последний раз редактировалось ist; 08.01.2014 в 17:58. |
|
08.01.2014, 17:41 | #11 |
Читатель
|
|
|
Теги |
aif |
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|