Page For File Upload Stops Processing In Middle Of Log Statement?
Aug 2, 2010
We have a very simple ASP.Net page for uploading a file to our webserver. The page has no controls - a client uses it to automatically send us a file each night.
On occasion, the file seems to not get to us, but the client reports that they have sent it.
We added some logging statements to the page, and discovered something quite odd. The page ceases to execute right in the middle of a log statement. No exceptions, just up and dies.
Here is the code-behind:
[code]....
I assume if there was a error in the transmission of the file that either an exception would be thrown from the reader.ReadToEnd() line. And if not an exception, I would expect the page processing to continue but that I may only receive part of the file (in which case it should log something).
The logging statement is only accessing a string variable, and it's inside a try-catch. NLog is the logging component we use, and we access that through the facade provided by the Simple Logging Facade project on Codeplex. So, we trust the logging component to be more or less bulletproof - we certainly don't see anything in our usage of it here that should be causing problems.
Why on earth could this page just up and stop processing like this?
The fact that we get a half-finished logging statement seems to point towards an error being swallowed in the logging system - but that just seems so unlikely - and we have NLog's internal logging on and it is not reporting any problems.
View 1 Replies
Similar Messages:
Dec 15, 2010
When I'm trying to download a 50 MB file from a database (it is not an issue with a smaller file size), it stops in the middle sometimes and resumes again after a long time.
[Code].....
View 2 Replies
Jan 11, 2011
I'm trying to use a java servlet in a 3rd party tool's web interface (CA service desk) to invoke it's download file functionality using a webclient in vb.net. The trouble is the text stream from response is markup and not the acutual text file stream.
It's like the page is redirecting to another page which actually presents the file for downloading. I have no idea what the redirected page URL is.
Is there a way I can process this redirected page in order to get at the download using a system.net.webclient?
View 1 Replies
Jan 13, 2010
I am using the async file upload control to upload to a image file. I want the user to upload only jpg files. And for that I am checking the uploadedfile content type in server side, after the upload complets. I wanna check this, before upload starts. There is one javascript method
function startUpload(sender, args){}
but how to access the content type of the file selected by user.
View 5 Replies
Feb 11, 2010
i have a page that uploads a file, shows what files are availeble in a gridview and allows the user to donwload or delete the files. When i upload a file that file dont shows up in the gridview i need to reload the page to see the file. Theres any command in C# to do that? like when i click to save the file it saves d file and it does a page reload.
View 4 Replies
May 24, 2010
I have installed all on my server 2008. When i got to /localhost/sitecore/Website/sitecore. i get following error. what should i need to do Description: An error occurred during the processing of a configuration file required to service this request. review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error:
Line 2575: <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Line 2576: </httpHandlers>
Line 2577: <membership defaultProvider="sitecore"> -- this line shows errr
Line 2578: <providers>
Line 2579: <clear />
View 1 Replies
Feb 8, 2011
how to upload and save files to oracle database, and view file using C# .net and can upload one or more files in one webform.
View 1 Replies
Aug 6, 2010
I want to upload files to the web servers from the client machines.
Can i upload a file on a network share folder using file upload control?
I would like to create a share folder on a file server sitting next to the web server. If i upload the file from the network share folder instead of uploading it from the client machine does it make any difference?
Will the file be stored in a temporary location before copying to the final destination? Where will be the file stored in this case of uploading it from share folder?
View 1 Replies
Jul 7, 2010
I have an ASP.net page with dynamic content that are inside Controls, some of them custom controls and some of them regular ASP.net controls.
Is there a way to get those controls inside a Marquee? maybe an HTML Marquee? These controls are mostly built in this sense:
sometext
sometext
sometext
etc.
View 3 Replies
Jan 5, 2011
I am using the Ajax UpdateProgress control. Though it is working just as I expected it to work, I want it to appear at the center of the page. How do I do that
<asp:UpdateProgress runat="server"
id="PageUpdateProgress" DisplayAfter=0
DynamicLayout=true>
<ProgressTemplate>
<div>
<img src="../Images/load.gif" />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
View 1 Replies
Jul 26, 2010
I have a update progress control linked with an updatepanel in my ajax application.
Currently the UpdateProgess control is placed right after a menu of my web app, there are some chart and grid on the page, I want to show the UpdateProgess control in the middle of the page, if possible, add some effect like gray out the background, is it possible? how do I do this?
View 2 Replies
Nov 19, 2010
My web form is pretty simple. It has to have three lines of text/ASP.NET elements. The Master page has a header and a footer. I need to center those three lines in the middle of the page vertically and horizontally, especially if the bottom changes. How do I do this with CSS?
View 2 Replies
Dec 10, 2010
I am using the File Uploader to upload files. It is working fine. But I receive the page can not be displayed when I try to upload a file>4Mb in size.
View 1 Replies
Apr 5, 2010
I'm doing a multiple file upload script that add flies to a listbox and afterward uplods them to folder.
Every thing goes fine, even under the size and a extension restrictions, but when I try to add an .exe file with 30MB I would expect the script to write a warning saying the file is over the size limit and as an extension that cannot be uploaded, instead it shows a Page Unavailable
I'd tried to troubleshoot with try/catch on the init event but it doesn´t reach that far, it seem's that the compilation stops with no explanation...or is there?
View 4 Replies
Jan 18, 2010
How to upload a file in asp.net without reloading a page
View 6 Replies
Mar 24, 2010
I have an asp file upload control on my website.By using this i could get the filename and pass to the word object and open the word doc in visual studios.But outside of the server,that is on users local machine,it says file could not be found.How to get the file upload filename regardless of the server.
I tried saving to temp and retreiving,but i don't want users have the file on their machines or it throws error if the same is used and i may have some 100's of docs.
View 1 Replies
Mar 22, 2010
Following on from my previous question...
The following code creates log files on a web server:
private void LogMessage(Message msg)
{
using (StreamWriter sw = File.AppendText(_logDirectory + DateTime.Now.ToString("yyyyMMddHH") + ".txt"))
{
sw.WriteLine(msg.ToString());
}
}
The log files are linked to from an admin page on the web site:
foreach (FileInfo file in logDir.GetFiles())
{
Response.Write("<a href='http:// .... /Logs/" + file.Name + "'>" + file.Name + "</a>");
}
I'm getting the problem that after someone looks at one of the log files from the link, that log file stops being written to.
View 1 Replies
Feb 19, 2010
I have a file upload control i my page and have specified a max size of 1G in web.config file:
<location
path="DMS/Supplier/Submission.aspx">
<system.web>
[code]...
View 3 Replies
Jan 24, 2011
I am having a strange issue associated with AsyncFileUpload control. after the upload, I am updating the page by calling__doPostBack function from ClientUploadComplete event handler. it works fine first time, but next time I try to upload the file, it refreshes the page first before uploading, then does the upload and refreshes the page again. not sure why refresh page is being called twice once before the upload and once after the upload. I have a simplified version of this code which has this bug.
[Code]....
View 2 Replies
Oct 29, 2010
My file upload control is in page for editing records so i want to retrieve the path stored in database and assign it file upload control. i have written select query to get data but i do not know how to display the stored file path in file upload control.
View 1 Replies
May 10, 2010
I have a aspx page A which I use to display file upload button then display information about uploaded file.
Now I want to have a small window popup/overlay page A for the user to browse the file along with other Upload or Cancel buttons. Once they click on Upload or cancel, the information should write back to page A.
View 8 Replies
Mar 27, 2010
I want to be able to upload file from my .aspx page to my web server so that it can be preocessed into a different format.e.g. user will upload a doc and in few seconds it would see a pdf version of the doc on the web page.I have web service available which can convert doc to pdf.now1- how do i automate upload + conversion process.2- how do i handle big files here.3- how not to make user wait for all this thing to happen.
View 1 Replies
Apr 1, 2012
i have problem in uploading 2gb video file using file upload control in asp.net, i have limit the maximum file size in web config file then also it shows error any remedy for that...
View 1 Replies
May 14, 2012
I want to upload a file without using the file upload control in asp.net.
View 1 Replies
Nov 5, 2010
I have read about the file upload control in asp.net and tried it and works great. But I want to know if I can use it for another purpose. I have a video capture control that can be used for webcam apps or anything else. It has a method called HTTPUpload where it will upload an image file to the server using the HTTP upload protocol. My question is can i use the .net FileUpload control for this? And if so, how can I pass the image file straight to the .aspx page without having to submit a button? Would the file be as a query string variable?
Arguments:
WebServer = web server address
WebPage = name of upload web page
Fields = list of 'fieldname' and 'fieldvalue' values delimited with '|'
Files = list of 'fieldname' and 'file path' values delimited with '|'
Returns TRUE if successful, or FALSE otherwise.
Example
vcx.HTTPUpload "[URL] , "upload.asp",
"field1|value1|field2|value2" ,
"file1|c:foldermypic.jpg|file2|c:foldermyvideo.avi"
View 3 Replies