My previous article show how to capture network traffic between outlook client and exchange server with RPC over TCP. Now lets look at how to capture network traffic with RPC over HTTP.
1. Enable "Outlook Anywhere" on your Exchange server. Follow this link Enable Outlook Anywhere.
2. Now enable your outlook to use HTTP. Follow this link Setting Up Email (RPC over HTTPS).
Since all prep has now completed just follow the steps...
public string aboutme {
var known = { { "C#" , "Javascript" }, { "ASP.NET", "MVC" } };
return known.ToJson();
}
Friday, 16 December 2011
Capturing network traffic between outlook client and exchange server (RPC over TCP)

Analysing network traffic between outlook client and exchange server will help you decide network requirements connecting your datacenters to your users (ie.. using RPC over TCP). Wireshark is a simple tool that we are going to use to capture network traffic [ Download Wireshark ].
Information you should know before hand:
- IP address of...
Tuesday, 13 December 2011
Using images in Microsoft’s Sharepoint Wiki

Today I was creating a wiki page for a project and want to show the design inside the wiki page. Ok that was not too difficult as wiki page editor provides an option to select an image. So I have tried using the link to image as "file://C:/Users/saif/Desktop/elapsedtime.png" but that did not work.
So I have created a picture library as per...
Labels:
TFS
Wednesday, 7 December 2011
ASP.NET MVC using fileresult to export data in unicode
Exporting data to a file is a common feature websites provides to its customers. Now consider if the website is used by customers around the world, then this export data should support localization and globalization. Here is the snippet of code relating to WriteFile() for exporting data:-
protected override void WriteFile(HttpResponseBase response)
{
response.Clear();
response.ClearContent();
...
Labels:
ASP.NET MVC
ASP.NET MVC not rendering correct dateformat using CultureInfo
Reading "DateTimeFormat" using cultureinfo is not getting clients date format with the following code :-
CultureInfo cultureInfo = CultureInfo.CreateSpecificCulture(HttpContext.Current.Request.UserLanguages[0]);
DateTimeFormatInfo dtInfo = cultureInfo.DateTimeFormat;
After debugging the code, the dateformat is not honouring globalization ie.. if the client is in US but application is deployed in UK then the format is rendered...
Labels:
ASP.NET MVC
Tuesday, 6 December 2011
Using session locking with EnableSession = true
Locking session object for each webservice is simple as just adding [WebMethod(EnableSession = true)] for each of the webmethods that require locking. At the same time if you also want to lock an object that is/will be part of the session object then
Declare a static object
public static object lock_updatesharevalue = new object();
Now use this object in the webmethod to enable locking for an object in session
[WebMethod(EnableSession...
Labels:
ASP.NET,
ASP.NET MVC
Monday, 5 December 2011
NHibernate : Arithmetic overflow error converting expression to data type int
As mentioned in SQL Server Error : Arithmetic overflow error converting expression to data type int article to use cast() in sql to correctly typecast for large numbers, Now this can be achieved using NHibernate & Fluent Hibernate as per the snippet below:-
var criteria = session.CreateCriteria();
criteria.SetProjection(Projections.ProjectionList()
.Add(Projections.Count("ID").As("ID"))
.Add(Projections.Sum(Projections.Cast(NHibernateUtil.Int64,...
Labels:
NHibernate
Friday, 2 December 2011
SQL Server Error : Arithmetic overflow error converting expression to data type int
After running a simple aggregate sql "select sum(imagesize) from images" is producing following error:-
Arithmetic overflow error converting expression to data type int
The table "images" is a very simple, having datatype of imagesize as bigint. The table has at least 2 million rows and should not be a problem at all.
Tried number of options but no luck and finally found out the issue is actually because of the aggregate function...
Labels:
SQL SERVER 2008
Subscribe to:
Posts (Atom)