ASP.Net web development server stop working in VS 2008

Hi folks,

One of my friends told me that he had a problem in the last couple of days, when he is trying to run asp.net web application; he was getting this error message is showing in his browser:
Internet Explorer cannot display the webpage

He uninstalled and installed VS 08 since he taught that this will fix the problem.

If you are facing this problem, simply do the following to fix it :

1) open the following file: “c:\windows\system32\drivers\etc\hosts

2) Add the following entry in this file:

127.0.0.1        local host


Save the file and then try to run your asp.net application the development server will work perfect :).

Hope this helps.

Reference:

Regards,
Mostafa arafa

Difference between clear and remove in web.config

Hi all,

I had a discussion with one of my friends about the difference between clear and remove keys in web.config, and I would like to share it with you.
Remove in web.config is to remove a specific key from the web.config, for example:
Note: have been replaced by {} because it is not allowed to be posted in http request.

{appSettings}
{add key=”MyName” value=”Mostafa1″/}
{add key=”MyName” value=”Mostafa2″/}
{add key=”MyName1″ value=”Mostafa3″/}
{remove key=”MyName1″/}
{/appSettings}
Remove is removing the key MyName1.
Clear is used to remove all key mentioned above it, for example:
{appSettings}
{add key=”MyName” value=”Mostafa1″/}
{add key=”MyName” value=”Mostafa2″/}
{add key=”MyName1″ value=”Mostafa3″/}
{clear/}
{/appSettings}
I don’t recommend to use clear key in the web.config because it will cause a disaster in your application.
Hope this tip helps.

Free ASP.Net MVC tutorial

Hi folks,

New ebook for ASP.Net MVC is now available for free to download and start practicing ASP.Net MVC framework:

“There has been a lot of excitement in the community about the new ASP.NET MVC framework that is about to ship (literally any day now – announcement coming soon). As with anything new, people are also asking for more tutorials/samples/documentation that cover how to get started and build applications with it.” — ScottGu

download link :
http://aspnetmvcbook.s3.amazonaws.com/aspnetmvc-nerdinner_v1.pdf

Read more from Scott Gu’s Blog:
http://weblogs.asp.net/scottgu/archive/2009/03/10/free-asp-net-mvc-ebook-tutorial.aspx?CommentPosted=true#commentmessage

Happy .Netting.

Regards,
Mostafa arafa

24 Hour Virtual Event – TechEd 2009 Developers !!!

Hi folks,

Do you have a problem of different time zones for online trainings and workshops ? If Yes, here is a good news from microsoft :

Defy all challenges of different time zones, Now you can attend Virtual Tech Ed Event for Developers on 1st April 2009 after your registration. No matter which time zone you belongs to.

Event contains 5 tracks:
1) Windows Development.
2) Windows Mobile Development.
3) Office & Sharepoint development.
4) Developer tools , Languages and tools.
5) Web Development & User Experience.

Read more on below link:

https://www.msfttechdays.com/public/home.aspx

Happy .Netting !!!

Regards,
Mostafa arafa