Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 143529

: error CS0234: The type or namespace name 'Application' does not exist in the namespace 'Microsoft.Dynamics.Ax' (are you missing an assembly reference?) - AX 2012

$
0
0

Developed a custom service for product active date update in AX 2012.  As below. 

DataContract class:

[DataContractAttribute]
class ProductupdateDC
{
ProductId productId;
LiveDate LiveDate;

}

[ DataMemberAttribute('productId')]

public ProductId parmProductId(ProductId _productId= productId)

{

productId =_productId;

return productId;

}

[ DataMemberAttribute('LiveDate')]

public LiveDate parmLiveDate(LiveDate _LiveDate = LiveDate)

{

LiveDate =_LiveDate;

return LiveDate;

}

Service Class:

class ProductupdateService 
{
ProductupdateService productservice ;
}

public void new()
{
;
super();
}

[SysEntryPointAttribute(true),

AifCollectionTypeAttribute('ProductupdateDC', Types::Class)]

public void Update( ProductupdateDC ProductupdateDC)

{
XProductTable xproductTable;
ProductId _productId;
LiveToDate _LiveDate;

_productId = ProductupdateDC.parmProductId();

productTable = xproductTable::find(_productId, true);

{
if(xproductTable)
{
ttsBegin;
xproductTable.LiveDate = ProductupdateDC.parmLiveDate();
xproductTable.update();
ttsCommit;
}
}

}

Created a service and added class. Then deployed service to service group. After generating WSDL - testing with wcfclienttest - getting error - Failed to add a service. Service metadata is not accessible. Make sure your service is running and exposing metadata.  Error Details - : error CS0234: The type or namespace name 'Application' does not exist in the namespace 'Microsoft.Dynamics.Ax' (are you missing an assembly reference?).

 

Need help figuring out issue. 


Viewing all articles
Browse latest Browse all 143529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>