My Thoughts & Views

Archive for the ‘dotnet’ Category

My last Saturday & Sunday was filled with full of excitement, as I spent my time at Tech.Ed, organised by BDotNet.in & BITPro Communities, listening to their wonderful sessions. It was sponsered by Infragistics, telerik,ineta & Microsoft UGSS. It was really a wonderful experience.The main reason for me to attend this event was to know about Virtualization, Cloud Computing but this event helped me to understand the technologies, which I could never have known.

I met some of the wonderful people, got to know lots of upcoming new technologies & had lots of dreams about the various skillsets that I can include in my resume :).

Day 1: (20 June 2009)

The session started with a Keynote by Mr.Ramkumar. His session was interesting start for the other sessions, as the keynote walked us through the various technologies like, Virtualization, Cloud Computing, SaaS, SOA,EAI & reducing the carbon foot print.

Next session was really interesting & inspiring, got to learn about latest features of Windows 7 by Vijay & Vic , Location & Sensor demo’s were really interesting.This session was very informative and was excited to know a product from MS with such nice features.

Then we had a session on ASP.NET 4.0 by Chaitra, which was helpful (BTW,I am ASP.NET Web Apps Developer & It was something i was looking for) as it gave me an insight into the upcoming features. Waiting to use it for any of the projects.

Then the next session was on Solving Integration Challenges with BizTalk by Kashi, I knew the name “BizTalk” but didn’t know how it will be used in Enterprises, & this session really gave me an insight into the world of BizTalk.

After Lunch, we had session on Biztalk & WCF by Meena,this session even further increased my curiosity, I worked on a project on WCF & this particular session made me to understand BizTalk better by means of WCF.


And after Biztalk & WCF session, the next one was by Vic on Silverlight 3. I liked this technology & have plans to work on a project which I was thinking for some time & was waiting for some Ideas, & this session provided me with many more options.


After all these technical sessions came the Management session by Sanath, initially I had plans to skip this session, but stayed there on my friends request, I am thankful to him. I liked the session & this was the inspiring session. After reaching home first thing I did was to find the videos shown in this session on youtube.


Day 2: (21 June 2009)


The day started with Keynote by Vic, he talked about Infragistics & showed demo of their wonderful Controls.

The Next session was on Micosoft Azure by Janakiram, I had very little idea about it, but this session clarified most of the things which I didn’t know about.

After the Azure session came the Work Flow Foundation by Gayathri, which I missed to attend, so I can’t give much details about it, but my friend said it was good.

Before lunch we had a session on SQL Server 2008 & Unstructured data by Praveen, this session helped me to know how microsoft is handling the unstructured data. It usually happens in real world that, most of the time we deal with unstructured data, & I was interested to know much about it & this session helped me to know the ways to deal with unstructured data.


After Lunch, the next session was on Microsoft Echange Server 2010, this session was good, but after some time I was feeling drowsy, as I had rice more during lunch, so lost most part of the session.

The next session was on Windows Server 2008 R2 by S.Kaliyan, which was interesting to know. I listned to this with much attention as it was the base for Microsoft Azrue Platform & at the end of the day we got Trial version of Windows Server 2008 R2 DVD.

The last session of the event was on Virtualization 360 by Praveen, this also was my favourite topic as I experimented with Virtualization my self without going through much details. I used Microsoft Virtual PC 2007 to run Knoppix Live Linux. I came to know the types of virtualizations & many interesting things.

Overall I liked the whole Tech.Ed, it really helped me to get started on many technologies.


BTW, I couldn’t take much pictures at the event as I was busy taking notes, but here is the photo with all the people who conducted the wonderful 2 day event.


If any of you have attended it then let me know about your thoughts & views.


Advertisements

Steps:
1. Add wnvhtmlconvert.dll to Project Reference under Visual Studio


2. Import it into your code behind file “using Winnovative.WnvHtmlConvert;”

3. Add your PdfConverterKey into Web.Config

<add key=”PdfConverterKey” value=”your key here”/>

4. Write Below Code (Click to Expand)

And you are done.
Let me know if you have any questions

Suppose you have two interfaces, lets say Interface-IA, Interface-IB & in both you have declared Name as a property as follows.

public interface IA
{

string Name { get; set; }
String Adress { get; set; }

}

public interface IB
{

string Name { get; set; }

}

Now, you write an interface -IC which derives from above 2 Interfaces as below,

public interface IA
{

int Id { get; set; }

}

When you are try to do the following, you will get an error saying ‘Ambiguity between IA.Name and IB.Name’.

class Test
{

public void GetSomething()
{
IC objIc = new IC();
Textbox1.Text = objIc.Name();
}

}

It can be solved by upcasting as below.

class Test
{

public void GetSomething()
{
IC objIc = new IC();
Textbox1.Text = ((IA)objIc).Name();
}

}

If NLog Intellisense is not working in Visual Studio then copy NLog.xsd into following location
Visual Studio 2008
C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas
Visual Studio 2005
C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas
1. Open Visual Studio
2. Go to Tools > Options
3. Check Show all setting check box
4. Select Projects and Solutions from the tree
5. Check “Always Show solution” checkbox

6. Click Ok
7. Now Select Create New Project
8. From tree List select Other Project Types
9. Then Visual Studi Soultions, You will see Blank Solution in Templates section.


Advantages of Self-Hosting:

  • Is easy to use: With only a few lines of code you have your service running.
  • Is flexible: You can easily control the lifetime of your services through the Open() and Close() methods of ServiceHost.
  • Is easy to debug: Debugging WCF services that are hosted in a self-hosted environment provides a familiar way of debugging, without having to attach to separate applications that activate your service.
  • Is easy to deploy: In general, deploying simple Windows applications is as easy as xcopy. You don’t need any complex deployment scenarios on server farms, and the like, to deploy a simple Windows application that serves as a WCF ServiceHost.
  • Supports all bindings and transports: Self-hosting doesn’t limit you to out-of-the-box bindings and transports whatsoever. On Windows XP and Windows Server 2003, IIS limits you to HTTP only.

 

Disadvantages of Self-Hosting:

  • Limited availability: The service is reachable only when the application is running.
  • Limited features: Self-hosted applications have limited support for high availability, easy manageability, robustness, recoverability, versioning, and deployment scenarios. These scenarios have become a standard in last few years. Such features are provided by the WAS (Windows Activation Service) which is a part of IIS7 (delivered with Vista and Win2008). This hosting mechanism allows you to host the service by using of protocols like MSMQ, HTTP and TCP.