Uploading more than 2mb file in asp – AspMaxRequestEntityAllowed

Uploading Large files under IIS6.0 For IIS6.0 users, the AspMaxRequestEntityAllowed property specifies the maximum number of bytes allowed in the entity body of an ASP request. If a Content-Length header is present and specifies an amount of data greater than the value of AspMaxRequestEntityAllowed, IIS returns a 403 error response. This property is related in function to MaxRequestEntityAllowed, but is specific to ASP request. Whereas you might set the MaxRequestEntityAllowed property to 1 MB at the general World Wide Web Publishing Service (WWW Service) level, you may choose to set AspMaxRequestEntityAllowed to a lower value, if you know that your specific ASP applications handle a smaller amount of data. Open your MetaBase.XML which is located in c:\Windows\System32\Inetsrv find the line “AspMaxRequestEntityAllowed” and change it to “1073741824”. Editing Metabase.xml Before editing Metabase.xml, you need to make this file editable through inetmgr. go to the IIS control panel, right click the server, select properties, and check off the box that says “allow changes to MetaBase configuration while IIS is running”. Now open the file c:\Windows\System32\Inetsrv\Metabase.xml in Notepad and find AspMaxRequestEntityAllowed=”204800″ REPLACE WITH AspMaxRequestEntityAllowed=”4096000″ Doing this will allow you to upload upto 4000 KB. .

» Read more

Script to edit folder permission

Dim strHomeFolder, strHome, strUser Dim intRunError, objShell, objFSO    strHomeFolder = “C:\test”    Set objShell = CreateObject(“Wscript.Shell”) Set objFSO = CreateObject(“Scripting.FileSystemObject”) If objFSO.FolderExists(strHomeFolder) Then  intRunError = objShell.Run(“%COMSPEC% /c Echo Y| cacls ” _  & strHomeFolder & ” /e /c /g everyone:F “, 2, True)    If intRunError 0 Then   Wscript.Echo “Error assigning permissions for user ” _   & strUser & ” to home folder ” & strHomeFolder  End If End If .

» Read more

Error: ‘80040222’ The pickup directory path is required and was not specified

Error: ‘80040222’ The pickup directory path is required and was not specified when send mail using CDO in asp     Solution Error: CDO.Message.1 error ‘80040222’ The pickup directory path is required and was not specified     Change the “sendusing” CDOSYS setting inside the code.   Change from: (“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 1   Change to: (“http://schemas.microsoft.com/cdo/configuration/sendusing”) = 2 .

» Read more

Reparing USB Flash Disk

This will resolve most of the USB Flash disk Problems like Incorrect Size / Bad Sector Marking / Unable to Format / Write Protect error     Step 1 :   Download the software : Software ChipGenius (2.64)   Note the VID and PID Numbers.       Step 2:   Go to this Website : http://www.flashboot.ru/index.php?name=iflash And search for the matching VID & PID   Download the firmware and follow the instructions.     Step 3 : Format the Flash Disk       ******* Worked Fine for Me *******             .

» Read more

Suppressing Division By Zero error in ASP

ASP’s ability to trap for errors is pretty weak compared to other languages. However, you can trap for errors, suppress errors, and stop suppressing errors. When an error is found, you can also handle it. Suppressing Errors To start trapping errors, add the following line: On Error Resume Next This will suppress all errors for the duration of the script. For example, normally the following code would cause the death of your code with a division by error message: Dim x x = 1/0 However, you can suppress the error as follows: On Error Resume Next Dim x x = 1/0 The above code will cause NO error at all.   .

» Read more
1 28 29 30 31 32 33