|
Does anyone know of a free (preferebly c#) auto-scheduler available?
I have a bunch of 2.0 console apps that need to be executed at different times of each day and I figured I'd look around for an auto-scheduler that's already available before I go and create one from scratch (why reinvent the wheel ?)
Thanks.
-Goalie35
|
|
|
|
|
Couldn't you just use the Scheduled Tasks utility that is in Windows? Seems to work well enough for me.
Regards,
Matt
It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?
|
|
|
|
|
Hi All,
I have developed an ASP.NET application to send emails. I have followed the coding steps to create the application. But however, the mail is not getting delivered to the destination ID.
Can anyone help me in giving details about all the steps to be done before running the application. A sample application would be more helpful.
Thanks in advance,
Murali
|
|
|
|
|
What you have coded for the SMTP?
And what error it shows?
Did the Norton blocking you in sending the mails?
Regards,
Satips.
|
|
|
|
|
Hi,
Thanks for the reply.
If i set the SMTP Server name in the code as "smtp.gmail.com"(example), then i get the 'Could not access(CDO.Message) object' error message.
However, if i set it as 'localhost' then the email is redirected to the 'Queue' folder under the /Inetpub/mailroot.
Do i need to do any more settings?
Thanks in advance,
Murali
|
|
|
|
|
(1)Specify a valid mail server for the SmtpMail.SmtpServer property. If that property is not set, at least set it to 127.0.0.1. For example:
SmtpMail.SmtpServer = "127.0.0.1"
(2)If you are using "localhost" or "127.0.0.1" as the SmtpMail.SmtpServer, you may not have permissions to relay through the IIS SMTP Service. To allow access, open up the IIS Admin MMC. Locate the SMTP Virtual Server, and right-click, then select Properties. On the Access tab, click the Relay button. In the Relay Restrictions dialog, grant your IP address (127.0.0.1) to the Computers listbox. Close down all dialogs, and restart the SMTP Service.
(3)If you are using "localhost" or "127.0.0.1" as the SmtpMail.SmtpServer, make sure Anonymous access is allowd. To allow access, open up the IIS Admin MMC. Locate the SMTP Virtual Server, and right-click, then select Properties. On the Access tab, click the Authentication button. Be sure "Anonymous Access" is the only checkbox checked. Close down all dialogs, and restart the SMTP Service.
(4)The email address does not have a valid TO address. After iterating through the InnerExceptions, you may find this error message actually has to do with relaying. Try sending a test email to an email address that exists on the server specified by SmtpMail.SmtpServer. If you can send an email to that server, then it is a relay issue. Talk to your mail server administrator about letting your code relay through the mail server.
(5)Use a real FROM address that exists on the SmtpMail.SmtpServer. Do not use something like "asdf@asdf.com", or some other bogus address as your MailMessage.FromProperty. More advanced mail servers will catch this, and will deny relaying.
Regards,
Satips.
|
|
|
|
|
Hi,
I followed your steps. I send a sample mail to an ID existing in the local SMTP Server and the delivery was a SUCCESS.
However, if i try to send the mail to a different ID say hello@gmail.com, then i get a delivery fail message in the 'Drop' folder of the 'mailroot' folder.
Do i need to enable some options in the destination SMTP Server to recieve mails from my machine?
Thanks in advance,
Murali
|
|
|
|
|
Does anyone knows how to make a column become a checkedbox in runtime. Here is my code from the dataset:
-----------------------------------------------------------------------------
sql = @"SELECT lastName,firstName,MiddleName,LoginName,Passwd,ReadOnly,Updates,Deletes,Inserts,Administrator FROM Users ";
SqlDataAdapter da = new SqlDataAdapter(sql, conString);
da.Fill(ds, "Users");
//dataGridView1.DataBindings.Clear();
dataGridView1.DataSource = ds.Tables["Users"];
-----------------------------------------------------------------------------
I want the following column become checkedbox.
ReadOnly,Updates,Deletes,Inserts and Administrator
|
|
|
|
|
I have made a COM DLL and facing this error
Error:Retrieving the COM class factory for component with CLSID {} failed due to the following error: 8007000e
can anybody solve this problem
Thanx
|
|
|
|
|
The error code implies that class was not registered. If you have a proxy/stub for the above CLSID then you need to register it on the machine.
Regards,
Satips.
|
|
|
|
|
I have registered it on that machine but that machine is a 64 bit envirment.
will it make any difference?
wat will be the solution for that?
Thanx
|
|
|
|
|
Yes. But I dont know the solutoin exactly. Google it
|
|
|
|
|
hi!
i am building an application which inserts 100000 or more records in XML file and then retrieve those records when required in a datagridview control.
The retrieval of records is very slow, it takes 1-2 minutes in populating datagridview. First i thought it is because of XML, but today i came to know that it takes more than one minute for just creating 100000 rows of datagridview. I checked it by inserting 100000 empty rows in datagridview.
I tried to create rows in a separate thread but it gave exception that row cannot be inserted from a thread other than the one which created datagridview. i tried the technique available on msdn, which makes "Thread-Safe Calls to Windows Forms Controls" but it did'nt worked (may be i was not able to handle it)....
Now can any one please tell me how to get required result...? how can i add 100000 or more rows in datagridview control within 10 seconds...? is there any alternative way to do this?
Thanks in advance...
Regards,
Affan Ahmad Toor
|
|
|
|
|
Maybe 100,000 rows in a datagridview isn't what you really want. The user can only see a few of these at a time anyway, right? Just a thought.
Regards,
Matt
It isn't enough to do well in life.
One must do good when and where one can.
Otherwise, what's the point?
|
|
|
|
|
You don't. You create a DataTable, or some other DataSet that holds all of your data, then bind the DataGridView to this data source.
I can fill a DataTable with 100,000 row of randomly generated data and show it in a DataGridView in less than 4 seconds.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hi!
Thanks for reply, i just solved my problem with your mentioned method. I am not able to populate 100000 records in 4 seconds, as you mentioned, it is taking approximately 10 seconds, but stil it is better than 1 minute and fulfils my requirment..
Thanks again...
Regards,
Affan Ahmad Toor
|
|
|
|
|
Affan Toor wrote: I am not able to populate 100000 records in 4 seconds, as you mentioned, it is taking approximately 10 seconds,
Noone ever said XML was fast. Storing 100000 records in an XML file is not a good idea. XML was meant to be a transport, not a database. It only has the look and feel of a database table.
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Hello all, we are writing a server that comunicates with clients using .Net remoting but we have a couple of problems:
in order to keep separated the implementation of the remotable object we create that object on the server. That object exposes a GetConnection object that returns a new object for each request, this way we can have a dedicate object for each client. Is this a correct way of achieving this?
In addition, we need a way to listen the connection status of each object (that is, if a client losts the connection, we can close the thred).
Can someone help me? Thank you all!
Alessandro
|
|
|
|
|
What was the logic behind the decision for the Release build of a C# program to be totally decompilable even down to the variable names? It seems an incredible design decision to me.
|
|
|
|
|
It's not really an incredible decision. How would you expect reflection to work? How about JIT compilation? Remember, that .NET generates IL code and you see why it works the way it does.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
That's all well and good but why include the original variable names? Why not produce a compact form with minimal identifiers? MS are anti-GPL because you have to give out your source code, and here they are promoting a language which effectively distributes your source code on a plate!
|
|
|
|
|
Original variable names are still required for reflection to work, Additionally, all (non-private/internal) entity names are required for the way the CLR finds external references. The one thing that could be "removed" are scope-local variables, but that won#t help a lot, andobfuscatorsa can do this.
I fully understand your concern, I need to keep this in mind permanently when deciding which technology for which product. But that's a tradeoff that in most cases makes sense.
There are two main ways to deal with code to protect:
* use an obfuscator
* move critical code to an unmanaged binary
* Reflection.Emit
All are not "complete": obfuscators seem a delicate balance between making the code unreadable and breaking it. External binaries, beisdes the old "find that DLL" problem, would still isolate the critical part and make reverse engineering the easier. Reflection.Emit could be used as addiitonal "obfuscation of ideas", but doesn't protect the code from being copypasted.
IIRC upcoming Authenticode features are supposed to provide a new mechanism that gives you control over who sees what. (I am not sure though, how well it is received or protects, as it sounds to much like DRM)
But keep in mind that every binary is reverse engineerable, it's just a quesiton of skill and patience.
|
|
|
|
|
There's a number of reasons for this. At the core, the fact is that most people are targetting markets that do not contain people likely to decompile code. Having your code compile on the target machine opens the door to things like a version of the framework that optimises for new processors, such as dual cores or 64 bit. It also means that in theory the framework can target multiple architectures.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: It also means that in theory the framework can target multiple architectures.
What do you mean in theory? What about Mono? Doesn't that run on most Linux systems which run on most processors?
|
|
|
|
|
Isn't Mono not allowed to impliment the Windows.Forms classes ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|