« More on FileSystemWatcher | Main | Web Service Series Part 1 – Creating a Simple Web Service with .Net »

Saturday, March 27, 2004

Comments

Toby

When a file is uploaded to an FTP server directory that is being monitored the code portion below is ignored. the event fires as soon as the file is placed in the ftp window. I need to wait for the file to finsh uploading before i perform any action on it.

Thanks

Toby.


{
//don't do anything till the file has finished copying to the source server
try
{
if (File.Exists(e.FullPath))
break;
}
catch(IOException ix)
{
//ignore the exception, continue trying to open file
}
}

Jens Lewald

Hi,

can you post or send me an example config.xml file. i do not understand the logic and i didn´t get the programm running :). i have made some tests with c# 2005 Beta

kamikaze

Hi,

can you post or send me an example config.xml file. i do not understand the logic and i didn´t get the programm running :)

Thank you very much

christian louboutin

I have just finished the article.It is the first time for me to read the whole post carefully,I always just look through the article,and forget quickly.But I had save your articl,it is more than useful to me.

air jordans

Writing an exact man,i admire you.

Chanel Mens Watches

Maybe you are right, but I am wondering about it.

Kazuki

Looks good just a couple of cmtoenms:* You might want to use an enum for your levels.* Is there a reason you're loading the log level from the config file every time append is called? Seems like this could get expensive if there are tons of logging calls. Same with opening/closing the StreamWriter; why not keep it around?* If you do decide to keep the StreamWriter around, you probably need to put a lock{} around the calls to it it's not guaranteed to be threadsafe.* Instead of dt.ToString( yyyy ) + dt.ToString( MM ) + dt.ToString( dd ), how about dt.ToString( yyyyMMdd )?* It might be cool to be able to add your own log listeners (like log4j's appenders). That way you could log to multiple sinks at once (database, event log, etc.). I've previously tackled this with .NET events; I declare a static event whose EventArgs include the message's priority/level, text, and date/time, and anyone who cares can just register for that event.* I sympathize with you but I think most C# developers would appreciate it if your append method began with a capital A * What's Ignition Labs? -joe

Alesinloye

Hi,I have a custom made decvie which has ARM Linux on it, the decvie also has a usb host controller onit, so decvie can act as host, from this decvie i want to talk to a application running on a blackberry through USB port, since RIM doesn't provide drivers for Linux, i though of using Barry, but i am confused on how to use barry libraries on ARM linux.It will be great help if you can guide me on where to start and how to use the barry to interact with blackberry.

Yanal

wir sind ihr partner in sehacn computer und internet. wir entwickeln fe3bcr sie individuelle software nur auf sie zugeschnitten. wir machen ihr webdesign und optimieren ihre webseite, damit sie eine gute positionierung bei suchmaschinen bekommen.

flash game sites

Writing an exact man,i admire you.
+1

Inding

Hi, David The filter tab is aillvabae for our Pro, Enterprise and Dedicated customers. To get to it, head to Reports. Create whatever form of report you choose (a Summary Report, for example), then click on the report name from the list of reports. The Filter tab should appear on the left of the report content.Thanks! on Wed, Jul 20 11 at 10:23 am

Julie

Hi Kent,Thanks for replying. I will not be able to add meyslf to that group. However, I asked the BizTalk Admin to run the same code from his desktop. It failed with the same error :Exception Details: System.Runtime.InteropServices.COMException (0xC0C025CA): Instance of the WMI class is not found.BizTalk Server cannot access SQL server. This could be due to one of the following reasons:1. Access permissions have been denied to the current user. Either log on as a user that has been granted permissions to SQL and try again, or grant the current user permission to access SQL Server.2. The SQL Server does not exist or an invalid database name has been specified. Check the name entered for the SQL Server and database to make sure they are correct as provided during SQL Server installation.3. The SQL Server exists, but is not currently running. Use the Windows Service Control Manager or SQL Enterprise Manager to start SQL Server, and try again.4. A SQL database file with the same name as the specified database already exists in the Microsoft SQL Server data folder.Internal error from OLEDB provider: "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'." at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Management.ManagementObject.Initialize(Boolean getObject) at System.Management.ManagementObject.get_ClassPath() at System.Management.ManagementObject.GetMethodParameters(String methodName, ManagementBaseObject& inParameters, IWbemClassObjectFreeThreaded& inParametersClass, IWbemClassObjectFreeThreaded& outParametersClass) at System.Management.ManagementObject.InvokeMethod(String methodName, Object[] args)So, the issue maybe somewhere else. Any other ideas?Thanks.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)