Microsoft Silverlight Client for Facebook available

22. May 2010

 

image

Microsoft Silverlight 4 Beta Client for Facebook

The Microsoft Silverlight 4 Client for Facebook has been released as a developer preview sample. To use it you must have Silverlight 4 developer builds installed.

Silverlight

Blog Changes

4. May 2010

So I updated the blog to BlogEngine.NET version 1.6.1.0 and decided to do a Theme change. Hopefully this will work out just fine.

General

(SOLVED) LINQ to SQL : SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM

16. April 2010

This annoying error when calling SubmitChanges() from a LINQ to SQL DataContext can occur if you are using a default value for a DateCreated DateTime column which is NOT NULL, and you add a table to the LINQ to SQL designer.  For whatever reason, it doesn’t pick up that it has a default value, so you need to highlight the column and go to properties, and manually set the ‘Auto Generated Value’ property to ‘True.’

Thanks blogcoward

LINQ

(SOLVED) Visual Studio 2010 user interface is unresponsive

17. January 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.

Visual Studio 2010

(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

17. January 2010

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.

Silverlight

(SOLVED) IIS 7.0 – Object moved 302 error

17. January 2010

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>

Internet Infromation Server

(SOLVED) Dynamics AX 2009 – Receive Purchase Order Line using x++ & .Net Business Connector

17. January 2010

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(); }

 

Microsoft Axapta 2009 , ,

Speed Test

17. January 2010

685059460

General