Total Pageviews

Search This Blog

Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts

Wednesday, July 21, 2010

Troubleshooting Dynamics AX 2009 AIF, WCF, IIS on Windows Server 2008 R2

Issue: We installed AIF on Windows Server 2008 R2 running 64 bit, but was unable to browse the website as it was throwing HTTP – 403 Error and the application pool was getting stopped by itself.

Checked the application pool service account and tried restarting the application pool. Restarted IIS but still the application pool stops when we browse the website.

Also, IIS was unable to recognise the .svc extension.


Troubleshooting Steps:

a. Firstly, .svc extension was not getting recognized by IIS, So had to run the servicemodelreg utility which registers WCF (.svc mime type and related handlers into IIS)









http://msdn.microsoft.com/en-us/library/ms732012.aspx

b. Then, the next error which I got was aspnetcompatibility, which got resolved by turning off the aspnetcompatibility flag in web.config










c. Then, encountered this error, and it got resolved by giving permission for the business connector account to read/write to %windir%/temp folder






d. Finally, in order to access the webservice from a different machine, had to go turn on the anonymous access at DynamicsAXAIF website.

Monday, May 3, 2010

Dynamics AX 6.0 and Windows Workflow 4.0

Thanks to the blogger for posting this cool link about upcoming version of AX and the new capabilities which it provides with respect to WF 4.0 and .Net stack.

http://ax4all.blogspot.com/2010/05/dynamics-ax-60-and-wf4.html

It also has a link to Channel 9 video at the end.

Saturday, September 5, 2009

Create a Dynamics AX 2009 AIF WCF Web Service

This video talks about AIF in Dynamics AX 2009. This is a good video for a beginner to get started with creating AIF Services

It shows an example of how to:
a. Create a Service
b. Add new operations to the Service
c. Extend the service
d. Deploy the service
e. Consume the service


http://beta.channel9.msdn.com/posts/SanjayJain/Microsoft-Dynamics-AX-2009-AIF-Web-Services-Screencast/

Thursday, October 16, 2008

Troubleshooting WCF WebService

Recently while developing a WCF Service for AX Employee Data, came across this particular
Error:
Type 'System.Xml.XmlDocument' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.

Resolution:
Put xmlserializerformat just above your datamethod in your interface class.
[OperationContract]
[XmlSerializerFormat]
XmlDocument GetEmployees();