There are articles posted regarding the abovementioned subject. I just received a request to increase the file upload size limit in which made me recalls back the previous encounter where IIS have a default file size upload limit configuration prefix. Those changes are required in order to allow bigger size files to be able to transfer via the web application.
By default, ASP.NET only permits files that are 4,096 kilobytes (KB) (or 4 MB) or less to be uploaded to the Web server. To upload larger files, you must change the maxRequestLength parameter of the section in the Web.config file. If you want to change this setting for all of the computer and not just the specific ASP.NET application, you must modify the Machine.config file.
Once amended, it is advisable to reboot the system to allow the new settings take place.
P/S: There is another source claimed that following settings change is required as well:
Modify the value in the AspMaxRequestEntityAllowed property in the IIS metabase, set the maximum number of bytes that are permitted in the entity body of an ASP request. To do this, follow these steps:
1. At a command prompt, type the following command, and then press ENTER:
cd drive:\inetpub\adminscripts
Note In this command to change folders, drive is a placeholder for the hard disk where IIS is installed.
2. At a command prompt, type the following command, and then press ENTER:
cscript adsutil.vbs set w3svc/ASPMaxRequestEntityAllowed size
Note In this command, size is a placeholder for the largest file size upload that you want to allow. The maximum value is 1,073,741,824 bytes. Set this value to the lowest possible value that allows for the functionality that you want.
3. At a command prompt, type the following command, and then press ENTER:
iisreset
Written by admin on June 19th, 2009 with no comments.
Read more articles on Knowledge Base and Personal and Programming and Web.
Was doing some web application on ASP.NET which involves the web session. There was this particular machine which did not get its’ session refreshed and searching through the internet landed with alienated results.
Playing with the client PC IE configuration was somehow fruitful when changing the “Check for newer versions of stored pages” options to Automatically from Never, fixed the problem.
It was rather unexpected or ironically that this setting was changed. Luck must be with us that this problem could be rectified on the day before the presentation take place.
Written by admin on May 27th, 2009 with no comments.
Read more articles on Knowledge Base and Programming and Web.
I was searching for the exact command to send sms through GPRS rather than normal GSM and I found one article but forgotten where it was from. I tried it but I’m not sure if it works. I use Nokia 6151 with USB data cable connected to the PC. There is a “G” symbols appear on top of the mobile screen but there’s no different in speed of sending sms when I compare it.
I later found out that the transmission bandwidth for GPRS is much bigger than the normal GSM link. It should be faster if the sms is sent through the GPRS link and I suspect that the steps I did was not correct or it might be my telco doesn’t support the feature. Anyway, for those of you who might want to try it, I have the method copied down and below are the excerpt;
First of all, you need a modem that supports GPRS. You also need a provider that supports GPRS (not all providers support GRPS!)
To send an SMS through GPRS, add the following to your modem initialization string:
AT+CGATT=1;AT+CGSMS=0
The first command enables GPRS (disabled by default); the second command specifies to send SMS over GPRS instead of GSM.
You can now send SMS messages over GSM. However, if the provider does NOT support GPRS, you will receive the following error:
+CMS ERROR: 47
or +CMS ERROR: 69
You can switch it back using the following command:
AT+CGATT=0;AT+CGSMS=1
Written by admin on September 3rd, 2007 with no comments.
Read more articles on Personal and Programming.