(SOLVED) Visual Studio 2010 user interface is unresponsive
The Visual Studio 2010 user interface has a tendency to become unresponsive at times. I discovered VS2010 has a configuration option that you can adjust to help with this problem.

You can uncheck the ‘Automatically adjust visual experience based on client performance’ checkbox @ Tools > options > Environment > General. This seems to have made a difference and VS2010 doesn’t lock-up as much.
(Solved) – Silverlight/WCF Service in WebSite throws Could not load file or assembly 'xxx' or one of its dependencies. The system cannot find the file specified
Instead of creating a separate application that hosted a WCF service used by a Silverlight 3.0 application within a asp.net website I just added the service to the parent web site. Over time the service would throw this error. It would seem that having a WCF service in a silverlight asp.net website that doesn’t use RIA has all sorts of compile problems. To work around this problem I removed the WCF service from the parent application and moved it to it’s WCF project and update the Silverlight application to make a call from a separate URL.
(SOLVED) IIS 7.0 – Object moved 302 error
Came across this and wanted to blog it. If you are using SSL in a IIS 7.0 website and you update the SSL cert you will receive this error when IIS 7.0 attempts to redirect from http to https. Check the SSL certificate assignment for the website. Most likely it won’t have one.
HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: https://xxxxx.com/Encrypted/Login.aspx?ReturnUrl=%2fdefault.aspx
Server: Microsoft-IIS/7.0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
Date: Sat, 16 Jan 2010 00:33:31 GMT
Content-Length: 188
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="https://xxxx.com/Encrypted/Login.aspx?ReturnUrl=%2fdefault.aspx">here</a>.</h2>
</body></html>
(SOLVED) Dynamics AX 2009 – Receive Purchase Order Line using x++ & .Net Business Connector

We needed to expose a WCF service so that our logistics vendors could execute a purchase order
line receipt. There were a lot of results returned from a google & yahoo search but a good portion
of them weren’t very specific. After hours of trial and error I came up with the x++ code below
that includes a serial number update through the Inventory Dimension.
public static void receivePurchLine(PackingSlipId _packSlipId, PurchId _purchId,
Qty _qty, ItemId _itemId, LineNum _lineNum, str _inventLocation)
{
PurchFormLetter purchFormLetter;
ParmId parmId;
PurchParmTable purchParmTable;
PurchParmLine purchParmLine;
PurchTable purchTable;
PurchLine purchLine;
InventDim currentInventDim;
InventDim updatedInventDim;
;
purchTable = PurchTable::find(_purchId);
purchFormLetter = PurchFormLetter::construct(DocumentStatus::PackingSlip);
purchFormLetter.createParmUpdate();
purchFormLetter.createParmTable(purchParmTable, purchTable);
purchParmTable.Num = _packSlipId;
purchParmTable.insert();
while select purchLine
where purchLine.PurchId == purchTable.PurchId
{
purchParmLine.InitFromPurchLine(purchLine);
purchParmLine.ParmId = purchParmTable.ParmId;
purchParmLine.TableRefId = purchParmTable.TableRefId;
if (purchLine.ItemId == _itemId && purchLine.LineNum == _lineNum)
{
currentInventDim = InventDim::find(purchLine.InventDimId);
if (currentInventDim.RecId)
{
updatedInventDim =
InventDim::findOrCreateOwnCondDispSiteLocation(currentInventDim.configId,
currentInventDim.InventSizeId,
currentInventDim.InventColorId,
currentInventDim.InventSiteId,
_inventLocation);
if (!updatedInventDim.RecId)
{
throw error('Unable to find or create destination inventory dimension');
}
}
purchParmLine.ReceiveNow = _qty;
purchParmLine.RemainAfter = purchLine.QtyOrdered - _qty;
purchParmLine.InventDimId = updatedInventDim.inventDimId;
}
else
{
purchParmLine.ReceiveNow = 0;
purchParmLine.RemainAfter = purchLine.QtyOrdered;
}
purchParmLine.setQty(DocumentStatus::PackingSlip, false, true);
purchParmLine.setLineAmount();
purchParmLine.insert();
}
purchFormLetter.proforma (false); // proforma ?
purchFormLetter.printFormLetter(false); // print ?
purchFormLetter.specQty (PurchUpdate::All); // what to update?
purchFormLetter.transDate (today()); // update date
purchFormLetter.run();
}
Speed Test
