-
Recent Posts
Archives
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
Categories
Meta
Monthly Archives: January 2011
Passing Entity Framework edmx over WCF Services, using var at receiving end
1. Create a WCF Service2. Create an entity model with the Beancurds table3. Change the IService.cs file as follow[ServiceContract]public interface IService{ [OperationContract] List<BeancurdModel.Beancurd> GetData();}4. Change the Service.cs file as follow.public class Service : IService{public List<BeancurdModel.Beancurd> GetData(){BeancurdModel.BeancurdEntities context = new BeancurdModel.BeancurdEntities(); var … Continue reading
Add, Update, or Remove a Service Reference – WCF
For example, below is my WCF Service URL. http://localhost/WCFServiceBC/Service.svc 1. Right click the project in Solution Explorer then choose Add Service Reference. 2. Paste the address, click Go then click OK. 3. You will see your reference added. In my … Continue reading
Build Your First ASP.NET Application with ASP.NET Web Forms (Video)
If you are looking for a video “Build Your First ASP.NET Application with ASP.NET Web Forms” in asp.net web site then you will get to involve in MS SQL Server and Gridview control which is somehow complicated for a first … Continue reading
Posted in .Net
20 Comments
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 – When get the return from WCF Services.
If you hit the error message above and your Visual Studio looks like below. Open web.config file and look for the basicHttpBinding and change maxBufferSize and masReceivedMessageSize like the follow. <basicHttpBinding> <binding name=“BasicHttpBinding_IService“ closeTimeout=“00:01:00“ openTimeout=“00:01:00“ receiveTimeout=“00:10:00“ sendTimeout=“00:01:00“ … Continue reading
Posted in .Net
4 Comments
Call a Method / member function dynamically using Type.InvokeMember
When you come into a situation you can only know what method to call during run time then the code below will be extremely useful to you. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; namespace ConAppInvoke … Continue reading
Posted in .Net
Leave a comment
How to: Bracket Data Submissions by Using Transactions (LINQ to Entity)
Once you have created the Entity Framework then you can insert data to your database. The code below will insert the data into 2 tables, Orders and OrderDetails. In error free condition this piece of code will run perfectly. … Continue reading
Posted in .Net
Leave a comment
WordPress search is marvelous (search your own blog contents)
I could not remember when I have created a blog about datetime casting issue in my blog. Thus, I just typed date in the search box. The result came back with what I really wanted and it was posted back … Continue reading
Value passing to WCF Service using the default generated WCF code
When you create a WCF Service, There are 2 code files created IService.cs and Service.cs. IService.csusing System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.ServiceModel.Web;using System.Text; // NOTE: You can use the “Rename” command on the “Refactor” menu to change the interface name … Continue reading
Posted in .Net
5 Comments
Free ebook: Moving to Microsoft Visual Studio 2010
In fact it is good for new VS 2010 developers too. http://blogs.msdn.com/b/microsoft_press/archive/2010/09/13/free-ebook-moving-to-microsoft-visual-studio-2010.aspx