HECI CODES

By ckane at January 17, 2010 08:44
Filed Under:

Just completed an update to our Heci Codes:

http://www.hecicodes.com

(SOLVED) Visual Studio 2010 user interface is unresponsive

By ckane at January 17, 2010 08:38
Filed Under: Visual Studio 2010

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.

VS2010_UI

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

By ckane at January 17, 2010 08:30
Filed Under: Silverlight

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

By ckane at January 17, 2010 08:19
Filed Under: IIS

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

By ckane at January 17, 2010 08:14
Filed Under: Microsoft Axapta 2009
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

By ckane at January 17, 2010 08:02
Filed Under: General

685059460

Microsoft Tag

By ckane at October 27, 2009 00:06
Filed Under:

Internet Speeds & Costs Around the World

By ckane at October 25, 2009 18:03
Filed Under:

wwwspeedsworld

Erin Andrews

By ckane at September 20, 2009 06:40
Filed Under:

What can I say? She’s does a great job and has gotten some really bad press lately. Plus. she is a Gator!

http://en.wikipedia.org/wiki/Erin_Andrews

Axapta Business Connector To Import Address and Performance

By ckane at August 03, 2009 13:14
Filed Under: Microsoft Axapta 2009

So, importing addresses the correct way, according to professionals we have talked to, is to import by using the DirParty and PartyId values to do the inserts. Let me tell you this is DOG slow and performance is horrible. If you bypass and just use the AddrTableId from say the CustTable performance is a huge improvement.

I don’t know what Microsoft (or it’s previous developers were thinking) but the DirParty and DirPartyRelationships need some SERIOUS improvement in performance or just get rid of them all together.

Imports using the Business Connector for any other data other than Addresses FLY!

Windows 7 And OneCare

By ckane at July 25, 2009 04:16
Filed Under: Operating Systems

One care doesn’t install on Windows 7 with an invalid Operating System message.

I would think Microsoft’s OWN products would work with Windows 7.

Windows 7 Pricing

By ckane at July 24, 2009 19:22
Filed Under: Operating Systems

So here’s the low-down on pricing for Windows 7. The estimated retail prices for upgrade packaged retail product of Windows 7 in the U.S. are:

  • Windows 7 Home Premium (Upgrade): $119.99
  • Windows 7 Professional (Upgrade): $199.99
  • Windows 7 Ultimate (Upgrade): $219.99

And the estimated retail prices for full packaged retail product of Windows 7 in the U.S. are:

  • Windows 7 Home Premium (Full): $199.99
  • Windows 7 Professional (Full): $299.99
  • Windows 7 Ultimate (Full): $319.99

MsiGetProductInfo failed to retrieve ProductVersion for package with Product Code = '{A43BF6A5-D5F0-4AAA-BF41-65995063EC44}'. Error code: 1608

By ckane at July 16, 2009 22:08
Filed Under: Sql Server 2005/2008

Thanks to Yao-cheng Teng @ http://groups.google.com/group/microsoft.public.sqlserver.setup/browse_thread/thread/3295c74da299d0e0?pli=1

The message I got is:
MsiGetProductInfo failed to retrieve ProductVersion for package with Product
Code = '{A43BF6A5-D5F0-4AAA-BF41-65995063EC44}'. Error code: 1608.

My Work-around steps are:
1. Reverse the GUID and search registry for 5A6FB34A. Then I got the
following result:

[HKEY_CLASSES_ROOT\Installer\Features\5A6FB34A0F5DAAA4FB1456990536CE44]
"MSXMLSYS"=""

[HKEY_CLASSES_ROOT\Installer\Products\5A6FB34A0F5DAAA4FB1456990536CE44]
"AdvertiseFlags"=dword:00000184
"Assignment"=dword:00000001
"AuthorizedLUAApp"=dword:00000000
"Clients"=hex:3a,00,00,00,00,00
"InstanceType"=dword:00000000
"Language"=dword:00000409
"PackageCode"="DE7407CFE6F395A47B7DFAD7A9682916"
"ProductName"="MSXML 6.0 Parser"
"Version"=dword:060a0469

[HKEY_CLASSES_ROOT\Installer\UpgradeCodes\7AB711B11CB5E91428E0D7F4F314C2B7]
"5A6FB34A0F5DAAA4FB1456990536CE44"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Features\5A6FB34A0F5DAAA4FB1 456990536CE44]
"MSXMLSYS"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\UpgradeCodes\7AB711B11CB5E91 428E0D7F4F314C2B7]
"5A6FB34A0F5DAAA4FB1456990536CE44"=""

2. Delete two keys which have "UpgradeCodes" in them and leave others
untouched.
[HKEY_CLASSES_ROOT\Installer\UpgradeCodes\7AB711B11CB5E91428E0D7F4F314C2B7]
"5A6FB34A0F5DAAA4FB1456990536CE44"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\UpgradeCodes\7AB711B11CB5E91 428E0D7F4F314C2B7]
"5A6FB34A0F5DAAA4FB1456990536CE44"=""

3. Install SQL Server 2008 again, which is developer version for me, and it
went through without any hassle.

Disabling a row in a Grid based off of a value in the source

By ckane at July 14, 2009 19:47
Filed Under:

So I needed to disable a row in a Grid based on a value in one of the columns. I found an example on Microsoft’s website and wanted to document it here:

Overwriting the ‘active’ method on the datasource:

public int active()
{
    int ret;

    ret = super();
    if (MDSI_ConfigurationLine.MDSI_ConfigurationLineStatusId == 'CLOSED')
    {
        MDSI_ConfigurationLine_ds.allowEdit(false);
    }
    else
    {
        MDSI_ConfigurationLine_ds.allowEdit(true);
    }

    return ret;
}

You need to make sure you have the else to allowEdit otherwise all of rows will be disabled.

Comcast network update results

By ckane at July 11, 2009 07:11
Filed Under: General

So, Comcast just updated their network and I ran a speed test. Of course, I pay a little more for business service here at home but...