jump to navigation

Install a shared Assembly to the GAC as post build event from Visual Studio August 25, 2011

Posted by Abhijit Jana in .NET 4.0, Visual Studio, Visual Studio 2010.
Tags: , , , , ,
4 comments

The Global Assembly Cache (GAC) is a Cache for globally available Assemblies. Most of the shared assemblies are installed inside GAC to shared across different applications. The Global Assembly Cache tool (Gacutil.exe) allow us to manipulate the contents of the global assembly cache along with install and un-install Assembly. During the development, we generally  take help of gacutil from command prompt to install or uninstall assemblies into or from GAC. This is a repetitive process, every time you made some changes in your library you might need to deploy it into the GAC. Visual Studio has a nice feature called Pre-Build and Post-Build events. Using these events we execute some specific  commands before or after the build. In this post I am going to show you how we can configure the post build event to deploy an Assembly to GAC.

(more…)

Tracking Out of Scope Objects using DataTips while debugging in Visual Studio 2010 August 10, 2011

Posted by Abhijit Jana in .NET 4.0, Debugging, Visual Studio 2010.
Tags: , , , ,
4 comments

Visual Studio 2010 introduced  a nice new “DataTip pinning” features that enable you to better track of variable and expression while debugging. I am sure by this time you must be knowing what is “Data Tips”  and  different features of it.  In In this Post I am going to share a small tip which talks about tracking some out of scope object using DataTips while debugging.

(more…)

Multiple URL Binding with IIS Express August 5, 2011

Posted by Abhijit Jana in IIS Express.
Tags: , , , ,
5 comments

IIS Express is a lightweight, self-contained version of IIS and optimized for developers. IIS Express provides the power of IIS7.x  and makes it very easy to develop and test web applications. Visual Studio 2010 SP1  provides complete integration with IIS Express. In one of my previous post I discussed How you can Run “IIS Express” and “Cassini” simultaneously in Visual Studio 2010 SP1. In this post I am going to discuss about how you can bind multiple URL’s for a single Web Application with IIS Express.

(more…)

.NET Tips – Links on ASP.NET C# WPF , IIS Express, Visual Studio Tips – July 2011 July 31, 2011

Posted by Abhijit Jana in .NET 4.0, .NET Community Events, ASP.NET 4.0, IIS Express, WPF.
Tags: , , , ,
2 comments

Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.  In this post I am quickly listing down all the tips which are posted over the month July 2011.

(more…)

ASP.NET Internals : Visualizing ASP.NET Page Life Cycle using IntelliTrace June 26, 2011

Posted by Abhijit Jana in .NET 4.0, ASP.NET, ASP.NET 4.0, IntelliTrace, Visual Studio, Visual Studio 2010.
Tags: , , , , ,
39 comments

Understanding the ASP.NET Page Life Cycle is an essential knowledge for developing ASP.NET Web Application. When request come from client to server there are many operations performed in backend before sending response to the client. When client request for some information from a web server, request first reaches to HTTP.SYS, which is the kernel level of IIS. HTTP.SYS then send the request to respective  Application Pool. Application Pool then forward the request to worker process to load the ISAPI Extension which will create an HTTPRuntime Object to Process the request via HTTPModule and HTTPHanlder.  Once request passed through the HTPP Pipeline, ASP.NET Page Life Cycle Start.  You will find several articles that describes the What is ASP.NET Page lifecycle, what are the different events fired during page lifecycle.  This post is something different, I will show you how you can see the each and individual Page life cycle events using IntelliTrace

(more…)

Web Camps Session PPT Download–“What’s new in Visual Studio 2010 SP1 for Web Developers” June 19, 2011

Posted by Abhijit Jana in .NET Community Events, Web Camps.
Tags: , , ,
add a comment

Here is the Presentation slide that I used during my session at Microsoft Web Camps, Hyderabad.  During the session I have discussed  about IIS Express, SQL Server Compact Edition Tooling Support, Web Deployment Tools, IntelliTrace Debugging etc. During demo I have shown Basic and Advanced features of IIS Express , Enabling SSL with IIS Express, Running IIS Express and Cassini side by side , SQL Server CE with Entity Frame work and ASP.NET 4.0, Web Deployment Tool 2.0, and demos related with IntelliTrace.

(more…)

.NET Tips – Links on ASP.NET C# MVC Visual Studio Tips – May 2011 June 1, 2011

Posted by Abhijit Jana in .NET 4.0, ASP.NET 4.0, MVC Framework, Tips and Tricks, Visual Studio.
Tags: , , , , ,
1 comment so far

Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.  In this post I am quickly listing down all the tips which are posted over the month May 2011.

