Skip to main content

Posts

Easyphp buat kelakar.. tak mau run..

pehh dah bertahun aku cari.. apa sebab apache kat easyphp tak mau run lepas install dalam windows utk buat development... selalu keluar error ni.. error message i get:- "Apache canot be runned : another Web server use the Web port or port is blocked by firewall" aku pon tak tau memulanya. so la ni baru aku jumpa solution.. check it out. 1. bukak httpd.conf dalam folder apache. cari 2 tempat yang ada tulis pasal localhost:80.. tukar pada port lain.. macam localhost:8080 ka. so satu lagi kat servername localhost.... tukar kepada servername localhost:8080. itu sebagai contoh le.. kalau korang nak tukar port lain.. boleh aje. sebab apa kena tukar? tau ka? sebab dalam pc windows xp pro dan ke atas.. IIS server sedang running secara default. so port 80 akan clash.. IIS pon nak port 80.. apache pon nak juge.. yang pening.. aku lah jugak.. hahahaa 2. kalau pakai windows vista dan ke atas.. problem biasanya pasal permission pada folder.. so pandai2 le korang set ye. 3. easyphp ni mema...

Unable to start debugging on the web server.

apa punya error da.. dah seminggu aku dok pikir apa error. banya dalam web dok cerita pasal winxp dengan vs2005. tapi yang cerita pasal vs2005 dengan win7 tu banyak.. tapi aku sendiri baca pon tak paham.. apa yang depa dok solve.. hahaha mungkin aku ni tak paham bahasa kot. simptom: pakai win vista/win 7. pakai vs2005 solution: pasng vs 2005 sp1 siap2. cuba check kat iis7/iis7.5 tu, right click kat project, tengok kat manage application > advanced setting tukar kat application pools. tukar dari defaultapppools kepada classic app pool. pastu restart iis. cuba try test. referrence: http://ryanfarley.com/blog/archive/2005/08/23/8540.aspx http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx

Response.Write() shows output twice

sakit kepala bila kita suruh VS tulis output pada webpage satu perkataan.. contohnya OK.. tapi yang keluar OKOK. mau nak hempuk notebook aku ni.. simptom: nak suruh VS tulis pada webpage satu perkataan apabila selesai buat semua background job contohnya "OK". itu je.. tanpa apa2 html tag lain. just 1 word. tapi bila runtime.. webpage tulis "OKOK" kluar twice. sapa tak hangin. so nak solution? cuba ni: Response.Write("OK"); biasanya kita tulis direct macam tu. dengan harapan dia akan tulis apa yang kita nak. tapi hangpa kena tambah word before and after. something jadi macam ni Response.Clear(); Response.Write("OK"); Response.End(); selamat mencuba.

Buang html tag dalam aspx dalam VS

nak buang html tag yang dijana automatik oleh VS walaupun pages tu blank. simptom: nak dapatkan page kosong bila runtime. mungkin nak page yang kosong saja. ada 2 cara. 1 pakai kaedah senang ni.. kedua, gunakan http handler.. caranya: utk kaedah pertama saja. bukak pages aspx.. jangan bukak code behind. code behind tu jangan diusik. pada pages tu.. pastikan diklik pada source. bukannya design. pada source tu.. pastikan tag paling atas iaitu mulai pada tag >DOCTYPE HTML PUBLIC... hinggalah tag /HTML" boleh dibuang. jadi.. page tu kalau dipanggil (run) pon.. dia akan blank page.. meaning that.. no html tag ada dalam page itu walaupun ianya blank page. itu je. tq

Masalah Debugging VS

debugging tak jalan atau tak boleh nak run debugging.. simptom: dah install vs & dotnet framework, tapi debugger tak jalan. macam2 masalah lain. try this: 1. pastikan VS diinstall dengan betul dan tak ada error during installation. 2. uninstall semua dotnet framework yang ada dalam pc. mulai dengan yang paling besar dulu. 3. restart pc. pastikan semua dah dibuang dengan baik. 4. download semua dotnet framework yang baru beserta service pack. pastikan tak ada error ketika download. pastikan yang didownload tu package redistributable. 5. then install satu persatu.. mulai yang paling kecik.. tapi sebelum up kepada yang lebih besar.. pastikan selepas restart.. diinstall service pack pulak. 6. itu je if u need explanation in english version. please reply this posing. tq

Can not stop Server Audittrace

Who created the Audit Trace? If it is the C2 Audit, you have to use sp_configure to turn it off: EXEC sys.sp_configure N'c2 audit mode', N'0' GO RECONFIGURE WITH OVERRIDE GO You can check if it is enabled by just running: EXEC sys.sp_configure N'c2 audit mode' Look at the run_value returned if it is 1 then the C2 Audit is running and that is your problem. Find out why it was enabled and what for. You might not be able to just disable it. You can read more about the C2 Audit on the following Article: http://technet.microsoft.com/en-us/library/dd277388.aspx -------------------------------------------------------------------------------- Jonathan Kehayias http://sqlblog.com/blogs/jonathan_kehayias/ http://www.twitter.com/SQLSarg http://www.sqlclr.net/ Sumber: http://social.msdn.microsoft.com/Forums/en-SG/sqldatabaseengine/thread/3d485a94-eef0-4890-a68f-acbd73be1c65

Massive amounts of .trc files

The filename is "audit trace". That makes me think that it is auditing everything that could potentially be important against your SQL Server. Some companies need this for SOX compliance. If you know this does not apply to your SQL Server environment, you can turn it off by issuing T-SQL commands. To view all of the traces on your system, run this: SELECT * FROM sys.traces WHERE path LIKE N'%audittrace_%' Find the trace that is called audittrace.trc: --Stop the trace EXEC sp_trace_setstatus @traceid = , @status = 0 --Delete the trace definition from the server EXEC sp_trace_setstatus @traceid = , @status = 2 Paul A. Mestemaker II Program Manager Microsoft SQL Server Manageability http://blogs.msdn.com/sqlrem/ Sumber: http://social.msdn.microsoft.com/forums/en-US/sqltools/thread/2b5bac33-03a6-46c7-a83e-c36e09ae8a33/