Friday, December 10, 2010

ASP.NET : "Only one usage of each socket address (protocol/network address/port) is normally permitted"

You might get an error "Only one usage of each socket address (protocol/network address/port) is normally permitted" when trying to run an ASP.NET application. This might happen when you either have muliple apps using the same port in Casinini web server or when you have many ASP.NET apps running simultaneously.

For a workaround, use the following steps:
1. Close the ASP.NET solution in Visual Studio.
2. Navigate to the folder containing the Project file of the ASP.NET application.
3. Right click on the Project file of the ASP.NET project (the one with extension (.csproj))
4. Do a Find for "" tag. Change the value to "False".
5. Rename the "" also with a different number if you wish.
6. Save the file and close it.

Now open the ASP.NET solution again and try to run your app. You'll now be able to run the application without the error quoted above.

Cheers!

Sunday, December 05, 2010

Parallelism : Parallel Extensions in .NET 4.0

Recently I had attended a conference on Parallelism and Parallel Extensions in .NET 4.0. The whole concept seems to be really interesting and exciting and its all about how we effectively use CPU in multi-core systems at the level of programming. And yes, it solves the most oft come across problems in large solutions - the Performance issue.
 
I've just started my journey into it - exploring the whole lot of samples here:
 
And this is not just for .NET - and Parallelism is used in SQL as well. There are some General guidelines for Maximum degree of Parallelism in SQL Server  and Degree of Parallelism concepts which you might also be interested in.
Hope you also find this interesting and exciting that can be used in your projects to improve your business as well.
 
Cheers!
 

Visual Studio 2010 : Unexpected error writing metadata to file '.exe' -- 'Not enough storage is available to complete this operation.'

You might get an error "Unexpected error writing metadata to file '.exe' - 'Not enough storage is available to complete this operation." when you build with Visual Studio 2010.

Well ,sometime back we had a migration to using Visual Studio Team system from using Source depot. Incidently this was the I was building my app after the migration and setup of VSTS. When trying build the app, I was getting the above error which was delaying my work for almost an entire day. I had sufficient hard disc and memory space - as opposed to what the message said. "Binging" didn't help much.. several sites suggested to re-install VS 2010. However, I was little skeptical in doing a re-install as I was almost for sure knew there was nothing wrong with my VS installation.
I randomly tried several options -luckily one of that fixed the issue. So for anyone else having the same issue - here are the steps - which you may want to try, if your Source control uses VSTS:
 
1. Check the path that contains your Project.
2. In Team explorer, click Source control.
3. In Source control explorer, right click on the folder of your project that gives the above error and click "Remove mapping".
 

4. This removes any connection of that folder of your project with VSTS. This might take a few minutes if your project is large.
5. Create a new folder and map your project to the new folder by taking the latest from TFS.
6. Build your project.
 
This should solve the above issue.
 
Cheers!
 
 

Wednesday, October 06, 2010

Test post

This is a test post