JScript Debugger– “Unable to attach the process. Another debugger might be attached to the process” – while application is running from Visual Studio. [ Solution ] January 20, 2012
Posted by Abhijit Jana in .NET 4.0, ASP.NET 4.0, ASP.NET 4.5, Tips and Tricks, Visual Studio, Visual Studio 2010, Visual Studio 2011.Tags: ASP.Net, codeproject, Debugging, Visual Studio
3 comments
IE Developer toolbar provide us a fantastic and easiest way to debug JavaScript with in browser. If the web site is hosted on IIS and you are trying debug JavaScript using IE Developer tool bar, it will work fine if you the correct browser setting for debugging. If you are running your web application directly from visual studio, you might came across the problem of “Unable to attach to the process” while click on “Start debugging” button in IE Developer toolbar. In this post I am going to talk about the resolution of the same and will also talk about little bit behind the scene.
25 Tips on ASP.NET, C#, MEF, Visual Studio, Profiler – September 2011 Links September 30, 2011
Posted by Abhijit Jana in Visual Studio 2010, .NET 4.0, ASP.NET 4.0, Visual Studio, Tips and Tricks.Tags: dailydotnettips, Tips & Tricks
add a comment
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. This month we have wide range of tips including ASP.NET, C#, MEF, Visual Studio, Profiler etc. In this post I am quickly listing down all the tips which are published over the month September 2011
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: .NET, .NET 4.0, Assembly, GAC, Gacutil, install Assembly into GAC from Visual Studio
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.
Not able to view all the running Worker Process in Visual Studio – Process Attach Window – Resolution August 18, 2011
Posted by Abhijit Jana in ASP.NET, Debugging, IIS, Visual Studio.Tags: Beginners, Debugging, IIS, IIS 7.0, Process Attach, WorkerProcess
1 comment so far
This might be a very simple and known to most of us, but I found it as a query in a discussion forum of one of my article “Debug your ASP.NET Application while Hosted on IIS” which was published at Code Project . Question was regarding list of worker processes in “Process Attach window” of Visual studio. Though all the sites are running properly on IIS, still he was not able to view any processes in “Attach Process Window” while trying to attach a process from Visual Studio.
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: .NET, ASP.Net, ASP.NET Internals, IntelliTrace, page life cycle, Visual Studio 2010 Ultimate
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
IntelliTrace Log ( .iTrace ) files and Visual Studio 2010 SP 1– Some Hidden Stuff June 7, 2011
Posted by Abhijit Jana in .NET 4.0, IntelliTrace, Visual Studio, Visual Studio 2010.Tags: .iTrace, Debugging, IntelliTrace, Tips, Visual Studio 2010, Visual Studio 2010 SP 1, Visual Studio 2010 Ultimate
5 comments
IntelliTrace debugging is only available with Visual Studio 2010 Ultimate Edition, which collects debugging information in background and can be used at any point to time to analysis previous debugging data. IntelliTrace collected debugger information into a trace log file (.iTrace ) that can then be opened and debugged using Visual Studio later. Size of .iTrace was always a concerns, as it’s take huge amount of your hard drive space and IntelliTrace is on by default. So whenever you are doing F5 debugging in Visual studio .iTrace is getting saved and it’s consuming your hard drive.
Well, before moving forward, I must thank to Larry Guger , Program Manager for IntelliTrace features . Yesterday I had a discussion with him on IntelliTrace . During discussion I found there are several changes on IntelliTrace log saving which has been shifted with Visual Studio 2010 SP1. I have already blogged about few of them over here http://bit.ly/f8awhz. But few hidden stuff was missing which I got to know from Larry only. In this post I am going to discussed about those changes.
.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: .NET, ASP.Net, C#, MVC, Tips & Tricks, Visual Studio
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.
Enable Scroll Override in Visual Studio May 30, 2011
Posted by Abhijit Jana in Visual Studio.Tags: scroll, Scrolling in Visual Studio, Tips & Tricks, Visual Studio, Visual Studio IDE
add a comment
While using Scrolling in Visual Studio IDE, by default it scroll amount is fixed by number of lines. During normal development, when we scroll with in code editor, the scroll amount by fixed line number is fine. But if you zoom out the editor code, scrolling wont be useful as though we have changed the code editor zooming, still scrolling is available with fixed line number. To overcome this, you can use “Enable Scroll Override” features.
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: .NET, ASP.Net, asp.net 4.0, C#, codeproject, EnableSessionState, HTTPContext, HttpModule, httpPipeline, Session, Session Mode, SessionStatebehavior, state Management, Web.config
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.
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: .NET, C#, Code Formatting, How To, Microsoft Visual Studio, Productivity Tips, Programming, Tips and Tricks, Tools, Visual Studio Editor, Visual Studio Tips, Wrapping Code Block
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
![]()
But, you want you code to be look like as below

