Wednesday, March 6, 2013

Tip- InProc session state was not working with IIS7.5

In this post I am going to explain about reason for InProcsessionState was not working with IIS 7.5.

Problem:

Yesterday in one of my PC I got updated IIS 7.5 and suddenly after updating the IIS my ASP.NET application session state stopped working. It was a very weird behaviour and after doing some R and D I have found that my worker process per application was more then one.

That was the reason for the  session state was not working as “InProc” session state is using IIS memory to manage sessions.  You can find more information about this in following link.

http://stackoverflow.com/questions/2147578/asp-net-session-state-and-multiple-worker-processes

Resolution:

There are two ways of resolving this problem.

1) You can use other session state mode like State Server or SQL server which supports multiple worker processes.
Share:
Sunday, March 3, 2013

Page inspector in Visual Studio 2012

In this blog post we are going to learn about a new feature of Visual Studio 2012 called “Page Inspector”.

I have written  whole series about new features of Visual Studio 2012. This post will also be part of it. You can find all post related to Visual Studio at my Visual Studio 2012 page. Following is a link for that.

Visual Studio 2012 Feature Series

What is Page Inspector:

Page inspector is a great tool to inspect your page in Visual Studio itself. In other words, You can use Page Inspector as a browser and inspect your pages in Visual Studio itself. It’s really slow a common problem you can diagnose your page in visual studio itself. You can see where you UI comes from and even you can look into your page in HTML.
Share:

Video about different searching options in visual studio 2012

I have created a video tutorial for Visual studio 2012. Where I have shown different kind of searching options.

Hope you like it. Stay tuned for more..

Shout it
Share:
Wednesday, February 27, 2013

Internet explorer 10 for windows 7- What’s new

Recently before some time Scott Hanselman just announced Internet Explorer 10 for windows 7. Today it’s launch and I have just downloaded the and installed it. I thought you it would be  a great idea to write a blog post about this.

Download Internet explorer 10 for windows 7:

The first question comes to your mind that from where we can download internet explorer 10. Following is a link for that from where you can download the IE 10 for windows 7.

http://windows.microsoft.com/en-us/internet-explorer/downloads/ie-10/worldwide-languages

Installation went very smooth You just need to restart the computer once IE 10 completely installed.

Share:
Sunday, February 24, 2013

HTML editor enhancement in visual studio 2012

In this post I am going to explain about HTML Editor Enhancement in visual studio 2012. I have been writing few post about Visual studio 2012 new features and this post will also be part of that. You can read whole series at following link.

Visual Studio 2012 feature series

Tag highlighting in Visual Studio 2012:

In visual studio 2012 You can highlight the start and end tag of a particular HTML element. One you click on starting tag of HTML element it will have other part highlighted just like following.

HTMLTagHighLightVisualStudio2012
Share:
Saturday, February 23, 2013

Dotnetjalps.com- 551 blog posts and still counting!!

Today is one of the most important day for this blog as I am writing 551th blog post for this blog post. I can’t believe this..yeah this blog has completed 550 blog post.

People I like to thank:

First of all I like to thank my parents for whatever I am without them I could not even stand near where I am right now!!.  Then I would like to thank my wife without her support it would not have been possible to write this 551 blog post..So thank you sweetheart. My younger brother who has been moral support for me whenever I feel low or something was not working my way. My little champ who give me all energy that I have. Whole MVP community and friends where I learn so many things and off course readers of this blog. Without readers this blog is not there where it is right now!!

How I started blogging:

Actually  I was not serious about blogging I just show a blog with blogspot domain and for curiosity I have also registered a blog actually at that time I have registered it with my name like http://jalpesh.blogspot.com. At that time I have no idea that what blog is. After registering blog for first month I have not done anything and one one day I just goggled my name and I found my blog listing over there even if I have not written anything. I feel excited and decided I should write some thing and that’s how I have started writing.

Earlier I was just writing blog posts to make a repository of my code whatever I have done in my professional life. But when I came Ahmedabad at that time I understand the true value of blog and then I started taking it very seriously and started writing blog post that can help others and me to learn new things.

Then I brought my own domain last year http://www.dotnetjalps.com to create my own brand.

This blog is my journey of learning and I believe in this journey and continue to walk on it that’s why I have made title of this blog post still counting!!
Share:
Thursday, February 14, 2013

Default keyword in c#

In this post, I am going to explain about default keyword in c#.

Introduction:

As per MSDN default keyword in C# used to assign the default value of the type. In some situation its comes very handy where we don’t want to create object and directly assign the default value of it.

The basic syntax of default is default(T) where t is any reference type of value type and If T is a value type, whether it will be  a numeric value or struct.

Default Keyword usage:

We can use Default keyword in variety of cases.

Assigning value to nullable Type:


We can use it to assign default value to nullable types like below.
using System;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main() {
            int? i = default(int);
            Console.WriteLine(i);
        }
    }
}

Here output will be.
Share:

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews