I actually use axservices project to export xml orders from the website into Dynamics AX 2009. There is a AGR GAC Assemblies solution with one particular project called WebDataservices.OMS where I had made the code change to accept three new fields. Now when I build the project and install the MSI file in my dev instance, I start getting this error
The server for this is WebServ02 where I installed the new MSI file there also. I made the changes to the schema as well. The schema part works fine, when i try to pass an order into AX from the website, the order passes well. I will obviously not be able to see the new fields in AX but the order is exported. However when I make changes to the new assemblies and install the MSI file, and then try to pass the order, I get this error –
Can anybody make anything out of it, if at all suggest some changes. Thanks in advance.
Order Could Not Export due to Server Error
WebOrder: 00007204, Failed Export. Status code: 500 Message returned: HTTP Server returned bad statusCode: 500, statusMessage: Internal Server Error text content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "[www.w3.org/.../xhtml1-strict.dtd"](http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd)>
<html xmlns="[http://www.w3.org/1999/xhtml"](http://www.w3.org/1999/xhtml)>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>500 - Internal server error.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
<h2>500 - Internal server error.</h2>
<h3>There is a problem with the resource you are looking for, and it cannot be displayed.</h3>
</fieldset></div>
</div>
</body>
</html>
when I check in the error logs, this is what is shown,
Microsoft Dynamics AX Business Connector Session 5. An X++ exception has occurred. Object ‘CLRObject’ could not be created"
So this the part of the code I made changes to. It is part of clslineitem class (which basically has all the fields required to make an order). I added three new fields personalization1, personalization2, personalization3.
<XmlElement([ElementName]:="personalization1")> _
Public Property Personalization1() As String
Get
Return Me._personalization1
End Get
Set(ByVal value As String)
Me._personalization1 = value
End Set
End Property
<XmlElement([ElementName]:="personalization2")> _
Public Property Personalization2() As String
Get
Return Me._personalization2
End Get
Set(ByVal value As String)
Me._personalization2 = value
End Set
End Property
<XmlElement([ElementName]:="personalization3")> _
Public Property Personalization3() As String
Get
Return Me._personalization3
End Get
Set(ByVal value As String)
Me._personalization3 = value
End Set
End Property
And then I built this project called AGR GAC Assemblies Deploy
I installed the new MSI file. When i tried to export the order again into AX, I get this error.