Archive

Archive for the ‘Programming’ Category

IIS7, WordPress and Cant Upload

May 17th, 2010 No comments

If you have problem with WordPress problem within IIS7 or IIS7.5, maybe you have trouble with your directory security access. To solve actually easy, but I need sometime to try and search.
Under default application pool identity user, to allow this you have to make Users (<Computer Name\Users) and IIS_USRS(<Computer Name\IIS_IUSRS) have Full permission access (including write) within folder wp-contents and also its subdirectories.

Categories: PHP Tags: , ,

How to Enable Edit and Continue in Visual Studio

May 17th, 2010 No comments

For any versions of Visual Studio you have to these steps

  • Go to Tools > Options
  • Go to Debugging > Edit and Continue > Check Enable Edit and Continue
  • Go to Debugging > General > Check Break all process when one process break
  • Go to Debugging > General > Check Require source files to exactly match the original version

For Web Application Project, you have to do these additional steps

  • Go to Web Application Project properties
  • Make sure your project in Debug Mode by Build > Active Configuration Mode > Select Active (Debug) and Uncheck Optimize Code
  • Make sure your using Visual Studio Internal Web Server (Cassini) by Web > Check Use Visual Studio Development Server
  • Enabling Edit and Continue by Web > Check Edit and Continue

Additional for Visual Studio 2010, you have to disabled Intellitrace feature by

  • Go to Tools > Options
  • Go to Intellitrace > Uncheck Enable Intellitrace

Subsonic 3 – Column Name bugs (i)

October 31st, 2009 No comments

As you all know, Subsonic 3 already released several months ago. Until now, team already released 3 minor version of Subsonic 3, so current version is Subsonic 3.0.3.

Unlike previous version, Subsonic 3 implements full LINQ provider which support only by .NET Framework 3.5. Thats why, Subsonic 3 only supported by .NET Framework 3.5 above.

Although it’s already released up to 3 minor version, there are several very annoying bugs. One of them is Subsonic 3 doesn’t support if column name in database doesn’t match with property name.

For this, I use following table script with MySQL database server
[sourcecode language="SQL"]CREATE TABLE `product_test` (

`product_test_id` int(11) NOT NULL AUTO_INCREMENT,

`product_name` varchar(45) NOT NULL,

`product_date` datetime NOT NULL,

PRIMARY KEY (`product_test_id`)

) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; [/sourcecode]
The SQL Statement that I’ve got when I’m trying to query using Subsonic is like this

SELECT NULL

FROM `product_test` AS t0

LIMIT 0,1

And the code is like this

var firstProductTest = productTestAll.FirstOrDefault();
Assert.AreEqual(1, firstProductTest.ProductTestId);
Assert.AreEqual(“PAMPERS”, firstProductTest.ProductName);

But if I tried to get records from product_test using, it only gives me 0 records, weird….

Categories: asp.net, C#, MySQL Tags:

Git Tips & Tricks

October 29th, 2009 No comments

Another tips and tricks for Git usage, take a look here .

Categories: Others Tags: ,

Right Click to Start your Cassini Web Server

October 29th, 2009 No comments

As you all know, cassini (internal web server) which is used by Visual Studio (start from 2005 then 2008), is can be easily activate without starting visual studio.
Below, taken from Phil Haacked website, the configuration for your Windows

32 bit (x86)
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2008 WebServer]
@=”ASP.NET Web Server Here”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2008 WebServer\command]
@=”C:\\Program Files\\Common Files\\microsoft shared\\DevServer
\\9.0\\Webdev.WebServer.exe /port:8080 /path:\”%1\”"

64 bit (x64)
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2008 WebServer]
@=”ASP.NET Web Server Here”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2008 WebServer\command]
@=”C:\\Program Files (x86)\\Common Files\\microsoft shared\\DevServer
\\9.0\\Webdev.WebServer.exe /port:8080 /path:\”%1\”"

If your using Visual Studio 2010 beta 2, you can use below configuration

32 bit (x86)
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2010 WebServer]
@=”ASP.NET 4 Web Server Here”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2010 WebServer\command]
@=”C:\\Program Files\\Common Files\\microsoft shared\\DevServer
\\10.0\\Webdev.WebServer40.exe /port:8081 /path:\”%1\”"

64 bit (x64)
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2010 WebServer]
@=”ASP.NET 4 Web Server Here”

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\VS2010 WebServer\command]
@=”C:\\Program Files (x86)\\Common Files\\microsoft shared\\DevServer
\\10.0\\Webdev.WebServer40.exe /port:8081 /path:\”%1\”"

Categories: asp.net Tags: , ,