Wednesday, July 21, 2010

The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

 IIS Manager Error: The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020)

The above is the exception comes most of the times when you are using the default web site in windows 7. Automatically it will stop the site and when we try to start then the above exception is coming. Because of it, no web sites, applications are running and unable to proceed to any further step. I know that the default web site uses the port number 80 by default. For testing purposes I have changed the port number to 9999 and tried to start the default web site and surprisingly it started and everything running fine. So, I fixed to the problem that the issue is only because of the port 80. I came to conclusion that someone else other than IIS web site is using the port 80.

Now, we found the problem. We need to look for solution. But, how to know who are using the port 80 other than IIS?

 Here is the post on it. "How to find what process is using which port?". The helped me a lot to find out the problem in minutes.

How to know what process is using which port in windows

I believe this is going to be a very helpful post to most of the readers. So many times I need to know about this. This is a great tip to resolve so many problems. So, it is one of my hot tips for identifying the problems.

We usually install third party software like Skype, TeamViewer etc. in the windows OS, then they will default take some port numbers available. Then there are chances they will create some problem as explained below. [This is why we need to take care of installing software on the servers or production machines. We should install if and only if we really need them. :)] Below is the complete scenario.

Friday, July 16, 2010

More SharePoint 2010 templates in Visual Studio 2010

I am working on SharePoint 2010 these days and all the development is on Visual Studio 2010. The IDE is very cool and great features. Really very helpful for developers and administrators as everything is builtin like deploy, configure and easy development. I really love it. There are plenty of SharePoint 2010 templates are available by default in Visual Studio. Here are some from Microsoft with extra templates. Install them and use them for time saving and learn more...

Detect request is from iPad in ASP.NET

iPad. People slowly liking it. Few days ago, I have written a post on how to detect the request is from the iPhone. So, as iPad applications are also growing day to day, I want to give you a small tip on how to detect requests are from iPad. So that you will write logic which is specific to the iPad like html, CSS, scripts etc.

Detect request from iPad in ASP.NET [C#]:
     //iPad is the requested client. Write logic here which is specific to iPad.
     //Normal browsers [from computers] requested.

Detect the iPad request in Java script:
if (navigator.userAgent.match(/iPad/i)

Very simple, isn't it. Hope this helps.