Thursday, August 18, 2011

How to Increase Message Size Quota

Issue:
The maximum message size quota for incoming messages (65536) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element.

Solution:
Increase the following properties in web.config
maxBufferSize="20000000"
maxBufferPoolSize="20000000"
maxReceivedMessageSize="20000000"
maxStringContentLength="20000000"
maxArrayLength="20000000"

Second Day of Adwords Campaign

After one day of running Adwords campaign: 1359 impressions, 2 clicks, $.80

6055847281_d1d512e59c.jpg

Wednesday, August 17, 2011

XigniteMetalsSoapClient

using RemoteMetals = NopSolutions.NopCommerce.Web.xMetalService;

private xMetalService.XigniteMetalsSoapClient proxy;

proxy = new xMetalService.XigniteMetalsSoapClient("XigniteMetalsSoap");
RemoteMetals.Header header = new RemoteMetals.Header();
header.Username = "xxxxx";
header.Password = "yyyyy";
RemoteMetals.LondonFixing objLondonFixing = proxy.GetLastLondonFixing(header, RemoteMetals.FixingTypes.LondonGold, RemoteMetals.FixingCurrencyTypes.USD);

chart = proxy.GetLondonFixingChart(header, RemoteMetals.FixingTypes.LondonGold, RemoteMetals.PeriodType.Morning, RemoteMetals.FixingCurrencyTypes.USD, "8/15/2010", "8/15/2011", RemoteMetals.StockChartStyles.Line, 600, 400);

if (objLondonFixing == null)
{
/// add error processing here
/// this condition could be caused by an HTTP error (404,500...)
Response.Write("Service is unavailable at this time.");
}
else
{
switch (objLondonFixing.Outcome)
{
case RemoteMetals.OutcomeTypes.Success:
/// add processing for displaying the results, e.g.
/// display the value for Value
/// other values could be consumed in the same manner
Response.Write(objLondonFixing.Value);
Response.Write(chart.Url);
break;
default:
/// add processing for handling request problems, e.g.
/// you could pass back the info message received from the service
Response.Write(objLondonFixing.Message);
break;
}
}

Trying Out Google Adwords

6053595665_bc6c1b46c4.jpg

6053595599_557084e704.jpg

Sunday, August 14, 2011

Wednesday, August 10, 2011

New C# 4.0 Features

Parameters

  • Optional

  • Named

  • Overload Resolution


Co- and Contravariance

  • Covariance - same relationships

  • Contracovariance - inverted relationships


dynamic

  • run-time

  • DLR - Dynamic Language Run-time


New Compiler Options

  • Embedding COM Interop type information

  • Specifying an app.config file to the C# compiler

Wednesday, August 3, 2011