I want to upload file. but when I use<input type="file" runat="server"> & with one button.
when I click on button then my page cannot be found.
such type of error occured. means when I add that input type file tag that error occured.
1. Check whether you are trying to upload a document with size more than 4 MB. Refer this link.
2. Also check the size of the ViewState of your page. If the ViewState has a larger size, it might cause this error to occur. Check this thread.