(more…)

How to retrieve HTTPModule details from HttpModuleCollection ? May 23, 2011

Posted by Abhijit Jana in .NET 4.0, ASP.NET 4.0, General.
Tags: , , , , , ,
1 comment so far

In one of my previous post I have talked about How to get list of all active HttpModules in ASP.NET? Where I have explained how we can get list of all active modules of an ASP.NET Application at runtime. In this post, I am going discussed about, how you can get details of a particular module details from list of modules.

(more…)

Few important tips that you should know while using ASP.NET Session May 3, 2011

Posted by Abhijit Jana in .NET 4.0, ASP.NET 4.0, Tips and Tricks, Visual Studio, Visual Studio 2010.
Tags: , , , , , , , , , , , , ,
5 comments

While working with ASP.NET web application you must be familiar with one of most important state management technique “Session”. If you want to do a quick refresh or want to know some thing more, please go ahead and read one of my article “Exploring Session in ASP.NET” published at Code Project. In this post I am going to share some important tips that might be useful.

(more…)

Customizing Visual Studio Extension Icon in Visual Studio 2010 May 2, 2011

Posted by Abhijit Jana in .NET 4.0, Visual Studio 2010, VSX.
Tags: , , , , , , , ,
add a comment

If you have deal with Visual Studio Extension ( VSIX) , you must have seen, after the extension installation default icons are predefined ( As shown in below image ). In this post I am going to describe how you can customize /change the default visual studio extension  icon and can provide your own icon over there.

(more…)

24 .NET Tips Links on ASP.NET C# MVC Silverlight Windows Phone – April 2011 April 30, 2011

Posted by Abhijit Jana in .NET 4.0, Tips and Tricks.
Tags: , , , , , , , , ,
1 comment so far

Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.  In this post I am quickly listing down all the tips which are posted over the month April 2011.

(more…)

TOD : Wrapping Code Block and Statements in Visual Studio April 23, 2011

Posted by Abhijit Jana in .NET 4.0, Tips and Tricks, Visual Studio.
Tags: , , , , , , , , , , ,
add a comment

In this tips I have explained how you can automatically wrap up code blocks or code statement in Visual Studio. We can use Document formatting to format the whole contents, but that doesn’t wrap single line code block like Properties or not even single line multiple declaration statement.  Let’s consider an example, you are creating a Properties using code snippet and by default it will came up like

image

But, you want you code to be look like as below

image

How ? Read Complete Tips

14 Useful .NET Debugging Tips & Tricks in Visual Studio March 12, 2011

Posted by Abhijit Jana in .NET 4.0, Debugging, Tips and Tricks.
Tags: , , ,
add a comment

 

List of few useful debugging tips and tricks

1. How to use Runtime Objects in Watch Window during debugging in Visual Studio ?

2. How to use out of scope object with in Conditional Breakpoint ? 

3. Use Conditional Breakpoints with Method Calling in Visual Studio

4. Calling Methods From Watch Window

5. Changing Variables Display Format in Watch Window

6. Get Object Generation using Watch Window

7. Save IntelliTrace Log from IntelliTrace Window

8. Last Session Debugging Value using Data Tips

9. Few Tips on Customizing Debugging Window View in Visual Studio

10. Using DebuggerStepThrough attributes to stepped over code during debugging

11. Hide Methods from debugger Using DebuggerHidden attribute

12. Use “Obsolete” attributes to indicate Obsolete Methods

13. How to suppress compiler warning using #pragma warning directives in Visual Studio ?

14. Customize the Debugging Windows : Change Debugging Window View as per your requirements

To know more Tips and Tricks visit http://dailydotnettips.com and Follow @DailyDotNetTips

Thanks !

AJ

Few Tips on Customizing Debugging Window View in Visual Studio August 29, 2010

Posted by Abhijit Jana in General, Tips and Tricks, Visual Studio.
Tags: , , , , , , , , , ,
11 comments

In this post I am going to discuss about few tips on customizing debugging debugging windows. This may be very helpful during debugging of application. While debugging, you may want to simplify debug window or you may want to clean up all the unnecessary fields that are not important during debugging from debugging windows.  Here is few tips for customization of debug window. 

lightbulb Use DebuggerBrowsable attribute to customize the debugging windows

2

lightbulb  Use DebuggerDisplay attribute to customize the debugging display.

 1

 

To use above attributes you have to use System.Diagnostics namesapce

(more…)

Follow

Get every new post delivered to your Inbox.

Join 1,667 other followers