Web Forms :: Aspnet_wp.exe Acquires A Lock While Aborting Uploading Excel File On Server?

May 18, 2010

I have a big excel file , and i want to upload it to server.

on upload_click , i have to do a processing which takes very long time,

because i am finding latitude and longitude from the google by reading that excel file.

and i wanted that when used click on CANCEL button the process should stop.

i have created a thread on upload_click and doing all this stuff in that thread .

when user clicks on CANCEL , i am aborting that thread.

but when user again tries to upload file , i am getting the error that file is in use .

to solve this problem i have to stop aspnet_wp.exe from task manager and have to try again .

View 1 Replies


Similar Messages:

Databases :: Uploading An Excel (.xls) File To Server And Showing It To Grid View?

Apr 25, 2010

[Code]....

i have successfully showed data using puting directpath in to a textbox(e.g, filename=TextBox1.Text;). but the code above is not working. i dont know why.

View 1 Replies

VS 2010 File (Excel) Uploading And Processing

Sep 27, 2011

I come from MVC side, where these things make more sense (of course just because I know a bit about it) and my webforms are still sucky sucky.

I got a page where I want the user to upload a file (Excel).

Not too worried about the upload timing out, but after uploading this file will be processed (time & attendance data to be written to the database)

So what I'd like to happen is everything happen asynchronously with the page being updated as the file are being processed.

Also, I'm not sure.. won't I need excel on the server to have my code read the excel file?

View 4 Replies

C# - Access To The Path Denied When Uploading Excel File

Dec 2, 2010

when uploading an excel file i am receving this error.

[code]....

View 3 Replies

Uploading An Excel File ( Containing Int Values )using The Fileupload Control?

Oct 8, 2010

I am uploading an excel file ( containing int values )using the fileupload control. I need to work on one entire column in the excel sheet.I want to copy contents of the file either in an array or a table and then work on it.Can anybody suggest a better way of working on the excel since .

View 4 Replies

Configuration :: Uploading A File For Importing Data From Excel?

Aug 27, 2010

I facing a problem when I upload a file from my side while the application is running in server.

The error shows below:

'C:Excel FilesStaff Directory1.xlsx' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

View 4 Replies

C# - Best Practice For Uploading Excel Data In SQL Server Using .NET

Mar 4, 2010

I am looking for best practice for uploading excel data in Sql server 2000 database through asp.net web application. Excel data will be predefined Format with almost 42 columns and out of 42 10 fields are mandatory and rest are conditional mandatory. i.e. if data exists it should be in defined format. I also need to validate for special character, length, specified format and so on.After validating, i need to store valid data into sql server table and provide export to excel functionality for invalid data for exporting in same excel format with indicator to identity the invalid cells.

View 3 Replies

Web Forms :: Uploading The File On The Web Server

Aug 4, 2010

while uploading the file on the local host it works fine.but the same coding does not work on the webserver. is there anything to do with the foldr read and write permissions.i m using the server.map for finding the path of the browsed file.

