Browse discussions in Windows Installer Xml Group
Click here to read .Net and WiX articles
Dalun Software
What do you need today?
Sales: sales@dalun.com
Technical Support: techsupport@dalun.com
ASP Power Widgets

Q: How to config a CGI program on IIS6 and Win2K3?
Without proper configuration, you may either get a "File not found" or "Access denied" error. Following is the steps for setting up a CGI program:
Q: Why I can't upload large files on Win2K3?
IIS6.0 prevents the upload of files more than +200Kb by default.
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".
This change does not require stopping IIS, but to make the Metabase.xml file write-able, you need to 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".
New: You can use Microsoft Metabase Explorer to change the value of AspMaxRequestEntityAllowed. Please check out Debugging Managed Code Tips.
Q: Why I get "ASPPW error '800a0035', File not found" when I upload files bigger than +200Kb?
Same as above.
Q: How to install and run the attached Samples?
Download the ZIP file, unzip it to a local folder, then run "setup.bat". It will automatically install the components and samples. A shortcut will be placed on your desktop.
Q: Is ASP Power Widget compatible with NT4?
Yes. While it was designed for Microsoft Windows 2000 and 2003 Advanced Server, it works on NT4 platform if you have installed SP6, IE6, MSXML3 first.
Q: A question about the EUUL License
I have developed a web application with your COM components. Can I deploy or sell unlimited copies with an EUUL license?
Yes! As long as an EUUL offering is available for that component. Your registration and support for our products are highly appreciated.
Q: Why I get this error when I register the Fupload.dll V1.xxx COM component?
LoadLibrary("fupload.dll") failed
GetLastError returns 0x00000485.
This error means: one of the library files needed to run this application cannot be found. Fupload.dll V1.xxx requires ADO and VB6 Virtual Machine. Download ADO and the latest Service Pack.
Q: I am getting this error when I try to upload a file(CGI)?
HTTP Error 404
404 Not Found.
The Web server cannot find the file or script you asked for. Please check the URL to ensure that the path is correct.
Please contact the server's administrator if this problem persists.
I placed the fileupload.exe and fileupload.ini under my c:\inetpub\wwwroot\cgi-bin. Can you tell me what is wrong?
Please always put fileuploaded.asp along with fileupload.asp and don't change the filename of fileuploaded.asp. Please also review fileupload.asp and fileupload.ini and make some necessary changes according to your own settings.
Q: I am using filepload.exe and get a CGI Error, why?
Well, you have a few ways to check it:
(1) Fileupload.asp will call /cgi-bin/fileupload.exe when you try to upload files. Please check the alias for /cgi-bin. Or you can modify the POST action /cgi-bin/fileupload.exe specified in file fileupload.asp according to your own settings.
(2) You can directly run filepload.exe from command line to check the output.
e:\inetpub\wwwroot\cgi-bin\fileupload.exe > a.htm
e:\inetpub\wwwroot\cgi-bin\start a.htm
You are supposed to see a copyright message. If you haven't installed VB6 Virtual Machine, you will get an error message. VB6 Virtual Machine can be downloaded from our website.
(3) You can directly run fileupload.exe from your browser: http://my_svr/cgi-bin/fileupload.exe. Same as above, you should get a copyright message.(4) Check from MMC if the directory where fileupload.exe resides has the "Execute" permission.
(5) Check if MSDAC has been installed if you are using the BLOB feature.
Q: How to limit a user's disk quota for file uploading?
Just open fileupload.asp(CGI) and change the value of Response.Cookies("UserDiskQuota").
Fileupload.asp(CGI):
Response.Cookies("UserDiskQuota") = "2000000" 'Change it!!!.
Response.Cookies("UserDiskQuota").Path = "/"
For COM component, you can set the property similarly:
Set oUpload = Server.CreateObject("ASPPW.Upload")
oUpload.UserDiskQuota = 2 * 1024 * 1024
Q: How Do I control the file types for uploading?
Well, this can be done by adding in a javascript validation code in fileupload.asp before the submission action. But you can achieve this easily by modifying the parameter of FileTypesAllowed in the file fileupload.ini (CGI version).
Fileupload.ini:
FileTypesAllowed=*.gif,*.jpg,*.jpeg 'Allow graphics files
Or
FileTypesAllowed=*.* 'Allow all file types
For COM uploading component:
oUpload.FileExtensionList "txt", "gif" ,"jpg"
Or
oUpload.FileExtensionList "*" 'Allow all file types
Q: How to get the full path of uploaded files?
Normally you don't have to let the users know where the server stores the uploaded files. This is a kind of protection to your system. You can get the full path: for example,
COM DLL Version:
Response.write Server.Mappath("/") & "\Upload\" & oFiles(1).filename
Response.write Server.Mappath("/") & "\Upload\" & oUpload.UploadedFileName
CGI EXE Version:
Response.write Response.Cookies("FileUploadToWhere") & Request.QueryString("fn" & i)
Q: Can I overwrite an uploaded file with the same name?
Yes, it will overwrite the old one.
Q: Do I need a special version to have the database BLOB uploading function?
No, you don't need to use two versions. This is same for the COM version.