|
Please don't cross post.
---
single minded; short sighted; long gone;
|
|
|
|
|
i've been looking for a project like this. will do for a lot less give me the specs.
I am a SysAdmin, I battle my own daemons.
|
|
|
|
|
Hello
I have been trying to make a directory on a server. I can make the directory but if the directory exists it gives me an error. I have been searching the net for information on how to check if the directory exists. The only thing I could find is that I need to set FtpWebRequest.Method to "NLST" and I don't understand what that means
My code so fare:
<br />
Uri adresse = new Uri("ftp://" + "/" + sMappe);<br />
<br />
FtpWebRequest req = (FtpWebRequest)WebRequest.Create(adresse);<br />
req.Method = WebRequestMethods.Ftp.MakeDirectory;<br />
req.Credentials = new NetworkCredential("login name", "password");<br />
FtpWebResponse response = (FtpWebResponse)req.GetResponse();<br />
<br />
Console.WriteLine("Status for mkdir: {0}", response.StatusDescription);<br />
response.Close();<br />
<br />
Console.WriteLine("Tryk enter for at slutte");<br />
Console.Read();<br />
<br />
Got more code doing other things on the local computer but haven't worked with FTP before.
Hope you can help me.
Regards
Morten
|
|
|
|
|
Hi,
how to monitor the status of the service from a utility developed in c#,I came to know that we can use either System.ServiceProcess.ServiceController class or WMI.Which is more robust,and feasible way.....I have to start,Stop and pause a service ,the App.config file has settings like polling time...I am not able to modify the service during runtime if i make change to the App.config after installing the service.So is it Feasible to modify the Application.exe.config file during runtime to make the changes take effect during runtime...
|
|
|
|
|
Unless you are doing something custom your windows service will load the app.config on start. You can make changes to the app.config while the window service is running, but they will not take affect until the service is stopped and re-started. If you have some custom code that re-reads the app.config file every time, then you might be able to get that to work. Otherwise you will need to stop and restart the service.
Ben
|
|
|
|
|
hi,
The changes made in the App.config will not take effect even ater stopping and starting the service , not untill you recompile the solution....
people laugh at me because they say im different and I laugh at them because they are all the same.
|
|
|
|
|
No that is not true. When you stop the service and start it again the app.config is read again. Now if you mean literally that if you make changes to the app.config file, then yes you need to recompile. But you should be changing the programname.exe.config file. where programname is replaced with what ever you call your service. When you change that file and stop and start the service it will pick up the change. Just make sure you update the app.config in your project as well.
Ben
|
|
|
|
|
Thanks,
After the service is installed it is not going to be recompiled in any way..So why do i at all make changes to the App.config file...Please clarify..
people laugh at me because they say im different and I laugh at them because they are all the same.
|
|
|
|
|
When you install your service, you need to have at least two files. One is the exe file. The other is the exe.config file. The exe.config file is created when you compile your project from the app.config. You can update the exe.config file directly and stop and start the service and it will use the new config settings. So if you service is called MyService the exe would be MyService.exe and the config file would be MyService.exe.config.
Hope that helps.
Ben
|
|
|
|
|
Hi,
Is there a way to call xml webservice from excel?
Thanks
|
|
|
|
|
i am working with Viusal Studio C#
and i want to insert multiple record in the one column of the table in database.but when i wrote insert statement it takes only one record but i want to enter multiple records in one column.
Can u tell me the function that can insert multiple records in the single column of table in database Access?
Give me some code for this operation i am waitting.
Sitara
|
|
|
|
|
Sitara
Please don't post a new message when you have one about the same topic. Colin has already replied there, and it is good form to post a reply to his comment.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi i am using fusion flash charts in my project the way they are created is i have a basic class to create an xml string which is passed to a RenderChart function which creates the graph. The xml file can contain lots of different parameters such as height width colours etc but they are not all necessary for each chart so i am just wondering if anyone has any suggestions about how to go about correctly designing this class specifically how I will handle so many possible parameters without having to writ eso many functions for each combination
Thanks in advance
Tim
|
|
|
|
|
Create a interface of different grapsh and depending on the parameter it would have the necessary details.
|
|
|
|
|
The process for designing any such system follows one pattern:
You decide each field or collection of fields your RenderChart function must handle. RenderChart must then discover what categorical fields have been provided, and, depending on how the data needs to be rendered, you step through the process in such a way that renderable ranges are validated and no error can be produced.
Sounds simple, doesn't it? What happens is, you discover the rules you have to comply with as you refine them, until ultimately you develop a bullet proof approach. In the end, what looks like the work of a genius is actually just a product of hard, exhaustive work. Leave a hole for something to fall through, and it won't be long before someone else discovers you didn't finish your work. Getting the job *done* well and in due time is a matter of asking *yourself* the necessary pattern of questions.
1. What do I have to process?
2. What range of values shall I validate and support the processing of?
3. What order do I process the validated range so that nothing can go awry at any step?
In answering the last question, you start with an intial concept and refine it just as you would solve a mathematic equation. You find your process can break down in phase A because it needs to accommodate a value you don't provide until phase B; and so you introduce value B prior to phase A. Refining the approach in this way, ultimately you come up with a bullet proof answer.
4. A further thing you do all the while is determine a minimal footprint, balanced against efficient processing. There are tradeoffs there. Just make sure the tradeoffs you decide are purposed to be the best solution for whatever you are trying to do.
|
|
|
|
|
how to display image on report when i stored image's path in database
|
|
|
|
|
hello how to use a flex grid in c#.net
sree
|
|
|
|
|
What is a flex grid? I have never heard of it.
Ben
|
|
|
|
|
Using C# and the VS2005 IDE SP1
Whenever I run my C# projects through the IDE it always goes through the build process whether the code is current or not.
Is this normal? Can it be turned off as it is a waste of time?
Any help appreciated. Thanks in advance.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
It may appear to be going through the build process all the time, but in fact it's actually just evaluating whether it needs to build anything. Unfortunately this seems to take just as long as just building the code would have done.
You can tell the difference: if it actually builds anything, it will output the compiler command line. If not, it won't.
|
|
|
|
|
It seem that is does not just evaluate. It goes through the post and pre build steps too as my tlb's are updated. I'll investigate a little further, thanks for your reply.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
The pre build step will always run. If the pre build step changes some source files/other input to the compiler, the project will be compiled again.
For the post build step, there's an option if it should always run or only when the compiler updated the output file.
Ensure your pre build step doesn't write to any files (does not modify the "last write time" of the files) if its input didn't change.
|
|
|
|
|
Thanks for this. I have re-evaluated my pre-build activities and I have been able to move ones that would alter any files to run in post-build when the output has been changed.
Many thanks again.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
How can i insert multiple records in the databse in C#?
Sitara
|
|
|
|
|
wrote: How can i insert multiple records in the databse in C#?
Remember you can issue just about any SQL through a SqlCommand . (You didn't specify the database technology you are using so I've assumed SQL Server)
* Supply multiple INSERT statements.
* Supply an INSERT statement with a SELECT where the resultset has many rows.
|
|
|
|