protected void btnLogin_Click(object sender, EventArgs e)
{
try
{

string fold = "images";
string Name = FileUpload1.FileName;
sring path = Server.MapPath("~" + "/" + fold + "/" + Name);

[code]...

i hv not used any database for storing the path of the image.

View 3 Replies

Web Forms :: Uploading Audio (mp3) File To Sql Server 2005

May 6, 2010

I was able to upload 4MB size audio file in my database. The problem occurred when I tried to upload 90MB .mp3 file to MS-SQL Server 2005. only 4MB is allowed by default. I increased the default size in the web config to 195MB,and it's still not working. The following code depicts the size that I currently set in the web config.

<httpRuntime

View 5 Replies

Web Forms :: Uploading & Retrieve Video File From Sql Server

Aug 7, 2010

i am doing an task about uploading & retrive video file in asp.net. first of all tell me How Can we Upload Video files In sql server? then second one is How Can we displays that uploaded video files in my web page?

View 3 Replies

Web Forms :: Upload A File To A Remote Destination Without First Uploading It To Server

Jun 13, 2010

I have an interesting challenge. My application uses a third party's services and one of the functions is to upload video files to Amazon S3. The current solution I've implemented uses a simple form with a POST action set to a URL on Amazon's system. The
issue I have is that because the form posts to Amazon, I have no way of doing any type validations before the user clicks to upload the file i.e. checking file type, file size, etc.

However, I really do NOT want to set up my logic so that the file is first uploaded to my server then to Amazon because these are huge files and we'll end up using costly bandwidth on both ends -- our server and Amazon S3.

P.S. To be perfectly honest, I'm not that pleased with the current solution where it's a simple HTML form with a simple post to Amazon. However, because Amazon is so picky about all the hidden fields in my asp.net page, I had to strip everything off the
page -- including form runat"server" because the minute I have this, I end up with a hidden field for ViewState -- even if I completely turn off ViewState. There's always something left as a hidden field and Amazon was generating an error because of this.

Ideally, I'd love to be able to do an HttpWebRequest in code behind so that I can have the functions of a web form back and do some pre-upload work but I'm not sure how to upload the file to a remote destination without putting the file on my server first.

View 3 Replies

Ajax File Uploader: Checking File Size Before Uploading To Server?

Dec 23, 2010

With the ajax file uploader, would it be possible to check the size of the image before uploading?Currently, it uploads the file to the server and then lets me know that it's bigger than the limit size.

View 3 Replies

Web Forms :: Uploading A File To Server - Use ContentType To Filter Only Image Files

Oct 12, 2010

I am using VB to upload image files to my server but am having problems. How can I use the ContentType to filter only image files? This is my code for my upload button which does not seem to be working. I can only upload bmp files:

[Code]....

Also, how can I show the user the image they uploade

View 2 Replies

Data Controls :: Update Existing Table Data By Uploading Excel File

Jan 24, 2016

Currently I was done to insert data thru upload excel file. May I know, how to UPDATE the existing data using iploading excel file.

View 1 Replies

Looking For File Uploading In Shared Server

Jan 11, 2011

i ve deployed many applications with file uploading feature on dedicated server and never got any issue. but it is not working on shared sever :( .. i think Server.MapPath("~") is not working on shared server. as in shared sever i am unable to find those directories which must for uploading.

m using following code for creating directories

string RootLocation = Server.MapPath("~") + "\";

string siteUploads = RootLocation + "uploads" + "\";

Directory.CreateDirectory(siteUploads );

View 6 Replies

Uploading File In A Folder On Server?

Apr 16, 2010

i am working on a project in which I want user to upload files on to my website so for that i created a folder in which i'll store all those stuffs.now the thing is that it is all working fine on localhost but when i use it on server ,,it provides an error which is

Access to the path 'C:inetpubvhostsebas.co.inhttpdocsuploadsfile.exe' is denied.

i think this probably has something to do with the access permission for the folder...So could you tell me what are the permissions required to be set for this job to be done on server.

View 4 Replies

ADO.NET :: Uploading From .xls File To Microsoft Sql Server?

Oct 21, 2010

trying to upload from an .xls file to microsoft sql server.What i did was i upload the file to a folder in server and pick the record from the folder. This work on development machine but on getting to a iis server to test the application i got an error that was saying the root folder for the www root for the folder was not found.

<pre lang="msil">protected void btnUpload_Click(object sender, EventArgs e)
{
string FileName = FileUpload1.PostedFile.FileName;
string saveDir = @"";
string appPath = Request.ApplicationPath;
string savePath = appPath + saveDir + Server.HtmlEncode(FileUpload1.FileName);
String fileExtension = string.Empty;
String path = Server.MapPath("~/Uploads/");

[Code]....

View 1 Replies

C# - Silverlight 4 : Uploading File To Server?

Sep 15, 2010

Here is an easy one:I need a stable simple file uploader with a progress bar, I have found lots of fancy ones from the search. However, I need the community opinion on which ones to go with? Tutorial links would be appreciated.BOUNTY: I have a FileStream which I would like to upload to a server, below is a sample server server URL:string uploadUri;string SavedFileName = "testXRay.jpg"
uploadUri = @"http://localhost/MyApplication/Upload/Images/" + SavedFileName;I am adding a bounty in hope to get a working solution which I could use from my SL application. MyApplication is hosted in IIS.

View 3 Replies

Web Forms :: How Many Types Of File Lock Are There

Feb 24, 2010

I need to know how many ways I can lock a file? Suppose a process has opened a file and reading or writing it, by this time another process try to open it and read or write, how many ways I can impose lock level on that particual file? So, that the data remain consistant.I'm using VS 2005 and OS is Windows XP or Windows 2003 Server.

View 3 Replies

VS 2008 - Uploading Excel Data To Dataset, Then DataSet To SQL Server?

Jan 18, 2010

What I am thinking is this? Is it possible for me to upload the data from an excel file to dataset of my application first, so that the user can view the data in a gridview to review it first, before the user strike the save button, to save it in the database. So, that in case there is a problem, the gridview will high light all the data with an error. So the user can easily pull out the excel and correct the data before saving it in the database.

View 4 Replies

Uploading File - Server Responds Unrecognized?

May 19, 2010

I am trying to upload a file on server using fileupload control in asp.net 3.5.

On local machine code is working fine, but when uploaded on server, it gives

exception as :Exception Access to the path 'D:hostingcontmarch2010abcabc.comwwwattachme ntsabc.jpg' is denied.

I tried to set permission on attachments folder to (777) but when doing this server responds unrecognized chmod.

View 3 Replies

Configuration :: Uploading File Using Fileupload To Another Server?

Oct 12, 2010

I am using the fileupload control to upload an excel file to a server, but I am getting a
"Access to the path '\<server>importResponses.xls' is denied" when I try to use fileUploader.SaveAs(filepath). The filepath I use is \<server>importResponses.xls, so I am actually saving it to a share on a different server.My environment consists of a web server and a database server. I am trying to upload the excel file to a share on the database server. A stored procedure then takes that excel file and imports the data from it into a table. So the problem isn't with being unable to save a file to a share on the web server, but it's a problem with being unable to save a file to a share on the database server. It used to work, but now it doesn't and I have no idea why. What process(es) on the database server do I need grant write access for in order for the fileupload control to successfully save the excel file?Right now, I only have the Network Service account with read/write access to the share on the database server. I tried adding other accounts, such as the ASPNET and IUSR_<server name> accounts, but nothing seems to work.The web application that does the actual uploading is configured like this:

<authentication mode="Windows"/>
<identity impersonate="true"/>

Could that have anything to do with it?If you're asking why I'm trying to save an excel file on the database server instead of on the web server, this was the only way I got this to work. If anyone has a better suggestion on how to programatically import excel data into a SQL table, I am all ears.

View 2 Replies

File Upload - Uploading To A Relative Folder To Server?

Dec 27, 2010

i use to upload a photo to a server this piece of code:

uplTheFile.PostedFile.SaveAs(Path);

But the Path can't be relative (like ~\Photos\image.jpg) .

I was thinking of getting the location of the .aspx file from where i upload the image and attach \Photos\image.jpg to it, but i don't know how to get the address (location ) of my .aspx page on the server .

View 1 Replies

ADO.NET :: Insert Bulk Data Into Sql Server When Uploading File?

Dec 12, 2010

when i upload a file i need to insert the data into sql server data (file will be in comma separated with different extension .ord) in vb.net file will be stored on server in a folder

View 3 Replies

Forms Data Controls :: Aborting Item Creation In Bound Repeater

Apr 9, 2010

I have what's bound to be a stupid question, so I'll apologize for what I think should be an obvious answer my brain just can't see. My problem is very simple. I have a Repeater control bound to a SqlDataSource. The ItemTemplate in this case is one complicated beast, and rendering can take a loong time if too many records are returned; so I need to maintain tight control over how many records are brought back from the data source.

Is there not some way of either stopping the creation of subsequent RepeaterItems once a certain count has been reached, or cancelling the bind if more than a certain number of records are returned? I know I can grab the record count from the AffectedRows property in the Selected event of the DataSource, but I've encountered a brain-lock on how to stop/inhibit the binding (or RepeaterItem creation beyond x records).

I'm happy with either aborting the binding altogether if the record count is too high (displaying no records), or simply stopping it after X records are returned; at this point, I'm not picky. Either way would work, and it seems I ought to be able to readily figure out either one, but my brain has simply gone into neutral.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved