Wednesday, September 26, 2012

IIS 7 default URL rewrite

IIS 7 provides Cookieless feature by default for ASP.NET applications while it may break MVC4 controller to certain extent like editing or creating record based on the model and database connection provided.

This article http://msdn.microsoft.com/en-us/library/aa479315.aspx explains what additional string means in the URL returned by IIS.

URL patterns in trouble would be like these:
http://server_URL/A(XXXXX)/...
http://server_URL/S(XXXXX)/...
http://server_URL/F(XXXXX)/...

To check IIS configurations, please refer to the following article:
http://technet.microsoft.com/en-us/library/cc754725(v=ws.10).aspx



Friday, September 14, 2012

How to recover MySQL Website Configuration Tool Icon in VS 2010

Visual Studio 2010 has been updated to SP1 but a weird symptom happened while I came back and revisited my favourite icon of MySQL Website Configuration Tool over the Solution Explorer. It was just missing!

After a series of upgrade and re-installation of MySQL .NET Connector package via URL:
http://dev.mysql.com/downloads/connector/net/

The icon is still missing and someone might think it would reappear on creating New Web Site template. However, that's not the case for me.

Before I reinstalled the whole thing for VS2010, I got my last hope to see if any miracle could happen.

The fix I have done is just as follows:



Click on the the solution in the Solution Explorer.




















In the Properties Window, click "Property Pages" icon.














A project properties template is shown up in the content window.









Try a couple of clicks on the items and then save it and close it.

See if that MySQL Website Configuration Tool icon reappear again under Solution Explorer toolbar?