I would like to know the best way of handling exception and logging .. Please advise thanks in advance..
arun_pk
Posts
-
Exception Handling and Logging in windows application -
Downloading file (with out extension) from Ftp throwing errorThis is my code
reqFTP = FtpWebRequest.Create(new Uri("ftp:\\1.1.1\myfile")) as FtpWebRequest;
if (reqFTP != null) { reqFTP.Proxy = null; reqFTP.Method = WebRequestMethods.Ftp.DownloadFile; reqFTP.Credentials = new NetworkCredential("username", "pwd"); reqFTP.UseBinary = true; using (FtpWebResponse response = reqFTP.GetResponse() as FtpWebResponse)
myfile is the file with no extension when i debug i get an error in response = reqFTP.GetResponse() as below The remote server returned an error: (550) File unavailable (e.g., file not found, no access). pls help to solve this thanks in advance
-
Simple Unzip of zip file containing multiple files and folders [modified]thanks a lot ravi its working
-
Simple Unzip of zip file containing multiple files and folders [modified]thanks i will try hiren .. will let you know
-
Simple Unzip of zip file containing multiple files and folders [modified]this will help me to unzip multiple folders??
-
Simple Unzip of zip file containing multiple files and folders [modified]please advice me a simlple unzip method in C# other than using Shell object... note : zip file contains files and multiple folders
modified on Wednesday, January 5, 2011 1:57 AM
-
Error while Extracting Files in zip folderYes i checkd.. normal settings
-
Error while Extracting Files in zip folderI had checked through code, explorer by making files visible and all those stuff.. :( and one more thing in this specific computer.i tried something manually.. like i right clicked the zip file and selected explore. i got an option to copy the file But when i paste it paste is not happening.
-
Error while Extracting Files in zip folderThanks for the reply phiscally i checked the folder it was wmpty and then i inserted below code in copy..
if (File.Exists(String.Format(@"{0}\{1}",unzipFolderName,zipFileitem.Name)))
{
File.Delete(String.Format(@"{0}\{1}",unzipFolderName, zipFileitem.Name));
}
shellUnZipFile.CopyHere(zipFileitem, 0); // still it throwd error -
Error while Extracting Files in zip folderi am using below code to extract the files inside the zip folder. getting an error while using copyHere method .. after deleteing the folder i m trying to create a new one . and then copying from the zip file but still it gives an error "File exist" Please provide a solution thanks in advance
if (Directory.Exists(unzipFilePath))
{
Directory.Delete(unzipFilePath, true);
Directory.CreateDirectory(unzipFilePath);
}
else
{
Directory.CreateDirectory(unzipFilePath);
}
Shell objShell = new Shell();
Folder shellZipFile = objShell.NameSpace(zipFilePath);
Folder shellUnZipFile = objShell.NameSpace(uzipFilePath);
foreach (FolderItem zipFileitem in shellZipFile.Items())
{
shellUnZipFile.CopyHere(zipFileitem, 0);//File exist error is thrown from shell
}This error is happening in a particular system
-
Get Time C#(read only memory) [modified]Hello Rob will this workout if i dont run the system regularly? i want to implement a trial version kinda thing for thirty days :( were i dont have internet :( :(
-
Get Time C#(read only memory) [modified]thanks for reply i hope there should be some way other than using external clock.. coz applications like photoshop and all runs only 30 days .. even if we change the system time
-
Get Time C#(read only memory) [modified]thanks a lot for the reply i am sorry i for got to update that my application don't have an internet connection
-
Get Time C#(read only memory) [modified]How can i get the actual time in c# which will not get change even after we change system clock *** application /pc were no internet connection
modified on Thursday, December 30, 2010 7:17 AM
-
PropertyInfo.GetValue()------------------ Reflectioni am trying to use PropertyInfo.GetValue() method to get the property value of some class.. its throuwing some target not found exception... pls advise me the correct way..
-
UI AutomationHow can i Automate a usercontrol using UIAutomation class please advice thnks in advance
-
List View Dragging win32thanks for the response i would like to explain my req clearly wat i want exactly is to drag the list view only not the form form should be in fixed size ... but list view should be resizable in drag event
-
List View Dragging win32Please help me to find solution for drag and increase the size of list view control in win32
-
How do i Test Automate Datagrid ViewUsing White in .net how shall i get the DatagridView object in White thanks in advance
-
window controls are not getting resized while dragging the windowI have done my code to resize the controls of window when we drag the window..its working fine in normal scenario... if we un check the option show window contents while dragging in performance settings(MyComputer->properties->advance->performance->Settings) of windows. my window controls are not getting resized any method to over come this....thanks in advance