<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DEQFSXs5eip7ImA9WhRbEEw.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223</id><updated>2012-01-31T05:25:18.522-08:00</updated><category term="VBScript" /><category term="Love Earth" /><category term="invoicing software" /><category term="Add Column" /><category term="DataList Paging" /><category term="SQL" /><category term="Connection" /><category term="MS SQL 2000" /><category term="command prompt" /><category term="Mozilla Firefox" /><category term="D-Link" /><category term="VC++" /><category term="phpsoap" /><category term="crystal reports deployment" /><category term="query" /><category term="ASP.NET" /><category term="core ftp" /><category term="windows xp" /><category term="osticket" /><category term="VC++ 6" /><category term="Vulnerability" /><category term="surface" /><category term="System Restore" /><category term="SSIS" /><category term="x64" /><category term="64 bit" /><category term="uninstall" /><category term="web.config" /><category term="jQuery" /><category term="MySQL" /><category term="xp sp3" /><category term="invoice system" /><category term="CSS" /><category term="ping port" /><category term="Javascript" /><category term="CAPTCHA" /><category term="IIS" /><category term="SDK" /><category term="regsvr32" /><category term="visual studio 2005" /><category term="HTML" /><category term="optimization" /><category term="crystal reports" /><category term="VC6" /><category term="vista" /><category term="IIS Log" /><category term="DELL" /><category term="MSN Messenger" /><category term="Twitter" /><category term="Cross domain" /><category term="MS SQL 2008 Express" /><category term="Network Connection" /><category term=".Net" /><category term="AJAX" /><category term="Aztech" /><category term="Useful Script" /><category term="AJAX.NET" /><category term="C++" /><category term="Google Toolbar" /><category term="ATOM" /><category term="Internet Browser" /><category term="mozilla thunderbird" /><category term="screnc.exe" /><category term="MS SQL 2005 Express" /><category term="Virus" /><category term="windows" /><category term="IIS6" /><category term="troubleshoot" /><category term="thunderbird" /><category term="Facebook" /><category term="VS 2003" /><category term="opencart" /><category term="MS SQL Compact" /><category term="stored procedure" /><category term="php" /><category term="smartermail" /><category term="phpmyadmin" /><category term="invoice software" /><category term="MS SQL 2005" /><category term="ASP" /><category term="Maintenance" /><category term="Open Source" /><category term="Web Hosting" /><category term="C#" /><category term="dotnet framework 2.0" /><category term="blogger" /><category term="cgi" /><category term="Joomla" /><category term=".Net framework" /><category term="invoice" /><category term="7zip" /><category term="Linux" /><category term="adsense" /><category term="Notebook" /><category term="IE" /><category term="ODBC" /><category term="Blogger Bookmark" /><category term="batch file" /><category term="Yahoo Messenger" /><title>Application Development</title><subtitle type="html">Web application Sharing including ASP, ASP.NET 1.0 (C#) AND ASP.NET 2.0 (C#) MS SQL 2005 Server, Life, Travelling</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://dotnetfish.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>192</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/ApplicationDevelopment" /><feedburner:info uri="applicationdevelopment" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>ApplicationDevelopment</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry gd:etag="W/&quot;DUUHQn44eCp7ImA9WhRTGEk.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-3861349582600751579</id><published>2011-11-09T05:07:00.000-08:00</published><updated>2011-11-09T06:00:33.030-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-09T06:00:33.030-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><category scheme="http://www.blogger.com/atom/ns#" term="query" /><title>MYSQL - IF NOT EXISTS ... INSERT INTO</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/R_rqjsgHbk_oisHgxhjH5SDXlms/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R_rqjsgHbk_oisHgxhjH5SDXlms/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/R_rqjsgHbk_oisHgxhjH5SDXlms/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R_rqjsgHbk_oisHgxhjH5SDXlms/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Database MYSQL - tried IF NOT EXISTS ... INSERT INTO but not working.&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: 'Courier New';"&gt;IF NOT EXISTS (SELECT *&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New';"&gt;FROM tblabc WHERE id = 10547&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt;) THEN&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: 'Courier New';"&gt;INSERT INTO tblabc&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New';"&gt;(a, b, c)&lt;br /&gt;
SELECT a , b, c&lt;br /&gt;
FROM tblabc WHERE id = 10547;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: 'Courier New';"&gt;END IF;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, this work&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-family: 'Courier New';"&gt;INSERT INTO tblabc&lt;br /&gt;
(a, b, c)&lt;br /&gt;
SELECT a , b, c&lt;br /&gt;
FROM tblabc WHERE id = 10547&lt;br /&gt;
AND NOT EXISTS (SELECT *&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New';"&gt;FROM tblabc WHERE id = 10547&lt;/span&gt;&lt;span style="font-family: 'Courier New';"&gt;);&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-3861349582600751579?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/WTG6jM2s8gY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/3861349582600751579/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=3861349582600751579" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3861349582600751579?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3861349582600751579?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/WTG6jM2s8gY/mysql-if-not-exists-insert-into.html" title="MYSQL - IF NOT EXISTS ... INSERT INTO" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/11/mysql-if-not-exists-insert-into.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8HSHc9eCp7ImA9WhRTEkg.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-7408202588878885018</id><published>2011-11-02T10:27:00.000-07:00</published><updated>2011-11-02T10:27:19.960-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-02T10:27:19.960-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="opencart" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title>Warning: Please select a file!  in Opencart</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KsSih2xi9jord70B1ZWuX6_4XQo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KsSih2xi9jord70B1ZWuX6_4XQo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KsSih2xi9jord70B1ZWuX6_4XQo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KsSih2xi9jord70B1ZWuX6_4XQo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;I'm using Opencart version 1.9.4.3,&amp;nbsp;&amp;nbsp;windows server 2003, IIS 6 and PHP Version 5.3.8.&amp;nbsp;Try to upload image in opencart and error message "Warning: Please select a file!" prompted.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-KrpANrWdV70/TrF9ZRbw-uI/AAAAAAAABUc/vmCpxqy8CmQ/s1600/ErrorUpload.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="201" src="http://2.bp.blogspot.com/-KrpANrWdV70/TrF9ZRbw-uI/AAAAAAAABUc/vmCpxqy8CmQ/s320/ErrorUpload.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
After check on the php eror log file, The error log show "Warning: File upload error - unable to create a temporary file in Unknown on line 0"&lt;br /&gt;
&lt;br /&gt;
Solution for this issue is edit&amp;nbsp;&lt;b&gt;upload_tmp_dir&lt;/b&gt; in&amp;nbsp;php.ini.&lt;br /&gt;
&lt;br /&gt;
For example, change to&lt;br /&gt;
upload_tmp_dir = "C:\PHP\temp"&lt;br /&gt;
&lt;br /&gt;
after the finish edit, restart the web server.&lt;br /&gt;
&lt;br /&gt;
Done. Problem solved.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-7408202588878885018?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/sVMtQFpX1As" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/7408202588878885018/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=7408202588878885018" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/7408202588878885018?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/7408202588878885018?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/sVMtQFpX1As/warning-please-select-file-in-opencart.html" title="Warning: Please select a file!  in Opencart" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-KrpANrWdV70/TrF9ZRbw-uI/AAAAAAAABUc/vmCpxqy8CmQ/s72-c/ErrorUpload.JPG" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/11/warning-please-select-file-in-opencart.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkICRnw-eSp7ImA9WhdXEE0.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-8831932268335636513</id><published>2011-08-22T03:22:00.000-07:00</published><updated>2011-08-22T03:22:47.251-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-08-22T03:22:47.251-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="dotnet framework 2.0" /><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="visual studio 2005" /><title>ASP.NET - new session id when refresh the page</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/EePm1LTrEo2oCLT-ZkjZYBJp_1c/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EePm1LTrEo2oCLT-ZkjZYBJp_1c/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/EePm1LTrEo2oCLT-ZkjZYBJp_1c/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/EePm1LTrEo2oCLT-ZkjZYBJp_1c/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Using Visual Studio 2005, dotnet framework 2.0.&lt;br /&gt;
&lt;br /&gt;
Try to get a session id in default.aspx&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; public partial class _Default : System.Web.UI.Page&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected void Page_Load(object sender, EventArgs e)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txtSessionID.Text = this.Session.SessionID;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
when i refresh the page, new session id show. This is weird because it won't happen in Asp.net for dotnet framework 1.1.&lt;br /&gt;
&lt;br /&gt;
To solve the problem, simply add below code in global.asax&amp;nbsp;to register an event handler for the session start event&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
void Session_Start(Object sender, EventArgs e)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-8831932268335636513?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/Jn_2EtfuJZA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/8831932268335636513/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=8831932268335636513" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8831932268335636513?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8831932268335636513?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/Jn_2EtfuJZA/aspnet-new-session-id-when-refresh-page.html" title="ASP.NET - new session id when refresh the page" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/08/aspnet-new-session-id-when-refresh-page.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcHQX47fyp7ImA9WhdSEEs.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-8312471136398961205</id><published>2011-07-19T02:33:00.000-07:00</published><updated>2011-07-19T02:33:50.007-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-19T02:33:50.007-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>MySQL scheduler job / event</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/JC5VVIgqMPeIuWj9IkxTcjfk9UY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JC5VVIgqMPeIuWj9IkxTcjfk9UY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/JC5VVIgqMPeIuWj9IkxTcjfk9UY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/JC5VVIgqMPeIuWj9IkxTcjfk9UY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;In order to have MySQL event run, we need to make sure&amp;nbsp;GLOBAL event_scheduler is set to on or 1.&lt;br /&gt;
&lt;br /&gt;
SET GLOBAL event_scheduler = ON;&lt;br /&gt;
&lt;br /&gt;
Or we can set in my.ini (in windows) or my.cnf (in linux) file with value&lt;br /&gt;
&lt;br /&gt;
event_scheduler=on&lt;br /&gt;
&lt;br /&gt;
Then create a scheduler job in MySQL. Example, i wish to call a stored procedure psp_DailyJob() every day start from 12:25:00.&lt;br /&gt;
&lt;br /&gt;
CREATE EVENT CallDailyJob&lt;br /&gt;
ON SCHEDULE EVERY 1 DAY STARTS '2011-07-18 12:45:00'&lt;br /&gt;
DO&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; CALL psp_DailyJob()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-8312471136398961205?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/nJpr8Y0creo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/8312471136398961205/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=8312471136398961205" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8312471136398961205?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8312471136398961205?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/nJpr8Y0creo/mysql-scheduler-job-event.html" title="MySQL scheduler job / event" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/07/mysql-scheduler-job-event.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEAFRX4_cSp7ImA9WhdSEEg.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-1646825229961859488</id><published>2011-07-18T23:25:00.000-07:00</published><updated>2011-07-18T23:25:14.049-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-18T23:25:14.049-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>Search text in MySQL stored procedure</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MUMeAb1YJRoHoPdAIzABzrf2_WY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MUMeAb1YJRoHoPdAIzABzrf2_WY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MUMeAb1YJRoHoPdAIzABzrf2_WY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MUMeAb1YJRoHoPdAIzABzrf2_WY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Search keyword or text in MySQL stored procedure&lt;br /&gt;
&lt;br /&gt;
SELECT * FROM INFORMATION_SCHEMA.ROUTINES&lt;br /&gt;
WHERE ROUTINE_DEFINITION LIKE '%IsConsignment%'&lt;br /&gt;
Order by Routine_Name;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-1646825229961859488?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/dJtAdP7DNMw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/1646825229961859488/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=1646825229961859488" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/1646825229961859488?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/1646825229961859488?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/dJtAdP7DNMw/search-text-in-mysql-stored-procedure.html" title="Search text in MySQL stored procedure" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/07/search-text-in-mysql-stored-procedure.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QGQ30yfCp7ImA9WhZaFkw.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-7764366184705179030</id><published>2011-07-02T05:55:00.000-07:00</published><updated>2011-07-02T05:55:22.394-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-07-02T05:55:22.394-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>You can't specify target table 'xx' for update in FROM clause</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zbyOoUlc7IXXmAeuYkqBh5kJH7M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zbyOoUlc7IXXmAeuYkqBh5kJH7M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zbyOoUlc7IXXmAeuYkqBh5kJH7M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zbyOoUlc7IXXmAeuYkqBh5kJH7M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Try to update a column in MySQL which uses SUM and join and hit error "You can't specify target table 'xx' for update in FROM clause&amp;nbsp;"&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;UPDATE tblstocktake ap SET TotalQuantity =&lt;br /&gt;
(&lt;br /&gt;
&amp;nbsp; SELECT SUM(t.Unitinstock)&lt;br /&gt;
&amp;nbsp; FROM tblstocktake t&lt;br /&gt;
&amp;nbsp; JOIN tblstocktake a&lt;br /&gt;
&amp;nbsp; ON a.productid = t.productid&lt;br /&gt;
&amp;nbsp; WHERE a.productid = ap.productid&lt;br /&gt;
&amp;nbsp; GROUP BY a.productid&lt;br /&gt;
);&lt;/blockquote&gt;&lt;br /&gt;
Which is not working.&lt;br /&gt;
&lt;br /&gt;
Finally, found a solution which is working&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;UPDATE tblstocktake LEFT JOIN&lt;br /&gt;
(SELECT productid,&lt;br /&gt;
SUM(unitinstock) AS baseVal&lt;br /&gt;
FROM tblstocktake&lt;br /&gt;
GROUP BY productid)&lt;br /&gt;
AS totalSum USING (productid)&lt;br /&gt;
SET totalquantity=baseVal;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-7764366184705179030?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/13uhR2_hqSU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/7764366184705179030/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=7764366184705179030" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/7764366184705179030?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/7764366184705179030?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/13uhR2_hqSU/you-cant-specify-target-table-xx-for.html" title="You can't specify target table 'xx' for update in FROM clause" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/07/you-cant-specify-target-table-xx-for.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8GR3o5eSp7ImA9WhZRFk0.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-3324404825035545171</id><published>2011-04-12T03:07:00.000-07:00</published><updated>2011-04-12T03:07:06.421-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-04-12T03:07:06.421-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>Data too long for column 'xxxxx' at row 1</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Qy8aLrtpyrsXfdwOJMiJ2VMyZ2s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Qy8aLrtpyrsXfdwOJMiJ2VMyZ2s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Qy8aLrtpyrsXfdwOJMiJ2VMyZ2s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Qy8aLrtpyrsXfdwOJMiJ2VMyZ2s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Try to update a column&amp;nbsp;showContent which is boolean datatype&amp;nbsp;in tbl_page table in mysql&lt;br /&gt;
&lt;br /&gt;
UPDATE tbl_page SET showContent='1' WHERE pk=13&lt;br /&gt;
&lt;br /&gt;
and hit error message "Data too long for column 'showContent' at row 1"&lt;br /&gt;
&lt;br /&gt;
After try around and figure out below solve my issue&lt;br /&gt;
&lt;br /&gt;
UPDATE tbl_page SET showContent=1 WHERE pk=13&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-3324404825035545171?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/s393Ju4hoTI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/3324404825035545171/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=3324404825035545171" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3324404825035545171?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3324404825035545171?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/s393Ju4hoTI/data-too-long-for-column-xxxxx-at-row-1.html" title="Data too long for column 'xxxxx' at row 1" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/04/data-too-long-for-column-xxxxx-at-row-1.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU4HSH4zcSp7ImA9WhZSFE0.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-5989522687775513221</id><published>2011-03-29T07:12:00.000-07:00</published><updated>2011-03-29T07:12:19.089-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-29T07:12:19.089-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="crystal reports deployment" /><category scheme="http://www.blogger.com/atom/ns#" term="crystal reports" /><title>"Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/gjw0JzA9Kw3mflic44H0_sMR_dc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gjw0JzA9Kw3mflic44H0_sMR_dc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/gjw0JzA9Kw3mflic44H0_sMR_dc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/gjw0JzA9Kw3mflic44H0_sMR_dc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;Error message show when try to deploy web application to 64 bit Windows server 2008 R2 server.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;"Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;This is not easy for us to debug because we already install crystal report runtime in the server. But wait ... what is the problem then? version? yes, the version for the runtime installed is 10.5.3700.0 which i get from&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;my machine:&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5.&amp;nbsp;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: x-small;"&gt;&lt;span class="Apple-style-span" style="line-height: 18px;"&gt;So, how to get&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;crystal report runtime&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;10.2.3600.0 version? We can download from&amp;nbsp;&lt;/span&gt;&lt;a href="http://resources.businessobjects.com/support/additional_downloads/runtime.asp#07"&gt;http://resources.businessobjects.com/support/additional_downloads/runtime.asp#07&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #222222; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;"&gt;So, beware of the different version of crystal report runtime. Hope this help.&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-5989522687775513221?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/TrjQkAtnitY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/5989522687775513221/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=5989522687775513221" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/5989522687775513221?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/5989522687775513221?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/TrjQkAtnitY/could-not-load-file-or-assembly.html" title="&quot;Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.&quot;" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/03/could-not-load-file-or-assembly.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04ERnc8fCp7ImA9WhZTGE0.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-129510981965764398</id><published>2011-03-21T00:53:00.000-07:00</published><updated>2011-03-22T09:05:07.974-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-22T09:05:07.974-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><category scheme="http://www.blogger.com/atom/ns#" term=".Net" /><title>Unable to retrieve stored procedure metadata. Either grant SELECT privilege to mysql.proc for this user or use "use procedure bodies=false" with your connection string.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/oafr9MqgECbEHhnDI13K9P6ZzwQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oafr9MqgECbEHhnDI13K9P6ZzwQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/oafr9MqgECbEHhnDI13K9P6ZzwQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oafr9MqgECbEHhnDI13K9P6ZzwQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Error receive when trying access to mysql database using windows application.&lt;br /&gt;
"Unable to retrieve stored procedure metadata. Either grant SELECTprivilege to mysql.proc for this user or use "use procedure bodies=false" with your connection string."&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-K4P67ojl4gg/TYjIeUnnquI/AAAAAAAABJI/Csj7uPGRqF8/s1600/mysql_Error.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="123" src="https://lh5.googleusercontent.com/-K4P67ojl4gg/TYjIeUnnquI/AAAAAAAABJI/Csj7uPGRqF8/s400/mysql_Error.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I'm using user "mrptest" connect to database and user "mrptest" has been granted to all privilage. The stored procedure created using 'root'@'localhost'. &lt;br /&gt;
&lt;br /&gt;
To overcome this problem, i need to to drop all the created database and change the statement from CREATE DEFINER=`root`@`localhost` PROCEDURE to CREATE DEFINER=`mrptest`@`%` PROCEDURE &lt;br /&gt;
&lt;br /&gt;
DELIMITER $$&lt;br /&gt;
&lt;br /&gt;
DROP PROCEDURE IF EXISTS `psp_AAA` $$&lt;br /&gt;
CREATE DEFINER=`root`@`localhost` PROCEDURE `psp_AAA`()&lt;br /&gt;
BEGIN&lt;br /&gt;
&lt;br /&gt;
END $$&lt;br /&gt;
&lt;br /&gt;
DELIMITER ;&lt;br /&gt;
&lt;br /&gt;
Now i change to &lt;br /&gt;
&lt;br /&gt;
DELIMITER $$&lt;br /&gt;
&lt;br /&gt;
DROP PROCEDURE IF EXISTS `psp_AAA` $$&lt;br /&gt;
CREATE DEFINER=`mrptest`@`%` PROCEDURE `psp_AAA`()&lt;br /&gt;
BEGIN&lt;br /&gt;
&lt;br /&gt;
END $$&lt;br /&gt;
&lt;br /&gt;
DELIMITER ;&lt;br /&gt;
&lt;br /&gt;
Problem solved.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-129510981965764398?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/ABrNfIPNPMI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/129510981965764398/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=129510981965764398" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/129510981965764398?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/129510981965764398?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/ABrNfIPNPMI/unable-to-retrieve-stored-procedure.html" title="Unable to retrieve stored procedure metadata. Either grant SELECT privilege to mysql.proc for this user or use &quot;use procedure bodies=false&quot; with your connection string." /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh5.googleusercontent.com/-K4P67ojl4gg/TYjIeUnnquI/AAAAAAAABJI/Csj7uPGRqF8/s72-c/mysql_Error.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/03/unable-to-retrieve-stored-procedure.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkEMQ3g7fSp7ImA9Wx9aE00.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-6071878480950058307</id><published>2011-03-04T21:51:00.000-08:00</published><updated>2011-03-04T21:58:02.605-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-03-04T21:58:02.605-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><category scheme="http://www.blogger.com/atom/ns#" term="php" /><title>rename htaccess.txt to .htaccess in windows</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/kz0k6kFT_UWoTBBsILZujklrNoY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kz0k6kFT_UWoTBBsILZujklrNoY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/kz0k6kFT_UWoTBBsILZujklrNoY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/kz0k6kFT_UWoTBBsILZujklrNoY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;We will hit error when try to&amp;nbsp;rename htaccess.txt to .htaccess in windows. Error message "You must type a file name."&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh5.googleusercontent.com/-Z9souHXW6W8/TXHJujvRjeI/AAAAAAAABIY/i23vMfAMilU/s1600/rename_.htaccess.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://lh5.googleusercontent.com/-Z9souHXW6W8/TXHJujvRjeI/AAAAAAAABIY/i23vMfAMilU/s1600/rename_.htaccess.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
.htaccess is usually used in php application like joomla and some of the shopping card. The&amp;nbsp;purpose is to provide more user friendly url for SEO purposes or reading purposes by using&amp;nbsp;Apache mod_rewrite.&lt;br /&gt;
&lt;br /&gt;
To overcome this problem, we need to use windows command promp to rename the file. Below is the step by step how we can solve the problem.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Go to windows start and click on Run.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="https://lh4.googleusercontent.com/-GtJsAjGmwtc/TXHNm0obKrI/AAAAAAAABIc/U2bXV3qY7zE/s1600/run.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="242" src="https://lh4.googleusercontent.com/-GtJsAjGmwtc/TXHNm0obKrI/AAAAAAAABIc/U2bXV3qY7zE/s400/run.bmp" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Type cmd in the text box and hit enter&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://lh6.googleusercontent.com/-sSgFWFFFFq0/TXHPmB-UdTI/AAAAAAAABIs/hTDKtkiMk-g/s1600/cmd.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="173" src="https://lh6.googleusercontent.com/-sSgFWFFFFq0/TXHPmB-UdTI/AAAAAAAABIs/hTDKtkiMk-g/s320/cmd.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;A command prompt will popup, change to the folder location your file&amp;nbsp;htaccess.txt located. In my sample, my file located in&amp;nbsp;C:\temp_folder. So i type &lt;br /&gt;
&lt;br /&gt;
cd C:\temp_folder&lt;br /&gt;
&lt;br /&gt;
and hit enter. My current directory will be in "C:\temp_folder"&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="https://lh4.googleusercontent.com/-FabvPPtkyAM/TXHOjtgUHDI/AAAAAAAABIo/y-cAa_jQXg4/s1600/cd.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="205" src="https://lh4.googleusercontent.com/-FabvPPtkyAM/TXHOjtgUHDI/AAAAAAAABIo/y-cAa_jQXg4/s400/cd.bmp" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Use ren command to rename the file.&lt;br /&gt;
&lt;br /&gt;
type .htaccess.txt .htacess&lt;br /&gt;
&lt;br /&gt;
and hit enter.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="https://lh3.googleusercontent.com/-qbCFxzXH1l8/TXHOW6S6blI/AAAAAAAABIk/cBcU9gJ4vQk/s1600/done_rename.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="186" src="https://lh3.googleusercontent.com/-qbCFxzXH1l8/TXHOW6S6blI/AAAAAAAABIk/cBcU9gJ4vQk/s400/done_rename.bmp" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Done.&lt;/div&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
Hope this help.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-6071878480950058307?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/hRfTlNisuUY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/6071878480950058307/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=6071878480950058307" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/6071878480950058307?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/6071878480950058307?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/hRfTlNisuUY/rename-htaccesstxt-to-htaccess-in.html" title="rename htaccess.txt to .htaccess in windows" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh5.googleusercontent.com/-Z9souHXW6W8/TXHJujvRjeI/AAAAAAAABIY/i23vMfAMilU/s72-c/rename_.htaccess.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/03/rename-htaccesstxt-to-htaccess-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUMMQHc8eCp7ImA9Wx9bEE4.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-1319111980605752641</id><published>2011-02-18T05:58:00.000-08:00</published><updated>2011-02-18T05:58:01.970-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-02-18T05:58:01.970-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mozilla thunderbird" /><title>file:///C:/Program%20Files/Mozilla%20Thunderbird/modules/iteratorUtils.jsm:113</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yF-gSZGc0ic9U44pO-ARfCBMjIQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yF-gSZGc0ic9U44pO-ARfCBMjIQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yF-gSZGc0ic9U44pO-ARfCBMjIQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yF-gSZGc0ic9U44pO-ARfCBMjIQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Hit error&lt;br /&gt;
&lt;br /&gt;
"A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.&lt;br /&gt;
&lt;i&gt;file:///C:/Program%20Files/Mozilla%20Thunderbird/modules/iteratorUtils.jsm:113&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
"&lt;br /&gt;
I can click on "Stop script" or "Continue" button. I click on continue and it's working fine. This issue most probably caused by the work load for the script like loading folder and etc. It's fine if it's not consistently happen.&lt;br /&gt;
&lt;br /&gt;
To know more what happen, please read on&amp;nbsp;&lt;a href="http://kb.mozillazine.org/Script_busy_or_stopped_responding"&gt;http://kb.mozillazine.org/Script_busy_or_stopped_responding&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-1319111980605752641?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/0HvXlVHiQ4M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/1319111980605752641/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=1319111980605752641" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/1319111980605752641?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/1319111980605752641?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/0HvXlVHiQ4M/filecprogram20filesmozilla20thunderbird.html" title="file:///C:/Program%20Files/Mozilla%20Thunderbird/modules/iteratorUtils.jsm:113" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/02/filecprogram20filesmozilla20thunderbird.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYGRXg9eCp7ImA9Wx9XGUo.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-6101816750745625329</id><published>2011-01-13T19:52:00.000-08:00</published><updated>2011-01-13T19:52:04.660-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-13T19:52:04.660-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Javascript" /><title>Expected identifier, string or number</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jn5ciCGRNCoN01Pvc9UW-tJkOnw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jn5ciCGRNCoN01Pvc9UW-tJkOnw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jn5ciCGRNCoN01Pvc9UW-tJkOnw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jn5ciCGRNCoN01Pvc9UW-tJkOnw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;a href="http://dotnetfish.blogspot.com/2007/11/expected-identifier-string-or-number.html"&gt;Expected identifier, string or number&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-6101816750745625329?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/ftbNBKjl2AE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/6101816750745625329/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=6101816750745625329" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/6101816750745625329?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/6101816750745625329?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/ftbNBKjl2AE/expected-identifier-string-or-number.html" title="Expected identifier, string or number" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2011/01/expected-identifier-string-or-number.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0IHR3k-fSp7ImA9Wx9QE0k.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-7293677506767326550</id><published>2010-12-25T22:35:00.000-08:00</published><updated>2010-12-25T22:38:56.755-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-25T22:38:56.755-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="invoice software" /><title>xin invoice software website</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/buJXsB5dUTnWShDF86XLELSwX3M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/buJXsB5dUTnWShDF86XLELSwX3M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/buJXsB5dUTnWShDF86XLELSwX3M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/buJXsB5dUTnWShDF86XLELSwX3M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;xin &lt;a href="http://www.xininvoice.com/"&gt;invoice software&lt;/a&gt; website nominated as cool site in&amp;nbsp;&lt;a href="http://www.coolsitecollection.com/sites/view/8c007b3f2e1bbfb94890045f0b37dc0e"&gt;http://www.coolsitecollection.com/sites/view/8c007b3f2e1bbfb94890045f0b37dc0e&lt;/a&gt;&amp;nbsp;and most inspired site in&amp;nbsp;&lt;a href="http://www.mostinspired.com/sites/view/4194e25452fb2ef5bb6a390df84a162a"&gt;http://www.mostinspired.com/sites/view/4194e25452fb2ef5bb6a390df84a162a&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TRbiDFKV4wI/AAAAAAAABIA/zbFY10VTlAY/s1600/XinInvoice.com_CoolsiteCollection.jpg" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="200" src="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TRbiDFKV4wI/AAAAAAAABIA/zbFY10VTlAY/s320/XinInvoice.com_CoolsiteCollection.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;xin &lt;a href="http://www.xininvoice.com/"&gt;invoice software&lt;/a&gt; &lt;a href="http://www.xininvoice.com/"&gt;http://www.xininvoice.com&lt;/a&gt; in www.coolsitecollection.com&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;img border="0" height="200" src="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TRbiHJrZPFI/AAAAAAAABIE/wVrmoMFtmTI/s320/Xininvoice.com_mostinspired.jpg" style="margin-left: auto; margin-right: auto;" width="320" /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;xin &lt;a href="http://www.xininvoice.com/"&gt;invoice software&lt;/a&gt;&amp;nbsp;&lt;a href="http://www.xininvoice.com/"&gt;http://www.xininvoice.com&lt;/a&gt; in www.mostinspired.com&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TRbiHJrZPFI/AAAAAAAABIE/wVrmoMFtmTI/s1600/Xininvoice.com_mostinspired.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TRbiHJrZPFI/AAAAAAAABIE/wVrmoMFtmTI/s1600/Xininvoice.com_mostinspired.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt; &lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-7293677506767326550?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/gEZEzC-MPKA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/7293677506767326550/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=7293677506767326550" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/7293677506767326550?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/7293677506767326550?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/gEZEzC-MPKA/xin-invoice-software-website.html" title="xin invoice software website" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TRbiDFKV4wI/AAAAAAAABIA/zbFY10VTlAY/s72-c/XinInvoice.com_CoolsiteCollection.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/12/xin-invoice-software-website.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8ARHc7eip7ImA9Wx9RF0g.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-3353203331769276657</id><published>2010-12-19T02:34:00.000-08:00</published><updated>2010-12-19T02:34:05.902-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-19T02:34:05.902-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="invoice software" /><category scheme="http://www.blogger.com/atom/ns#" term="invoicing software" /><title>Xin Invoice software 2.0 holiday season and year end promotion</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jcNyDNBLcrjpGzu-w9aGcZH7eTQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jcNyDNBLcrjpGzu-w9aGcZH7eTQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jcNyDNBLcrjpGzu-w9aGcZH7eTQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jcNyDNBLcrjpGzu-w9aGcZH7eTQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;a href="http://www.xincube.com/"&gt;Xin Cube&lt;/a&gt; is running promotion for Xin Invoice product for 16th December 2010 to 31st December 2010. The discount up to 37% for Xin Invoice software version 2.0. for more information, visit: &lt;a href="http://www.xininvoice.com/"&gt;http://www.xininvoice.com&lt;/a&gt;&amp;nbsp;. Press release can be found in&amp;nbsp;&lt;a href="http://www.free-press-release.com/news-xin-invoice-software-2-0-holiday-season-and-year-end-promotion-1292512710.html"&gt;http://www.free-press-release.com/news-xin-invoice-software-2-0-holiday-season-and-year-end-promotion-1292512710.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-3353203331769276657?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/n7gLg4nskqM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/3353203331769276657/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=3353203331769276657" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3353203331769276657?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3353203331769276657?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/n7gLg4nskqM/xin-invoice-software-20-holiday-season.html" title="Xin Invoice software 2.0 holiday season and year end promotion" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/12/xin-invoice-software-20-holiday-season.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk4FR3s6eyp7ImA9Wx9RFUw.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-8244344021405610059</id><published>2010-12-16T07:55:00.000-08:00</published><updated>2010-12-16T07:55:16.513-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-16T07:55:16.513-08:00</app:edited><title>invoice software | invoicing software | billing software</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/R-ULiQubdFSoCnISRVU6RoaB95U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R-ULiQubdFSoCnISRVU6RoaB95U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/R-ULiQubdFSoCnISRVU6RoaB95U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/R-ULiQubdFSoCnISRVU6RoaB95U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;a href="http://www.xininvoice.com/"&gt;invoice software | invoicing software | billing software&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-8244344021405610059?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/8NktfDqpVkU" height="1" width="1"/&gt;</content><link rel="related" href="http://www.xininvoice.com/" title="invoice software | invoicing software | billing software" /><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/8244344021405610059/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=8244344021405610059" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8244344021405610059?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8244344021405610059?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/8NktfDqpVkU/invoice-software-invoicing-software.html" title="invoice software | invoicing software | billing software" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/12/invoice-software-invoicing-software.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUMMQ3g5eip7ImA9Wx9SF0k.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-4712614527362611072</id><published>2010-12-07T09:38:00.000-08:00</published><updated>2010-12-07T09:38:02.622-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-12-07T09:38:02.622-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL 2005" /><title>A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Ef5ZLGOY-XNWakaWXP0S1xheE-s/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ef5ZLGOY-XNWakaWXP0S1xheE-s/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Ef5ZLGOY-XNWakaWXP0S1xheE-s/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Ef5ZLGOY-XNWakaWXP0S1xheE-s/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Facing issue when try to connect to MSSQL 2005 Express from remote server&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;"&gt;&lt;em&gt;A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
To solve this issue&lt;br /&gt;
&lt;br /&gt;
1. Enable TCP/IP&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://2.bp.blogspot.com/_cUl1ZBKmUkU/TP5sau0xaXI/AAAAAAAABHs/WhSo3TobJSM/s1600/untitled6.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;/a&gt;&lt;br /&gt;
Go to Programs -&amp;gt; Microsoft SQL Server 2005 -&amp;gt; Configuration Tools -&amp;gt; SQL Server Configuration Manager&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/_cUl1ZBKmUkU/TP5sau0xaXI/AAAAAAAABHs/WhSo3TobJSM/s1600/untitled6.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="102" src="http://2.bp.blogspot.com/_cUl1ZBKmUkU/TP5sau0xaXI/AAAAAAAABHs/WhSo3TobJSM/s400/untitled6.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Make sure TCP/IP is Enabled&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TP5sca5wCXI/AAAAAAAABHw/966eKhu4y8s/s1600/untitled7.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="147" src="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TP5sca5wCXI/AAAAAAAABHw/966eKhu4y8s/s400/untitled7.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;2. Make sure MS SQL allow remote connection with TCP/IP protocol.&lt;br /&gt;
&lt;br /&gt;
Go to Programs -&amp;gt; Microsoft SQL Server 2005 -&amp;gt; Configuration Tools -&amp;gt; SQL Server Surface Area Configuration&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TP5sKA3snoI/AAAAAAAABHY/gAEElqVeSY8/s1600/untitled.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="115" src="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TP5sKA3snoI/AAAAAAAABHY/gAEElqVeSY8/s400/untitled.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Click on&amp;nbsp;Surface Area Configuration for Services and Connections&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://2.bp.blogspot.com/_cUl1ZBKmUkU/TP5sUCxSUiI/AAAAAAAABHc/pc_Y3JmvamI/s1600/untitled2.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="355" src="http://2.bp.blogspot.com/_cUl1ZBKmUkU/TP5sUCxSUiI/AAAAAAAABHc/pc_Y3JmvamI/s400/untitled2.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Make sure Local and remote connections and using TCP/IP only is selected.&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://1.bp.blogspot.com/_cUl1ZBKmUkU/TP5sWG1dmCI/AAAAAAAABHg/uq4zjBjqS6E/s1600/untitled3.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="318" src="http://1.bp.blogspot.com/_cUl1ZBKmUkU/TP5sWG1dmCI/AAAAAAAABHg/uq4zjBjqS6E/s400/untitled3.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;3. Open port for Port: 1433, sqlbrowser.exe and sqlservr.exe in windows firewall.&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Launch the Windows Firewall configuration tool from the control&amp;nbsp;panel.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Click the Exceptions Tab&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Click on Add Port, key in information as below&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TP5sXhPg9tI/AAAAAAAABHk/FpBelVXLPJQ/s1600/untitled4.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="288" src="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TP5sXhPg9tI/AAAAAAAABHk/FpBelVXLPJQ/s400/untitled4.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;
Repeat above but this time click the "Add Programs." button and select "sqlservr.exe" from the&amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;location where you install SQL Server Express (normally in&amp;nbsp;C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn)&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;Report the same steps but select "sqlbrowser.exe" (normally in:&amp;nbsp;C:\Program Files\Microsoft SQL Server\90\Shared)&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TP5sZYooXEI/AAAAAAAABHo/amGhGcl0gzQ/s1600/untitled5.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TP5sZYooXEI/AAAAAAAABHo/amGhGcl0gzQ/s400/untitled5.gif" width="341" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&amp;nbsp;Try again and the problem solved. Hope this help.&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-4712614527362611072?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/dSA0JiBWIz8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/4712614527362611072/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=4712614527362611072" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/4712614527362611072?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/4712614527362611072?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/dSA0JiBWIz8/network-related-or-instance-specific.html" title="A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_cUl1ZBKmUkU/TP5sau0xaXI/AAAAAAAABHs/WhSo3TobJSM/s72-c/untitled6.gif" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/12/network-related-or-instance-specific.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEMESXY8fSp7ImA9Wx9TFE4.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-8925814411458366265</id><published>2010-11-22T05:26:00.000-08:00</published><updated>2010-11-22T05:26:48.875-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-11-22T05:26:48.875-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="invoice software" /><title>invoice software - Xin Invoice 3 release</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/2WUr9YT9rOJPHHmx3eT4Ev60dAE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2WUr9YT9rOJPHHmx3eT4Ev60dAE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/2WUr9YT9rOJPHHmx3eT4Ev60dAE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/2WUr9YT9rOJPHHmx3eT4Ev60dAE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://www.xincube.com/"&gt;Xin Cube&lt;/a&gt; announce that new version of invoice software - &lt;a href="http://www.xininvoice.com/"&gt;xin invoice 3.0&lt;/a&gt; has released. The invoice software come with new features and new invoice template. &lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;For more information, refer to the press release &lt;a href="http://www.prlog.org/11089459-invoice-software-xin-invoice-new-version-30-released-by-xin-cube.html"&gt;http://www.prlog.org/11089459-invoice-software-xin-invoice-new-version-30-released-by-xin-cube.html&lt;/a&gt; or &lt;a href="http://www.free-press-release.com/news-invoice-software-xin-invoice-new-version-3-0-released-by-xin-cube-1290268955.html"&gt;http://www.free-press-release.com/news-invoice-software-xin-invoice-new-version-3-0-released-by-xin-cube-1290268955.html&lt;/a&gt; . For video demo, please refer to &lt;a href="http://www.youtube.com/user/xincube"&gt;http://www.youtube.com/user/xincube&lt;/a&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-8925814411458366265?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/Jt7kQ4yvJd4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/8925814411458366265/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=8925814411458366265" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8925814411458366265?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8925814411458366265?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/Jt7kQ4yvJd4/invoice-software-xin-invoice-3-release.html" title="invoice software - Xin Invoice 3 release" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/11/invoice-software-xin-invoice-3-release.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak4NRXk8cCp7ImA9Wx9TFE8.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-2487621315318210768</id><published>2010-11-22T04:29:00.000-08:00</published><updated>2010-11-22T04:29:54.778-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-11-22T04:29:54.778-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>MySQL Server 5.1 data folder</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OR7TJpvyDN3GKsr56Y-lVy_leH0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OR7TJpvyDN3GKsr56Y-lVy_leH0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/OR7TJpvyDN3GKsr56Y-lVy_leH0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OR7TJpvyDN3GKsr56Y-lVy_leH0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;My development machine have MySQL server 5.0 installed and i upgrade to version 5.1.&lt;br /&gt;
&lt;br /&gt;
After i've installed MySQL server 5.1, i can't found the data folder which normally in "C:\program files\MySQL\MySQL Server 5.0\data" for version 5.0. &lt;br /&gt;
&lt;br /&gt;
Finally able to get the location in in "C:\Users\All Users\MySQL\MySQL Server 5.1\data" for Windows Vista &lt;br /&gt;
&lt;br /&gt;
If you are using windows XP, it's in "C:\Documents and Settings\All Users\MySQL\MySQL Server 5.1\data"&lt;br /&gt;
&lt;br /&gt;
Hope this help&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-2487621315318210768?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/ns6wh9ipD9M" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/2487621315318210768/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=2487621315318210768" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/2487621315318210768?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/2487621315318210768?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/ns6wh9ipD9M/mysql-server-51-data-folder.html" title="MySQL Server 5.1 data folder" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/11/mysql-server-51-data-folder.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIERHc4fyp7ImA9WhZWGEs.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-3832903918894248301</id><published>2010-10-17T04:39:00.000-07:00</published><updated>2011-05-19T21:41:45.937-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-05-19T21:41:45.937-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>MS SQL profiler like for mysql</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QSlwK7KpeFxY1hBc9T_YcL8gpYk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QSlwK7KpeFxY1hBc9T_YcL8gpYk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QSlwK7KpeFxY1hBc9T_YcL8gpYk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QSlwK7KpeFxY1hBc9T_YcL8gpYk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;I was looking around a software for MySQL that can work like MSSQL profiler which can monitor the SQL query executed. Finally i found one called Log Monitor which work well for me.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;How it's work? Download&amp;nbsp;Log Monitor. Open&amp;nbsp;LogMonitor.jar file.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Connect to MySQL server, open a SQL Query window and run this script&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;SET GLOBAL general_log = 'ON';&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Check on log file location in my.ini file (for windows user) or my.cnf (for linux user).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;For windows user,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;#Path to the database root&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;datadir="C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/Data/"&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman'; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Open Log Monitor and set "log file path" with the file name.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="font-family: 'Times New Roman';"&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Now, open another SQL Query window and run any script. You can see the query you run displayed in the Log Monitor.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;Hope this help.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-3832903918894248301?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/wBkq1ou3aC4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/3832903918894248301/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=3832903918894248301" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3832903918894248301?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3832903918894248301?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/wBkq1ou3aC4/ms-sql-profiler-like-for-mysql.html" title="MS SQL profiler like for mysql" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/10/ms-sql-profiler-like-for-mysql.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEUCSHg5fyp7ImA9Wx9XF04.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-3421554453571822471</id><published>2010-10-12T08:25:00.000-07:00</published><updated>2011-01-11T00:57:49.627-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-01-11T00:57:49.627-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET" /><title>Attempted to read or write protected memory. This is often an indication that other memory is corrupt.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/MYZaBDnWAE6-kw3551vHZnLhtg0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MYZaBDnWAE6-kw3551vHZnLhtg0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/MYZaBDnWAE6-kw3551vHZnLhtg0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/MYZaBDnWAE6-kw3551vHZnLhtg0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;Face strange error when try to print report using crystal report. &lt;br /&gt;
&lt;h1&gt;Server Error in 'xxx' Application.&lt;hr color="silver" size="1" width="100%" /&gt;&lt;/h1&gt;&lt;h2&gt;&lt;i&gt;Attempted to read or write protected memory. This is often an indication that other memory is corrupt.&lt;/i&gt; &lt;/h2&gt;&lt;span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"&gt;              &lt;b&gt; Description: &lt;/b&gt;An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.              &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; Exception Details: &lt;/b&gt;System.AccessViolationException:  Attempted to read or write protected memory. This is often an indication  that other memory is corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;table bgcolor="#ffffcc"&gt;&lt;tbody&gt;
&lt;tr&gt;                   &lt;td&gt;&lt;code&gt;  An unhandled exception was generated during the execution of the current  web request. Information regarding the origin and location of the  exception can be identified using the exception stack trace below.&lt;/code&gt;                    &lt;/td&gt;                &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"&gt;&lt;br /&gt;
&lt;b&gt;Stack Trace:&lt;/b&gt; &lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;table bgcolor="#ffffcc"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;[AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.]&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object&amp;amp; DocumentPath, Int32 Options) +0&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object&amp;amp; DocumentPath, Int32 Options) +95&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +271&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;[Exception: Load report failed.]&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() +333&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) +894&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename) +84&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;Transaction_InvoicePrint.Print() +149&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;Transaction_InvoicePrint.Page_Load(Object sender, EventArgs e) +5&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;System.Web.UI.Control.OnLoad(EventArgs e) +99&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;System.Web.UI.Control.LoadRecursive() +50&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627&lt;/span&gt;&lt;/td&gt;                &lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span style="font-family: Arial, Helvetica, Geneva, SunSans-Regular, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
I'm not sure what could cause this issue but after i reset iis, everything work fine.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-3421554453571822471?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/Ci04--wG69E" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/3421554453571822471/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=3421554453571822471" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3421554453571822471?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/3421554453571822471?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/Ci04--wG69E/attempted-to-read-or-write-protected.html" title="Attempted to read or write protected memory. This is often an indication that other memory is corrupt." /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/10/attempted-to-read-or-write-protected.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcFSHo4fip7ImA9Wx5WGU8.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-2625497404837857681</id><published>2010-10-01T02:40:00.000-07:00</published><updated>2010-10-01T02:40:19.436-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-10-01T02:40:19.436-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL" /><title>mysql 5.1 data folder / directory / location</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/u-KEVm8ILWHKDjELeGjoqNC3UFY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u-KEVm8ILWHKDjELeGjoqNC3UFY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/u-KEVm8ILWHKDjELeGjoqNC3UFY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/u-KEVm8ILWHKDjELeGjoqNC3UFY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I've installed new MySQL 5.1 to replace my MySQL 5.0. I cannot find my data folder.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Finally, check my.ini file in&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;MySQL 5.1 folder and found line below&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;datadir="C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/Data/"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;All data folder is in&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;"C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/Data/"&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-2625497404837857681?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/VmRCZ_ZFExc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/2625497404837857681/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=2625497404837857681" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/2625497404837857681?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/2625497404837857681?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/VmRCZ_ZFExc/mysql-51-data-folder-directory-location.html" title="mysql 5.1 data folder / directory / location" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/10/mysql-51-data-folder-directory-location.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkAHQHszfyp7ImA9Wx5WEU8.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-4837125476898002615</id><published>2010-09-21T20:05:00.000-07:00</published><updated>2010-09-21T20:05:31.587-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-21T20:05:31.587-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="Vulnerability" /><title>ASP.NET Security Vulnerability: Take Action Immediately</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/dv2lVceGk0PHlqrWK40nGkDcQE0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dv2lVceGk0PHlqrWK40nGkDcQE0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/dv2lVceGk0PHlqrWK40nGkDcQE0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/dv2lVceGk0PHlqrWK40nGkDcQE0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;This is very important for those who have asp.net application running out there. Attacker can get data encrypted data in view state or web.config data if you ignore this.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Detail informations and workaround stated in&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Scottgu's Blog&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2010/09/18/important-asp-net-security-vulnerability.aspx&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;For more others information, please refer to&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;a href="http://www.microsoft.com/technet/security/advisory/2416728.mspx"&gt;http://www.microsoft.com/technet/security/advisory/2416728.mspx&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://info.dotnetnuke.com/rs/dotnetnuke/images/DotNetNuke_Security_Update_Regarding_ASPNET_Vulnerability_091810.pdf"&gt;http://info.dotnetnuke.com/rs/dotnetnuke/images/DotNetNuke_Security_Update_Regarding_ASPNET_Vulnerability_091810.pdf&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-4837125476898002615?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/6HZRrkaeyCs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/4837125476898002615/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=4837125476898002615" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/4837125476898002615?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/4837125476898002615?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/6HZRrkaeyCs/aspnet-security-vulnerability-take.html" title="ASP.NET Security Vulnerability: Take Action Immediately" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/09/aspnet-security-vulnerability-take.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0QMRHYzfSp7ImA9Wx5XGUo.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-8595080990638652631</id><published>2010-09-20T01:22:00.000-07:00</published><updated>2010-09-20T01:29:45.885-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-20T01:29:45.885-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MS SQL 2005" /><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET" /><title>Keep track download in ASP.NET</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/7Y8vcXr7iDShYDOLc1GfyIha7bY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7Y8vcXr7iDShYDOLc1GfyIha7bY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/7Y8vcXr7iDShYDOLc1GfyIha7bY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/7Y8vcXr7iDShYDOLc1GfyIha7bY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;Situation:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;I have a software in my web server and let visitor download for free, i wish to keep track of total download and visitor location.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;Feasibility:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;For the location keep tracking, i use GeoIP (&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px;"&gt;GeoLiteCity.dat)&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.maxmind.com/app/ip-location"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;http://www.maxmind.com/app/ip-location&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;Solution:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Database:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;I have create a table called downloadlog with field below. I plan to have different type of product in future, so i add ProductFamilyID field. If you don't have that, you can ignore it.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TJcVUIse1kI/AAAAAAAABHI/Yp1kEw1EBXw/s1600/table.bmp" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TJcVUIse1kI/AAAAAAAABHI/Yp1kEw1EBXw/s320/table.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;Now, i need a stored procedure called&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px;"&gt;psp_DownloadLog_Add&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 13px;"&gt;that insert data into table above. The code should be as simple as possible&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;div&gt;CREATE PROCEDURE [dbo].[psp_DownloadLog_Add]&lt;/div&gt;&lt;div&gt;(&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;@p_IP&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;NVARCHAR(50),&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;@p_Country&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;NVARCHAR(255),&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;@p_CountryCode&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;VARCHAR(50),&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;@p_City&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;NVARCHAR(255),&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;@p_ReferrerURL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NVARCHAR(512),&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;@p_ProductFamilyID&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;INT&lt;/div&gt;&lt;div&gt;)&lt;/div&gt;&lt;div&gt;AS&lt;/div&gt;&lt;div&gt;BEGIN&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;SET NOCOUNT ON;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;INSERT INTO tblDownloadLog&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;(&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;IP,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;Country,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;CountryCode,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;City,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;ProductFamilyID,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;ReferrerURL,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;DownloadDate&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;VALUES&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;(&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;@p_IP,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;@p_Country,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;@p_CountryCode,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;@p_City,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;@p_ProductFamilyID,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;@p_ReferrerURL,&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;GETDATE()&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;SET NOCOUNT OFF;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;END&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;ASP.NET&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;To make the system more structural and manageable, I have create 2 classes to handle the download log. DownloadLogInfo class mainly is use the deal with the information that need to log into database. DownloadLog class is mainly the class who do the communication with the database. Please check the code below.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;DownloadLogInfo class&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;div&gt;&amp;nbsp;public sealed class DownloadLogInfo&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public DownloadLogInfo() { }&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int _downloadID = 0;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string _ip = "";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string _country = "";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string _countryCode = "";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string _city = "";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int _productFamilyID = 0;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string _referrerURL = "";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DateTime _downloadDate = DateTime.Now;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int DownloadID { get { return _downloadID; } set { _downloadID = value; } }&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string IP { get { return _ip; } set { _ip = value; } }&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string Country { get { return _country; } set { _country = value; } }&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string CountryCode { get { return _countryCode; } set { _countryCode = value; } }&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string City { get { return _city; } set { _city = value; } }&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public int ProductFamilyID { get { return _productFamilyID; } set { _productFamilyID = value; } }&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public string ReferrerURL { get { return _referrerURL; } set { _referrerURL = value; } }&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public DateTime DownloadDate { get { return _downloadDate; } set { _downloadDate = value; } }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public DownloadLogInfo(int pDownloadID, string pIP, string pCountry, string pCountryCode, string pCity, int pProductFamilyID, string pReferrerURL, DateTime pDownloadDate)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _downloadID = pDownloadID;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _ip = pIP;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _country = pCountry;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _countryCode = pCountryCode;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _city = pCity;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _productFamilyID = pProductFamilyID;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _referrerURL = pReferrerURL;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _downloadDate = pDownloadDate;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;b&gt;DownloadLog Class&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;public sealed class DownloadLog&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public void Add(DownloadLogInfo pInfo, string pConnectionString)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SpParamInfo[] myParamInfo = new SpParamInfo[6];&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myParamInfo[0] = new SpParamInfo("@p_IP", SqlDbType.NVarChar, pInfo.IP);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myParamInfo[1] = new SpParamInfo("@p_Country", SqlDbType.NVarChar, pInfo.Country);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myParamInfo[2] = new SpParamInfo("@p_CountryCode", SqlDbType.NVarChar, pInfo.CountryCode);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myParamInfo[3] = new SpParamInfo("@p_City", SqlDbType.NVarChar, pInfo.City);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myParamInfo[4] = new SpParamInfo("@p_ProductFamilyID", SqlDbType.Int, pInfo.ProductFamilyID);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myParamInfo[5] = new SpParamInfo("@p_ReferrerURL", SqlDbType.NVarChar, pInfo.ReferrerURL);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DbAdapter myDbAdapter = new DbAdapter(pConnectionString);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDbAdapter.ExecuteNonQuery("psp_DownloadLog_Add", myParamInfo);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDbAdapter.Dispose();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;Now, I have create a page, call download.aspx. This page will actually get information from the visitor and insert into database. After that it will force a file to be downloaded. Before that, i already&amp;nbsp;GeoLiteCity.dat&amp;nbsp;file and put into my&amp;nbsp;App_Data folder.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;b&gt;Code behind for download.aspx&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;div&gt;protected void Page_Load(object sender, EventArgs e)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string VisitorReferrer;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Full path to GeoLiteCity.dat file&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string FullDBPath = Server.MapPath("~/App_Data/GeoLiteCity.dat");&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Visitor's IP address&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string VisitorIP;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VisitorIP &amp;nbsp;= Request.ServerVariables["REMOTE_ADDR"];&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (Request.UrlReferrer != null)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VisitorReferrer = Request.UrlReferrer.ToString();&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VisitorReferrer = "";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Create objects needed for geo targeting&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Geotargeting.LookupService ls = new Geotargeting.LookupService(FullDBPath, Geotargeting.LookupService.GEOIP_STANDARD);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Geotargeting.Location visitorLocation = ls.getLocation(VisitorIP);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; DownloadLog myDownloadLog = new DownloadLog();&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DownloadLogInfo myDownloadLogInfo = new DownloadLogInfo();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (visitorLocation != null) // get the geoip information using visitor IP address&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.Country = visitorLocation.countryName;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.CountryCode = visitorLocation.countryCode;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.City = "unknown";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (visitorLocation.city != null)&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.City = visitorLocation.city;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.IP = VisitorIP;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.ProductFamilyID = 1;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.ReferrerURL = VisitorReferrer;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string country = "unknown";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string countryCode = "unknown";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string city = "unknown";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.Country = country;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.CountryCode = countryCode;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.City = city;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.IP = VisitorIP;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.ProductFamilyID = 1;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;myDownloadLogInfo.ReferrerURL = VisitorReferrer;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;nbsp;WebConfig.Connection is the connection the database and insert data into database&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; myDownloadLog.Add(myDownloadLogInfo, WebConfig.Connection);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; Response.ContentType = "application/zip";&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; Response.AddHeader("content-disposition", "attachment; filename=softwaresetup.zip");&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; FileStream sourceFile = new FileStream(@"C:\inetpub\dotnetfish\software\softwaresetup.zip", FileMode.Open);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; long FileSize;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; FileSize = sourceFile.Length;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; byte[] getContent = new byte[(int)FileSize];&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; sourceFile.Read(getContent, 0, (int)sourceFile.Length);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; sourceFile.Close();&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; Response.BinaryWrite(getContent);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/div&gt;&lt;div&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;Hope this help.&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-8595080990638652631?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/MTMcIwMDRHg" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/8595080990638652631/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=8595080990638652631" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8595080990638652631?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/8595080990638652631?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/MTMcIwMDRHg/keep-track-download-in-aspnet.html" title="Keep track download in ASP.NET" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_cUl1ZBKmUkU/TJcVUIse1kI/AAAAAAAABHI/Yp1kEw1EBXw/s72-c/table.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/09/keep-track-download-in-aspnet.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YHQHkzcCp7ImA9Wx5XFU8.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-4955094086358258919</id><published>2010-09-14T22:38:00.000-07:00</published><updated>2010-09-14T22:38:51.788-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-14T22:38:51.788-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="windows" /><title>Cannot Delete xxx: Access is denied  Make sure the disk is not full or write-protected and that the file is not currently in use</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sXZoNBeLBLuddJmJZoAPaELrTIg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sXZoNBeLBLuddJmJZoAPaELrTIg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sXZoNBeLBLuddJmJZoAPaELrTIg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sXZoNBeLBLuddJmJZoAPaELrTIg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Have you come across the annoying error when try to delete files from you computer or even external harddisk?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TJBbaAGU_UI/AAAAAAAABHA/WNzyPQyjxko/s1600/DeleteAccessDenied.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="168" src="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TJBbaAGU_UI/AAAAAAAABHA/WNzyPQyjxko/s320/DeleteAccessDenied.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;I've tried to change the permission setting in security tab but i cannot do anything because only system can change the setting.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Finally, i found a tool named unlocker&amp;nbsp;&lt;/span&gt;&lt;a href="http://download.cnet.com/Unlocker/3000-2248_4-10493998.html"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;http://download.cnet.com/Unlocker/3000-2248_4-10493998.html&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;that help me to delete the files.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;Hope this help.&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-4955094086358258919?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/pyJd5quJlyY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/4955094086358258919/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=4955094086358258919" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/4955094086358258919?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/4955094086358258919?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/pyJd5quJlyY/cannot-delete-xxx-access-is-denied-make.html" title="Cannot Delete xxx: Access is denied  Make sure the disk is not full or write-protected and that the file is not currently in use" /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TJBbaAGU_UI/AAAAAAAABHA/WNzyPQyjxko/s72-c/DeleteAccessDenied.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/09/cannot-delete-xxx-access-is-denied-make.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IHQHw7cCp7ImA9Wx5XFEo.&quot;"><id>tag:blogger.com,1999:blog-8062149230191402223.post-4432338798926431161</id><published>2010-09-14T06:38:00.000-07:00</published><updated>2010-09-14T06:38:51.208-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-09-14T06:38:51.208-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET" /><title>Attempted to read or write protected memory. This is often an indication that other memory has been corrupted.</title><content type="html">
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TyL_vhLHOSwDaCakYag0PHBhZ1U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TyL_vhLHOSwDaCakYag0PHBhZ1U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TyL_vhLHOSwDaCakYag0PHBhZ1U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TyL_vhLHOSwDaCakYag0PHBhZ1U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;Hit below error when deploy a new app to existing running application.&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Attempted to read or write protected memory. This is often an indication that other memory has been corrupted.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Exception Details: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory has been corrupted.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;Source Error:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;Try to set the folder permission but still hit the same error after restart iis.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;Next, i try to run the permissions wizard in the IIS. After run it, restart iis and i'm lucky. It work like normal.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TI96XZ24YsI/AAAAAAAABG4/pJ4IVN1t9uQ/s1600/IISPermission.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TI96XZ24YsI/AAAAAAAABG4/pJ4IVN1t9uQ/s320/IISPermission.bmp" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;Hope this help.&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8062149230191402223-4432338798926431161?l=dotnetfish.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/ApplicationDevelopment/~4/KXuIFCD3hI8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://dotnetfish.blogspot.com/feeds/4432338798926431161/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=8062149230191402223&amp;postID=4432338798926431161" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/4432338798926431161?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/8062149230191402223/posts/default/4432338798926431161?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ApplicationDevelopment/~3/KXuIFCD3hI8/attempted-to-read-or-write-protected.html" title="Attempted to read or write protected memory. This is often an indication that other memory has been corrupted." /><author><name>In blues</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_cUl1ZBKmUkU/TI96XZ24YsI/AAAAAAAABG4/pJ4IVN1t9uQ/s72-c/IISPermission.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://dotnetfish.blogspot.com/2010/09/attempted-to-read-or-write-protected.html</feedburner:origLink></entry></feed>