How ? Read Complete Tips
Run ASP.NET Web Application from Command Prompt February 28, 2011
Posted by Abhijit Jana in ASP.NET, Tips and Tricks, Visual Studio.Tags: ASP.Net, cmd, codeproject
9 comments
Visual Studio has its own integrated ASP.NET Runtime engine, which helps to run any ASP.NET web application with in Visual Studio. While running application from Visual Studio, you must have seen a popup notification in System Tray (As shown in below image) , which is notification of ASP.NET Development Server.

This ASP.NET Development Server is nothing but a executable file (WebDev.WebServer) which used by Visual Studio to execute you web application when it’s running in the context of Visual Studio. You can find the executable file at <\Program Files (x86)\Common Files\microsoft shared\DevServer\10.0> . This folder contain two different executable
- WebDev.WebServer20.EXE
- WebDev.WebServer40.EXE
WebDev.WebServer20 is targeted to CLR 2.0, which means all the ASP.NET Application which are targeted till FW .NET 3.5 will be taking care by WebDev.WebServer20.EXE and WebDev.WebServer40.EXE for ASP.NET 4.0 based application.
Now, let’s see how we can use these executable to run an ASP.NET 4.0 Application with out using Visual Studio. ![]()
Use shortcut key to generate GUID very quickly in Visual Studio January 18, 2011
Posted by Abhijit Jana in Tips and Tricks, Visual Studio.Tags: guid, macro, Tips and Tricks, Visual Studio
6 comments
One of the common tasks involved in the development is GUID’s generation. This is even more frequent when we are working on a SharePoint solutions. Even during writing unit test we need to
generate static GUID to validate data’s. Visual Studio comes with a tool called guidgen.exe ( c:\program files (x86)\microsoft sdks\windows\v7.0a\bin\NETFX 4.0 Tools\guidgen.exe ) which is registered with visual studio as an external tool and invoked from Tools > Create GUID. But whenever you need an unique static GUID you have to navigate to tool and copy the ID evertime. Last few days of my development involved with lots of GUID generation where I found it’s taking time to generate so many guid’s. So, I came up with an small approach where we can generate a GUID by just pressing some shortcut key. Behind the seen I wrote a macro for the same and that is being triggered with the key press.
When we can use HttpContext.Current.Items to stores data in ASP.NET? January 14, 2011
Posted by Abhijit Jana in ASP.NET, ASP.NET 4.0, Tips and Tricks, Visual Studio.Tags: ASP.Net, codeproject, HTTPContext, Session
9 comments
To answer this question In a single statement, you can use HttpContext.Current.Items for very short term storage. By Short term storage means, this data is valid for a single HTTP Request. There are many confusion around regarding storing data in HttpContext.Current.Items and storing data in Session variable. In this blog post I am going to describe what are the different scenarios where we can use HttpContext.Current.Items and what is the exact difference with session variable.
Items collections of HttpContext is and IDictionary key-value collections and that are shared across a single HTTPRequest. Yes, HttpContext.Current.Items valid for a single HTTPRequest. Once after processing, server information is sent back to the browser, the variables that were set in the Items[] collection will lost. Where as for Session Variable, information valid for multiple request as this is user specific. The session variable only expires either on Session Time Out or explicitly clear the values.







