[System.ServiceModel.FaultException<TestApplication.WebService.AifFault>]: {"Creation has been canceled."}
-
Wednesday, July 04, 2012 10:35 AM
Hi, i am using AIF codes. i based my code here: http://blogs.msdn.com/b/dynamicsaxscm/archive/2011/07/06/product-item-data-management-services.aspx. when i am trying to run my code, this appears on my exception:
e.GetBaseException() {"Creation has been canceled."} [System.ServiceModel.FaultException<TestApplication.WebService.AifFault>]: {"Creation has been canceled."} Data: {System.Collections.ListDictionaryInternal} HelpLink: null InnerException: null Message: "Creation has been canceled." Source: "mscorlib" StackTrace: "\r\nServer stack trace: \r\n at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)\r\n at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)\r\n at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)\r\n at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)\r\n\r\nException rethrown at [0]: \r\n at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)\r\n at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)\r\n at TestApplication.WebService.EcoResProductService.create(EcoResProductServiceCreateRequest request)\r\n at TestApplication.WebService.EcoResProductServiceClient.TestApplication.WebService.EcoResProductService.create(EcoResProductServi ceCreateRequest request) in C:\\Users\\i-dsalvador\\Desktop\\ProductManagement\\TestApplication\\Service References\\WebService\\Reference.cs:line 4586\r\n at TestApplication.WebService.EcoResProductServiceClient.create(CallContext CallContext, AxdEcoResProduct EcoResProduct) in C:\\Users\\i-dsalvador\\Desktop\\ProductManagement\\TestApplication\\Service References\\WebService\\Reference.cs:line 4593\r\n at TestApplication.Program.CreateDistinctProduct() in C:\\Users\\i-dsalvador\\Desktop\\ProductManagement\\TestApplication\\Program.cs:line 63" TargetSite: {Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)}my c# code is this:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using TestApplication.WebService; namespace TestApplication { class Program { static void Main(string[] args) { CreateDistinctProduct(); Console.WriteLine("done"); Console.ReadLine(); } public static void CreateDistinctProduct() { var distinctProduct = new AxdEntity_Product_EcoResDistinctProduct() { DisplayProductNumber = "Bulb60W", ProductType = AxdEnum_EcoResProductType.Item, SearchName = "Bulb60W" }; distinctProduct.Translation = new AxdEntity_Translation[1]; distinctProduct.Translation[0] = new AxdEntity_Translation { LanguageId = "en-us", Name = "Transparent Bulb 60W" }; distinctProduct.Identifier = new AxdEntity_Identifier[1]; distinctProduct.Identifier[0] = new AxdEntity_Identifier { ProductNumber = "Bulb60W" }; distinctProduct.StorageDimGroup = new AxdEntity_StorageDimGroup[1]; distinctProduct.StorageDimGroup[0] = new AxdEntity_StorageDimGroup() { Product = "Bulb60W", StorageDimensionGroup = "Std-Dim" }; distinctProduct.TrackingDimGroup = new AxdEntity_TrackingDimGroup[1]; distinctProduct.TrackingDimGroup[0] = new AxdEntity_TrackingDimGroup() { Product = "Bulb60W", TrackingDimensionGroup = "Std-Dim" }; var axdProduct = new AxdEcoResProduct() { Product = new AxdEntity_Product_EcoResProduct[1] { distinctProduct } }; var callContext = new CallContext() { Company = "ceu", Language = "en-us" }; var service = new EcoResProductServiceClient(); try { service.create(callContext, axdProduct); } catch (Exception e) { Console.WriteLine(e.GetBaseException().ToString()); Console.ReadKey(); } } } }my app.config is this:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <bindings> <netTcpBinding> <binding name="NetTcpBinding_EcoResProductMasterDimValueService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> <message clientCredentialType="Windows" /> </security> </binding> <binding name="NetTcpBinding_EcoResProductService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> <message clientCredentialType="Windows" /> </security> </binding> <binding name="NetTcpBinding_InventDimCombinationService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> <message clientCredentialType="Windows" /> </security> </binding> <binding name="NetTcpBinding_ItemService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" listenBacklog="10" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Transport"> <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> <message clientCredentialType="Windows" /> </security> </binding> </netTcpBinding> </bindings> <client> <endpoint address="net.tcp://ph-wwts22:8201/DynamicsAx/Services/ProductItemManagement" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_EcoResProductMasterDimValueService" contract="WebService.EcoResProductMasterDimValueService" name="NetTcpBinding_EcoResProductMasterDimValueService"> <identity> <servicePrincipalName value="host/ph-wwts22.ph-wwos.com" /> </identity> </endpoint> <endpoint address="net.tcp://ph-wwts22:8201/DynamicsAx/Services/ProductItemManagement" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_EcoResProductService" contract="WebService.EcoResProductService" name="NetTcpBinding_EcoResProductService"> <identity> <servicePrincipalName value="host/ph-wwts22.ph-wwos.com" /> </identity> </endpoint> <endpoint address="net.tcp://ph-wwts22:8201/DynamicsAx/Services/ProductItemManagement" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_InventDimCombinationService" contract="WebService.InventDimCombinationService" name="NetTcpBinding_InventDimCombinationService"> <identity> <servicePrincipalName value="host/ph-wwts22.ph-wwos.com" /> </identity> </endpoint> <endpoint address="net.tcp://ph-wwts22:8201/DynamicsAx/Services/ProductItemManagement" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_ItemService" contract="WebService.ItemService" name="NetTcpBinding_ItemService"> <identity> <servicePrincipalName value="host/ph-wwts22.ph-wwos.com" /> </identity> </endpoint> </client> </system.serviceModel> </configuration>
could somebody please help me in resolving this issue. thanks
- Moved by Jack Zhai - MSFTMicrosoft Contingent Staff Thursday, July 05, 2012 10:26 AM Not the VS web and load tests issue. (From:Visual Studio Web Performance and Load Testing)
All Replies
-
Thursday, July 05, 2012 10:25 AM
Hi Donn,
Thank you for posting in the MSDN forum. It seems that it is not the correct forum for this issue, since this forum is to discuss VS Web tests and load tests. I am moving your question to the moderator forum ("Where is the forum for..?"). The owner of the forum will direct you to a right forum.
It seems that this issue is related to the Microsoft Dynamics AX, maybe you could post this issue in http://community.dynamics.com/product/ax/f/33.aspx for better support. Anyway, I move it to the moderator forum. Thanks for your understanding.
Best Regards,
Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, July 09, 2012 4:39 PM
- Unproposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, July 16, 2012 8:14 PM
-
Monday, July 09, 2012 4:57 PMModerator
Try http://social.msdn.microsoft.com/Forums/en-US/wcf/threads
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- Proposed As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, July 16, 2012 8:14 PM
- Marked As Answer by Ed Price - MSFTMicrosoft Employee, Owner Monday, July 23, 2012 8:48 PM

