Jump to content

ramone_johnny

Member
  • Posts

    27
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Pakistan

Posts posted by ramone_johnny

  1. Why would you pick classic ASP nowadays? I can't think of a single good reason to use that (as much as I dislike PHP - and dislike is quite an understatement here - I'd even use that before). If you're gonna go the Microsoft way, ASP.NET is where it's at. Classic ASP is 10 year old tech (the NT4 days)... And ASP.NET isn't anything new either (been around since 2002, the 4th version of the .NET framework is coming up soon). Classic ASP is pretty much inferior to anything I can think of. ASP.NET has rich frameworks, great OO languages, proper error handling, better dev tools, scales better, more maintainable, more secure, faster to develop, far more stable, more flexible, ridiculously more powerful, etc (I could go on for days, but having an edge over classic ASP isn't exactly something to brag about either)

    Look like you got several issues...

    -Using the wrong, outdated tech (IMHO)

    -Trying to enter an invalid data type (string into a numeric column? or a date/time?) and not understanding the (rather helpful) error message (I don't wanna bash anyone, but this is very, very basic stuff we're talking about here)

    -Obviously, no server-side, nor client-side validation is done (and that's a VERY, VERY BAD thing!). There is NO excuse for not doing this - at the VERY LEAST server-side (and display validation errors on the form/page - not have the page crash like that and display server errors for such things). Preferably, using Regular Expressions, and also doing client-side validation in javascript (onchange/onsubmit). And while we're on that subject, date handling is a fun thing. You're assuming ppl will always enter MM/DD/YYYY it seems... Ideally you use the ISO date format (internally at least). Server/client/database/regional settings and what not can bite you in the a** here...

    -Likely, you're using string concatenation to generate dynamic SQL (which is again VERY, VERY BAD - 100% exposed to very basic SQL injection attacks, and n00b can TOTALLY hack this without even having to think). The very minimal thing to do (and I'd call that quite a ugly hack) is escaping strings, although parameterized queries is what one ought to use (sprocs not a bad idea either). No idea what DB you're using, nor if you're using the right proivider for it either or anything like that (not enough details - just hoping it ain't jet/access! *shudders*).

    It may sound harsh, but don't take it as bashing. More like an eye opener perhaps. If you want to find out how to do this properly, there are loads - and I mean LOADS of good infos out there... Like the ASP.NET quickstarts, starter kits, sample code everywhere, MSDN, endless webcasts, training DVDs available for the price of shipping, MS eLearning offers (lots of free courses), tons of community websites, etc... And there are even some great free dev tools (Visual Web Developper namely). There are many excellent (powerful, fast, secure, ...) and free enterprise grade RDBMS'es as well (SQL Server Express as well as DB2 and Oracle express, PostgreSQL, etc).

    Even if I decided against ASP.NET, I *still* wouldn't do classic ASP.

    I still programme in classic ASP because it does what I want and I dont have to learn a new language. I will move to ASP.NET in the future but just because something is "new" doesnt always mean it is better.

    RJ

  2. A really cool mobile phone aye?

    You know what, that post reminded me of just why I want to get out of support. See below...

    Staff - "my computer isnt working properly"

    Me - "whats the problem"

    Staff - "I dont know but i just clicked on the button and some error message popped up and then I couldnt do anything and I tried to fix it by...blah blah blah"

    How is anyone supposed to offer assistance to anyone with such dumbarse requests, with such little explanation, or such plain stupidity.

    Why dont you wave the phone around out in an open space like on the freeway during peak hour and see if you can pick up a signal.

    RJ

  3. Hi guys,

    This problem is doing my head in. Environment is Server 2003, XP clients with all the latest patches, service packs and updates. At present I have automatic updates scheduled from the WSUS server and have specified for this to happen Monday nights weekly ONLY at 9pm with no automatic restarts.

    As the title suggests, the **** computers keep restarting unexpectadly during paying user sessions. The machines are withing a public library. This causes issues as sessions are timed and as you can imagine, waiting for a machine to restart as well as losing all unsaved work is proving quite frustrating!

    Below is a screen shot of the Automatic Updates Group Policy settings on the server.

    groupPOL.gif

    Have I missed something here? Ive checked the clients within Automatic Updates and they all say scheduled for Mondays 9PM (grey shaded) It even says in the event viewer that updates have been downloaded and are scheduled to install Monday 9PM - but the bloody things seem to restart whenever they feel like it!

    Please help!

    John

  4. I dont get why they have to have the same computer name anyway, just build a spare server with the restored database, call it something different and if the original box fails create a static entry in DNS which redirects requests to the backup server.

    If the applications you are using are reliant on computer names then its only going to take you a few minutes to delete the original account from AD and change the backup servers name to the original name.

    Already tried the DNS redirection thing. Didnt work. The Pharos application is pretty stubborn I must admit.

    Deletion of the computer account (domain controller) from AD is something that Ive never had to do before, and using the guidelines I found in the article I posted does just that.

    And yes, It only takes as you say "a few minutes"

    RJ

  5. 1- Domain Controller (Active Directory)

    2- DNS

    Just promote the second machine and make it the second DC in the forest

    3- DHCP

    Create a second scope with different address ranges. or create the same scope just disable the service until needed

    4- VPN

    Create the same thing on the 2 servers just keep the service set to disabled until needed

    5- File Server

    run DFS to replicate the data

    It all is pretty straight forward. Not much to configure in case of a disaster. The biggest thing is to have that second DC that holds user information. Really, as long as you have that and a good backup program.. you should be in good shape

    Exactly, I just couldnt be bothered typing it. :whistle: Also, if youre new at this, which obviously you are, I would strongly suggest trialing this in a lab, NOT IN A LIVE ENVIRONMENT. If you screw something up withing AD, the phone will be ringing off the hook!

    RJ

  6. Hi guys,

    We have an interesting situation within our organisation at the moment. We are running a server based application called Pharos which basically administers and manages public space computers, registrations, money handling etc. Patrons have their own membership cards that contain credit. Unfortunately you can only run one instance of this application on the same domain, and it is not supported on 2003 clustering. This then presents a problem of having a single point of failure across the network, should the main server go offline. This would result in taking 50 odd public workstations down with it.

    According to the pharos documentation, to prevent this and ensure there is no downtime, they suggest simply creating a 'duplicate' server with the same computer name and IP address, then restoring the Pharos database accross from a backup of the mdf file from the secondary server.

    Supposed example.

    1. Main server running pharos goes offline, taking down all of the clients.

    2. Duplicate server is plugged in on the network and brought online with a restored backup of the pharos database.

    3. The clients then point to the duplicate server as a seamless intergration.

    NOW HERES MY PROBLEM....

    When trying to create this so called DUPLICATE server as they suggest, I am prompted with the following error ...

    "The following error occrurred attempting to rename the computer to "(servername)" ; the account already exists."

    I get this error for obvious reasons, however I still get this even when I do the following...

    1. Unplug the server with the same credentials

    2. Flush every instance of the name from the DNS listing on all servers

    3. Flush the name from within AD.

    4. Restart all the domain controllers

    Basically Im out of ideas guys. Where else would the name exist? I really need a solution here as we intend to go live the end of this month.

    Any suggestions?

    Thanks,

    John

  7. The main difference for myself being a web designer was that Windows XP Home Edition did not natively support IIS. It can be done, with registry tweaks but why bother when I know it will work as intended without any issues on Pro?

    RJ

  8. Hi aussiecanuck46,

    Yeah its been pretty ordinary. There were a few other things that I forgot to mention in the original thread. I had the primary drive hanging off the connection closest to that of the mainboard and the secondary off the last connection.

    The IDE cable has two port available for use on it. I think I might have had that the other way round, as I have 2 drives, my original 20Gb and a newer 80Gb. Theyre definitely terminated correctly, master and slave. So what I have now is the primary hanging off the very last available connection on the cable and the secondary off the other one. Ive probably just confused everyone ...but anyway. Still doesnt really make sense as Ive been using it for 12 months. One of the power connections seems a bit loose so Im not using it.

    I seriously dont know what else to check. The log file looks to be ok as well.

    Actually I just had a look in the event viewer...and found this.

    The DNS proxy agent was unable to read the local list of name-resolution servers from the registry. The data is the error code.

    Message delivery to the remote domain 'daum.net' failed for the following reason: The remote server did not respond to a connection attempt.

    TCP/IP has reached the security limit imposed on the number of concurrent TCP connect attempts.

    Application hang. Fault bucket 126637809.

    Faulting application kazaalite.kpp, version 0.0.0.0, faulting module unknown, version 0.0.0.0, fault address 0x00000000.

    Jesus, actually now that Ive found those, Ill have to take a look on google and see whats going on...

    I still think somethings screwed with the mainboard. (dry circuit or something)

    Thanks,

    John

  9. Hey guys,

    Having some trouble with my home computer at the moment. Seems to have stabled after making a few changes recently, but unfortunately im still experiencing the odd system hang, blue screen etc.

    System is an ASUS P4P800SE mainboard, 3.2 Intel CPU, 1Gb ram (KingMAX), 100Gb HDD running XP Pro.

    Whats been happening...

    System blue screen a few weeks ago, tried resetting and restarting. Almost restarted, however hung at the Windows XP initialising screen, restarted again, hung at power on self test. Then wouldnt start at all. System would power up, but would not show a POST, all lights on the mainboard appeared to be active. CPU fan was spinning, everything looked ok, just had no signal. Yes signal cable was plugged in....

    What I troubleshooted....

    My initial thoughts were CPU but to investigate further, thought Id try a few things. I took the board back to absolute basics, keyboard, video and ram only. Same thing. So I tried different ram, again no different. After trying a few different things again such as swapping IDE cables, resetting the BIOS and swapping around the internal power outlets etc. still had no luck.

    Then what...

    I took the PC down to a local dealer here not far from where I lived and they popped in a 2.8Ghz processor and diagnosed the issue as the CPU. I was a bit dissapointed as the chip was only 12 months old. (3.0Ghz Intel) Anyway, I couldnt find the **** receipt so I opted to simply replace it with a new processor and upgrade in the process. Upon installing the processor, I went about resetting the BIOS to default settings (I had tried this with the previous CPU and again nothing) and the system powered up no problems.

    Stable system...?

    Not quite. Ive had this annoying problem for ages now and have just learnt to deal with it. When powering on the system, it hangs badly at the desktop for a good 2-3 minutes. Its just a case of having to "wait it out" until I can finally use mostly IE, (the other apps usually respond ok immediately).

    More troubleshooting...

    Adaware install and system clean up, DONE. CCleaner install and system cleanup, DONE. InoculateIT anti virus signature update and system scan ...guess what? Found 7 **** viruses. Oh well, I meant to do this earlier but got lazy!.

    Win32Gael

    Win32.BoxedAX!Worm

    Win32.SillyDL.DV!CABTrojan

    Win32.SillyDL.DV!Trojan

    Win32.Dyfuca.Variant!Trojan

    Win32.Dyfuca.Variant!Trojan

    Win32.SillyDL.DV!Trojan

    I have since cured these viruses and run additional scans which show the system as not being infected.

    Maybe this has fixed the issue.....?

    No not even close. Im now getting browser windows that hang badly, cannot close them, they close partially, IE doesnt respond, cant scroll, and also receiving these annoying reference memory cannot be read, click ok to terminate...

    Ive just run up hijack this. Im a first time user of this application so I would appreciate some feedback on this. Heres the log output...

    Logfile of HijackThis v1.99.1

    Scan saved at 2:24:30 PM, on 10/09/2005

    Platform: Windows XP SP2 (WinNT 5.01.2600)

    MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)

    Running processes:

    C:\WINDOWS\System32\smss.exe

    C:\WINDOWS\system32\winlogon.exe

    C:\WINDOWS\system32\services.exe

    C:\WINDOWS\system32\lsass.exe

    C:\WINDOWS\system32\svchost.exe

    C:\WINDOWS\System32\svchost.exe

    C:\WINDOWS\system32\spoolsv.exe

    C:\WINDOWS\System32\inetsrv\inetinfo.exe

    C:\Program Files\Computer Associates\InoculateIT\InoRpc.exe

    C:\Program Files\Computer Associates\InoculateIT\InoRT.exe

    C:\Program Files\Computer Associates\InoculateIT\InoTask.exe

    C:\WINDOWS\LogWatNT.exe

    C:\WINDOWS\System32\nvsvc32.exe

    C:\Program Files\Analog Devices\SoundMAX\SMAgent.exe

    C:\WINDOWS\System32\svchost.exe

    C:\WINDOWS\System32\svchost.exe

    C:\WINDOWS\Explorer.EXE

    C:\Program Files\Analog Devices\SoundMAX\SMax4PNP.exe

    C:\Program Files\Analog Devices\SoundMAX\Smax4.exe

    C:\WINDOWS\AGRSMMSG.exe

    C:\WINDOWS\system32\RUNDLL32.EXE

    C:\Program Files\Computer Associates\InoculateIT\realmon.exe

    C:\Program Files\Winamp\winampa.exe

    C:\Program Files\QuickTime\qttask.exe

    C:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqlmangr.exe

    C:\WINDOWS\System32\dllhost.exe

    C:\PROGRA~1\Yahoo!\MESSEN~1\ymsgr_tray.exe

    C:\Program Files\Internet Explorer\iexplore.exe

    C:\Documents and Settings\John *******\Desktop\HijackThis.exe

    R0 - HKCU\Software\Microsoft\Internet Explorer\Main,Start Page = http://www.supraforums.com.au/forum/

    O2 - BHO: AcroIEHlprObj Class - {06849E9F-C8D7-4D59-B87D-784B7D6BE0B3} - C:\Program Files\Adobe\Acrobat 6.0\Reader\ActiveX\AcroIEHelper.dll

    O2 - BHO: Google Toolbar Helper - {AA58ED58-01DD-4d91-8333-CF10577473F7} - c:\program files\google\googletoolbar1.dll

    O3 - Toolbar: &Google - {2318C2B1-4965-11d4-9B18-009027A5CD4F} - c:\program files\google\googletoolbar1.dll

    O4 - HKLM\..\Run: [soundMAXPnP] C:\Program Files\Analog Devices\SoundMAX\SMax4PNP.exe

    O4 - HKLM\..\Run: [soundMAX] "C:\Program Files\Analog Devices\SoundMAX\Smax4.exe" /tray

    O4 - HKLM\..\Run: [AGRSMMSG] AGRSMMSG.exe

    O4 - HKLM\..\Run: [NvCplDaemon] RUNDLL32.EXE C:\WINDOWS\System32\NvCpl.dll,NvStartup

    O4 - HKLM\..\Run: [nwiz] nwiz.exe /install

    O4 - HKLM\..\Run: [NvMediaCenter] RUNDLL32.EXE C:\WINDOWS\System32\NvMcTray.dll,NvTaskbarInit

    O4 - HKLM\..\Run: [Realtime Monitor] "C:\Program Files\Computer Associates\InoculateIT\realmon.exe"

    O4 - HKLM\..\Run: [WinampAgent] C:\Program Files\Winamp\winampa.exe

    O4 - HKLM\..\Run: [QuickTime Task] "C:\Program Files\QuickTime\qttask.exe" -atboottime

    O4 - HKCU\..\Run: [Yahoo! Pager] C:\PROGRA~1\Yahoo!\MESSEN~1\ypager.exe -quiet

    O4 - Global Startup: Microsoft Office.lnk = C:\Program Files\Microsoft Office\Office10\OSA.EXE

    O4 - Global Startup: Service Manager.lnk = C:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqlmangr.exe

    O8 - Extra context menu item: &Google Search - res://c:\program files\google\GoogleToolbar1.dll/cmsearch.html

    O8 - Extra context menu item: &Translate English Word - res://c:\program files\google\GoogleToolbar1.dll/cmwordtrans.html

    O8 - Extra context menu item: Backward Links - res://c:\program files\google\GoogleToolbar1.dll/cmbacklinks.html

    O8 - Extra context menu item: Cached Snapshot of Page - res://c:\program files\google\GoogleToolbar1.dll/cmcache.html

    O8 - Extra context menu item: E&xport to Microsoft Excel - res://C:\PROGRA~1\MICROS~2\Office10\EXCEL.EXE/3000

    O8 - Extra context menu item: Similar Pages - res://c:\program files\google\GoogleToolbar1.dll/cmsimilar.html

    O8 - Extra context menu item: Translate Page into English - res://c:\program files\google\GoogleToolbar1.dll/cmtrans.html

    O9 - Extra button: Yahoo! Messenger - {E5D12C4E-7B4F-11D3-B5C9-0050045C3C96} - C:\PROGRA~1\Yahoo!\MESSEN~1\YPager.exe

    O9 - Extra 'Tools' menuitem: Yahoo! Messenger - {E5D12C4E-7B4F-11D3-B5C9-0050045C3C96} - C:\PROGRA~1\Yahoo!\MESSEN~1\YPager.exe

    O9 - Extra button: Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe

    O9 - Extra 'Tools' menuitem: Windows Messenger - {FB5F1910-F110-11d2-BB9E-00C04F795683} - C:\Program Files\Messenger\msmsgs.exe

    O16 - DPF: Yahoo! Chat - http://us.chat1.yimg.com/us.yimg.com/i/cha...t/c381/chat.cab

    O16 - DPF: {17492023-C23A-453E-A040-C7C580BBF700} (Windows Genuine Advantage Validation Tool) - http://go.microsoft.com/fwlink/?linkid=39204

    O17 - HKLM\System\CCS\Services\Tcpip\..\{8531D9E6-4A64-44CD-B6EB-E2EFF5CF0878}: NameServer = 203.194.27.57 203.194.56.150

    O17 - HKLM\System\CS1\Services\Tcpip\..\{8531D9E6-4A64-44CD-B6EB-E2EFF5CF0878}: NameServer = 203.194.27.57 203.194.56.150

    O23 - Service: InoculateIT Admin Server (InoNmSrv) - Computer Associates International, Inc. - C:\Program Files\Computer Associates\InoculateIT\InoNmSrv.exe

    O23 - Service: InoculateIT RPC Server (InoRPC) - Computer Associates International, Inc. - C:\Program Files\Computer Associates\InoculateIT\InoRpc.exe

    O23 - Service: InoculateIT Realtime Server (InoRT) - Computer Associates International, Inc. - C:\Program Files\Computer Associates\InoculateIT\InoRT.exe

    O23 - Service: InoculateIT Job Server (InoTask) - Computer Associates International, Inc. - C:\Program Files\Computer Associates\InoculateIT\InoTask.exe

    O23 - Service: Event Log Watch (LogWatch) - Unknown owner - C:\WINDOWS\LogWatNT.exe

    O23 - Service: NVIDIA Display Driver Service (NVSvc) - NVIDIA Corporation - C:\WINDOWS\System32\nvsvc32.exe

    O23 - Service: SoundMAX Agent Service (SoundMAX Agent Service (default)) - Analog Devices, Inc. - C:\Program Files\Analog Devices\SoundMAX\SMAgent.exe

    Whats really annoying is that the CPU appears to be just idling along when the system hangs. 3% usage. Also the browser seems to hang moreso when using javascript "pop up" windows.

    Ive already tried clearing the IE temp files, history, and resetting the settings back to default.

    Apart from perhaps trying spybot, Im out of ideas.

    Thanks in advance,

    John

  10. Hey guys,

    My install of XP is running fine, however when first starting up the **** thing hangs at the desktop. I cant launch explorer, or make an internet connection via dial up. Infact almost everything hangs, its a matter of waiting 4-5 minutes. Its really giving me the s_hits! Windows update is ok, Ive run a full anti virus scan, thats ok, and also run adaware over the top.

    The system looks clean, just got this annoying hanging error. I got a feeling it might be SP2, but where the hell do I start?

    RJ

  11. You might want to try this...probably solve your problem in a nutshell.

    http://www.pscode.com/vb/scripts/ShowCode....d=6447&lngWId=4

    Also I wouldnt make a habit actually storing ANY images in an access DB. Access is clumsy and will only handle so much. The trick is to store the *path* to the image folder location.

    IE

    DIM myimages

    myimages = "mysite/images/"

    Then simply call the desired image by either a unique ID or something then stick the myimages in front of it. Understand?

    RJ

×
×
  • Create New...