AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX: За рубежом > DAX in English
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 15.12.2013, 20:42   #1  
ist is offline
ist
Участник
 
60 / 10 (1) +
Регистрация: 29.07.2007
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  
gl00mie is offline
gl00mie
Участник
MCBMSS
Most Valuable Professional
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии AXAWARD 2013
Лучший по профессии 2011
Лучший по профессии 2009
 
3,684 / 5798 (201) ++++++++++
Регистрация: 28.11.2005
Адрес: Москва
Записей в блоге: 3
Цитата:
Сообщение от ist Посмотреть сообщение
One of ASP.net MVC application forms 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.
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  
ist is offline
ist
Участник
 
60 / 10 (1) +
Регистрация: 29.07.2007
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  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
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  
ist is offline
ist
Участник
 
60 / 10 (1) +
Регистрация: 29.07.2007
Shure. The exception is: ClrObject static method invocation error.
Старый 16.12.2013, 14:06   #6  
kashperuk is offline
kashperuk
Участник
Аватар для kashperuk
MCBMSS
Соотечественники
Сотрудники Microsoft Dynamics
Лучший по профессии 2017
Лучший по профессии 2015
Лучший по профессии 2014
Лучший по профессии 2011
Лучший по профессии 2009
 
4,361 / 2084 (78) +++++++++
Регистрация: 30.05.2004
Адрес: Atlanta, GA, USA
Цитата:
Сообщение от ist Посмотреть сообщение
Shure. The exception is: ClrObject static method invocation error.
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  
ist is offline
ist
Участник
 
60 / 10 (1) +
Регистрация: 29.07.2007
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  
Alex_KD is offline
Alex_KD
Участник
AxAssist
MCBMSS
Соотечественники
 
522 / 362 (14) ++++++
Регистрация: 06.07.2006
Адрес: Melbourne, Down Under
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  
ist is offline
ist
Участник
 
60 / 10 (1) +
Регистрация: 29.07.2007
Цитата:
Сообщение от Alex_KD Посмотреть сообщение
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
Hi Alex,

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  
ist is offline
ist
Участник
 
60 / 10 (1) +
Регистрация: 29.07.2007
.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,
Миниатюры
Нажмите на изображение для увеличения
Название: AOS.png
Просмотров: 432
Размер:	20.7 Кб
ID:	8684  

Последний раз редактировалось ist; 08.01.2014 в 17:58.
Старый 08.01.2014, 17:41   #11  
b_nosoff is offline
b_nosoff
Читатель
Аватар для b_nosoff
MCP
MCBMSS
 
197 / 143 (5) +++++
Регистрация: 01.12.2004
Адрес: Msk
Записей в блоге: 13
Lightbulb
Цитата:
Сообщение от ist Посмотреть сообщение
What do you mean?
It's worth trying!
__________________
Axapta non erubescit
Теги
aif

 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
daxdilip: Fiddler - Good tool to check EP web page, custom websites, performance and AIF Web services Blog bot DAX Blogs 0 04.12.2010 14:11
axaptasource: Fiddler – Good tool to check EP web page, custom websites, performance and AIF Web services Blog bot DAX Blogs 0 04.12.2010 14:11
emeadaxsupport: What changes are required if we change the Business Connector Proxy used by AX 2009 Generated AIF Web services Blog bot DAX Blogs 0 29.03.2010 15:05
Arijit Basu: Infopath, Web Services & AX Integration Blog bot DAX Blogs 0 04.05.2008 23:05
Inside Dynamics AX 4.0: The Web Framework Blog bot DAX Blogs 0 25.10.2007 03:04

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 05:41.