Sometimes it happens that opening one file or serial port fails because it is used by another process.
Is there a way to get the name of the process that is using it ?
View Complete Post
I sometimes get the following error while printing crystal report to pdf:
System.Runtime.InteropServices.COMException (0x80004005): The process cannot access the file because it is being used by another process. at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext) at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext) at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options) at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType) at CommonWA.CommonFunc.GetPDFMemoryStream(DCMSReportDoc _dcmsreportdoc, Boolean& _DataExist) in E:\wwwroot\ASPWA\CommonWA\CommonCom.vb:line 382
The error not occurs frequently but sometimes it will happen, can someone tell me why the error occurs and how can I solve the problem?
Thank you very much.
I was trying your options by using "(operating system) cmdExec" to delete folders which were 15 days olders. But here i am getting error if i look into view history of sql agent job... below is my command that i gave in Job step.
EXEC xp_cmdshell 'forfiles /p "z:\backup" -d 15 /c "cmd /c if @isDir==True echo RD /Q /S @FILE&RD /Q /S @FILE"'
And the error is :
The process could not be created for step 1 of job .....(reason: The system cannot find the file specified). The Step failed.
but if i give this command in New Query Window, i am able to delete the folders successfully.
Please advice me if am wrong
Thank you for Advance.
currently we are configured execution Timeout="1200" (The default is 110 seconds) and maxRequestLength="12288" (The default is 4096 KB)
but some times users upload files above 12MB so we are getting "Maximum request length exceeded" error.
Jacescript Code are
var fso=new ActiveXObject("Scripting.FileSystemObject");
how can i check the file size before uploading process with support all the browser.
any posiblities for checking file size before server side script/object?
this is satish
I am getting exception "the process cannot access the file because it is being used by another process. asp.net",when i am uploading a image and saving to particular folder (folder name:uploaded_images).First time when i upload a image and save it to
same folder its fine,but when i upload same image with same name and saving to same folder.Its nor overriding and i am getting this exception.
Here is my code:
string UploadFileFolderPath = "E:/webserver/Sai/V3/Saibook/Uploaded_Images";
if (fileupload.PostedFile.FileName.ToString().Trim().Length > 0)
filename = Path.GetFileName(fileupload.PostedFile.FileName);
String filePath="E:/webserver/Sai/V3/Saibook/Uploaded_Images" + "/" + filename;
fileupload.PostedFile.SaveAs(UploadFileFolderPath + "/" + filename);