|
Glad to help
|
|
|
|
|
Can anyone explain how to edit one of the text fields in a report based off the an entry submitted by a user on a form textbox.
|
|
|
|
|
|
Collin Jasnoch wrote: Anyone done any speed comparisons in getting the info to file or the Event Logs?
Never done so; logging an exception is something that happens exceptionally, not every second. The EventLog is not the right place if you're logging a lot of traffic, but it is the right place to report problems to the SysAdmin of that network.
I think that you shouldn't be checking whether it's "speedy" enough, but rather if you can easily get all the information from it that you need. The fact that one can read an EventLog remotely doesn't matter much to me, as one can do the same with a simple text file.
I are Troll
|
|
|
|
|
|
Collin Jasnoch wrote: So what would be the right place?
For a lot of traffic, I'd go for a textfile and import that into a database. Easy to zip & mail, and appending text to a file doesn't cost much cpu-time. This is ideal for logging lots of data, as you can simply dump it without much ado. It would also be the best place to hide your exceptions from the customer if you wanted to - you can encrypt the string before writing it.
The EventLog would be the ideal place for exceptions, and general diagnostic events. Things like starting a service, or registering a new license.
|
|
|
|
|
Never had reason to test it, but I'm quite confident that speed is not an issue.
I'd use a framework such as the Microsoft Enterprise Library Exception Handling Block and Logging Application Block to give you the flexibily to change where and how you store such information if an issue does arise with one method.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Lookup TracerX. Very good at logging Messages/Exceptions. You can also set the level of the logs.
|
|
|
|
|
Log4Net provides a good way of performing the logging you need. The speed has allways been more than adequate for my purposes.
The Log file can be configured in the app.config file and can be sent to single or multiple destinations (event log, database, text file etc), and what is logged is customisable.
Log4Net is also fail-safe (ie almost never throws and error that stops your code), which is good for trace and error logging. Logging is not guaranteed (due to the fail-safe nature, a failure results in no message) and is therefore no good for audit requirements, but once you have it is configured and tested, I've not seen a message missed so it is pretty reliable.
CCC solved so far: 2 (including a Hard One!)
37!?!! - Randall, Clerks
|
|
|
|
|
Hi
i need help ...
i want to make program which can dial a phone using modem connected with a telephone line..and similarly record a
conversation and also set up a voice mail..i'm a bit familiar with c sharp language so would like to do in a c sharp language..if anyone had got any idea about it then..plz help me..
Thank You
|
|
|
|
|
In our company we use TopTAPI (the dll-version) to do this maybe you should test it. TopTAPI (its not freeware)!
Alternativly take a look at the TAPI (I would use TAPI3).
At least 1 hint: Its not fun to do this for analog connectors/telephones because you need a special modem (full-duplex and some other stuff I forgot) to do this and also in most cases the connection is only a one way (both are connected but only one of them could speak).
So just use it with ISDN and above (for example VoIP, but I never tested with TAPI).
Greetings
Covean
|
|
|
|
|
Hi!Covean
Thank x for your suggestion...isn't it possible with the inbuilt modem in a computer(the one which is used to connect dial up line)..what i want is if the phone line is connected to the computer via modem then..is it possible that all the phone works i.e. dialling or receiving call...could be done with the application..this is wht all i want..
Regards
DRS2010
|
|
|
|
|
As said before, it depends on the caps of the modem. But in theory it should work.
But here some impressions of mine, I made during our "virtual portier"-project.
Some day a customer of us wanted this solution but on a analog telephone system (we only installed it on ISDN before). This project really drove me cracy. We tested about 5 modem-types. Sometimes we had a full connection, sometimes only one of us could speak and so on... Till the end of the project we never found a stable solution for this (at least we solved it with an analog<->ISDN converter)!
So it should be possible but I would not recommend it!
Edit: To your question: I don't think that you will be able or happy to do this with the build-in-modem. But checking the line status, dialing and recieving calls will be able with TAPI.
Greetings
Covean
modified on Tuesday, January 19, 2010 3:48 AM
|
|
|
|
|
Hi Covean
Thank x a lot for your idea
So dialling and receiving calls is possible with TAPI.Do you have any idea about such type of application i mean phone dialling and receing application with the use of TAPI.
Regards
|
|
|
|
|
No I do not because the TopTAPI.dll (I mentioned in my first post) were cheaper then the time I had needed to develop it on my own, so our company decided to just buy it.
Sorry that I can't help you any further.
Greetings
Covean
|
|
|
|
|
Hi,
Good
modified 3-Jul-12 4:58am.
|
|
|
|
|
1. Not everyone can see that. Since it is not yet approved.
2. People have already posted their view below the article and through votes.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Lame attempt at self promotion. Based on the votes so far I doubt anyone will even see this "article"
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Hi all,
I want to execute an executable file under particular user account in my C# application.
can any body tell me how to do the same?
Thanking You,
Sunil G.
|
|
|
|
|
you could check the "runas" command
specify the executable and particular user as arguments.
|
|
|
|
|
using Process.Start [^], it supports launching a process under a particular user;
MSDN states:
Use this overload to create a new process and its primary thread by specifying its file name, command-line arguments, user name, password, and domain. The new process then runs the specified executable file in the security context of the specified credentials (user, domain, and password).
I are Troll
|
|
|
|
|
I want to execute using current logged on user token.
|
|
|
|
|
Then you'd only need to start it, without giving credentials at all - and the process will be started under the credentials of the current (signed in) user
I are Troll
|
|
|
|
|
You have got an eMail. (I hope ).
Hope that helps you.
Greetings
Covean
|
|
|
|
|
Yeh i got ur mail.
Thank u very much.
|
|
|
|