|
Hi
when am sending mails from my application,its sending and receving only one domain eg: info@ab.com.
if am trying to another emailid (eg:info@xyz.com),its not working ...how can i solve this
thanx
|
|
|
|
|
shijuse wrote: ,its not working
Please clarify what this means; show some of your code and explain exactly what happens.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
There is no step for checking the sender of an email in the email protocol. You can just forge the headers as you like, and send an email as president@whitehouse.gov. But many email providers try to fight spam and add some checking mechanisms. I guess that that happened with your emails.
|
|
|
|
|
How are you sending the emails? through your mail server? or by using system.net.mail .
Without know how you are sending the emails its impossible to let you know why its not doing what you would like it to do.
Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch
|
|
|
|
|
Hi friends. Is it possible to converting dll file to cs files.
Is there any mechanisms related to this?
|
|
|
|
|
|
just google "Reflector" or "Decompiler .net"
there r tools from telerik named just compiler ---free
but best of the best is from redgate's Reflector---trial commerical
|
|
|
|
|
|
I have used ILSpy recently for this. Free and can save source as a project.
|
|
|
|
|
If you don't own the DLL in the first place, make sure it's not against the licence agreement to decompile it – it usually is. And, obviously, the solutions provided only work if it's a .Net assembly, but .exe and .dll are also used for native code libraries.
|
|
|
|
|
Hi
I have .Net 2003 version of windows forms applications.
Since these applications(exe files) are being accessed by all the users from server(using shortcuts) we used to see few performance issues. So I have been asked to develop my own tool/utility to do the load testing/performance testing.
I need your help to develop the tool, like tips/any ideas on how to develop the tools and etc. If we have already any free tools can be downloaded and can help me will be great.
|
|
|
|
|
There are a lot of existing tools for performance testing. Download a trial version and see which product help you the most to find your performance problems and then buy that tool.
You can always uses StopWatch or some other performances counters or timer for simple cases but for any serious profiling I would recommand buying a tool.
In some case, it seems that some tools allows you to uses the results of the trial version to improve your application. You have to read the license carefully.
I would hope that Visual Studio Ultimate would not be as much expensive as there performance tools work well.
Philippe Mori
|
|
|
|
|
Im looking for a special linq query, that splits a given Enumeration of int (or whatever) as follows:
Source: {1}{1}{0}{0}{1}{1}{1}{0}{1}{1}{0}
Target: {{1}{1}} {{0}{0}} {{1}{1}{1}} {{0}} {{1}{1}} {{0}}
There are many examples in the net how to do it with a static number of elements e.g. 2:
Result {{1}{1}} {{0}{0}} {{1}{1}} {{1}{0}} {{1}{1}} {{0}}
This approach is done by an extension methode, so I implemented mine on that base like this:
public static IEnumerable<IEnumerable<T>> Split<T>(this IEnumerable<T> source)
{
var remainingSequence = source;
var lastElement = remainingSequence.Take(1).First();
while (remainingSequence.Count() > 0)
{
Console.WriteLine("Remaining {0}", remainingSequence.Count());
Console.WriteLine("last Element is {0}", lastElement);
yield return remainingSequence.TakeWhile(t => t.Equals(lastElement));
remainingSequence = remainingSequence.SkipWhile(t => t.Equals(lastElement));
Console.WriteLine("New Remaining {0}", remainingSequence.Count());
lastElement = remainingSequence.Take(1).FirstOrDefault();
Console.WriteLine("After assign {0}", remainingSequence.Count());
}
}
When I call this from a main() with
foreach (var X in valuelist.Split())
{
Console.WriteLine("--> " + X.Count());
Console.ReadKey();
}
I get the following output (endless):
Linq extension:
1st iteration
Remaining 14
last Element is 1
--> 2 until here, everything looks fine
New Remaining 12
After assign 14 here is the strange thing, it switches back to my initial remainingSequence when assigning the new 'lastElement'
2nd iteration
Remaining 14
last Element is 0
--> 0
New Remaining 14
After assign 12
endless circle due to resetting the
Remaining 12
last Element is 1
--> 0
New Remaining 12
After assign 14
Remaining 14
last Element is 1
--> 0
I do not get it, why the program behaves in that way.
Anyone who can guide me the right direction?
Thanks in advance!
|
|
|
|
|
Message Removed
modified 27-Oct-11 16:57pm.
|
|
|
|
|
Ups, sorry, my fault
|
|
|
|
|
However, the damages is done. You started here and should continue here, reposting is frowned upon. You can't delete a post once you have received replies.
No comment
|
|
|
|
|
Indeed. But I came up with a solution that night. Sometimes you don't see the wood for the trees. Here is the solution - pimped a bit by using a predicate to make this extension work for splitting custom class enumerations on a defined member.
public static IEnumerable<IEnumerable<T>> Split<T>(this IEnumerable<T> source, Func<T,double> predicate)
{
if (source == null)
{
throw new ArgumentNullException("source");
}
var remainingSequence = source;
while (remainingSequence.Count() > 0)
{
var currentElement = predicate.Invoke(remainingSequence.FirstOrDefault());
yield return remainingSequence.TakeWhile(t => predicate.Invoke(t).Equals(currentElement));
remainingSequence = remainingSequence.SkipWhile(t => predicate.Invoke(t).Equals(currentElement));
}
}
Called by
valueList.Split(x => x.Name)
it returns the correct results.
So thanks anyway!
|
|
|
|
|
We have a need to provide some functionality in the form of a LDAP Listener within our services product. I do not know much about this area, so I am looking for ideas
Our objectives are to:
1) Listen for LDAP Queries from a third party
2) Determine what the query is
We do not have direct access to Active Directory, but instead must make calls to a web service that does the LDAP query to AD on our behalf, hence the need to determine what the query is
3) Carry out the query (to the web service) and provide an LDAP Response to the third party
We would like to do this in code (VB.Net/C#)
|
|
|
|
|
I am trying to distribute a small application I wrote with C# and SQLCE.
I created a little virtual machine with Windows XP on it and I started to snapshot the install.
Upfront it asked for XP SP2, therefore I upgraded my VM to XP SP2.
From there it required more than 20 clicks to complete the installation and even then the application won't start!
Web page with a set of Snapshots[^]
The actual Application Publish Page[^]
I am aiming at non-technical users.
I am losing faith in the ClickOnce ability to make the install easy and fail-safe.
What would you use to distribute .Net + SQLCE ?
|
|
|
|
|
Pascal Ganaye wrote: I am losing faith in the ClickOnce ability to make the install easy and fail-safe.
I wouldn't lay the blame on ClickOnce. You are attempting to install an application on a very outdated platform, Windows XP SP1 was released nine years ago. How many updates and patches have been issued by Microsoft in the last nine years?
No comment
|
|
|
|
|
What is the best way to handle OutOfMemoryException and do you have any chance of recovery within your program or are you just doomed?
EDIT:
I have found the root of the problem, my application was running in 32bit mode and it max'ed out at 1.8gb ram usage.
I switched to 64bit on .net 4 and the OS seems to take care of everything, I'm currently using 7.8gb on a 8gb server.
Its the man, not the machine - Chuck Yeager
If at first you don't succeed... get a better publicist
If the final destination is death, then we should enjoy every second of the journey.
modified 25-Oct-11 6:48am.
|
|
|
|
|
|
Some remarks:
1.
IIRC your app can survive an OutOfMemoryException (as opposed to e.g. a StackOverflowException ), assuming it either doesn't really need the new (big) object and/or it can free some memory explicitly (e.g. by flushing a cache).
2.
I trust you know about WeakReference , which is a good way to organize a cache.
3.
FWIW: Some GDI methods throw OutOfMemoryException rather than signaling the actual problem; Image.FromFile() is the typical example, it flags The file does not have a valid image format as well as GDI+ does not support the pixel format of the file in that silly way.
4.
And then there is the MemoryFailPoint class (someone got that as part of some reply recently, it might have been you); this class might harm performance a bit though (just my guess).
|
|
|
|
|
Chances are you're never going to recover from an OutOfMemory expection. Think about it, if you really were out of memory, how would there be enough memory to create an instance of the OutOfMemory exception object??
There are a bunch of different ways of generating an OutOfMemory exception that have nothing to do with running out of memory, go figure... Just about all of which you can't recover from because you're already written your code improperly generating such a condition. Besides, how are you going to know what you did wrong to generate the exception??
|
|
|
|
|
Dave Kreskowiak wrote: Think about it, if you really were out of memory, how would there be enough memory to create an instance of the OutOfMemory exception object??
I'd expect a decent OS to reserve some memory and to give that specific warning before all memory is consumed, otherwise there would never be such a message (due to string-allocation).
Dave Kreskowiak wrote: Besides, how are you going to know what you did wrong to generate the exception??
We don't, but we handle the exception like any other; there's multiple ways a write can fail, yet it's hard to have the application "know" what it did wrong. Usually I display a message and let the user handle it. Most of the users recognize a "write failed", and check the file-attributes. Or the write-protection on the medium. Or their access-rights. Or whether the file is open.
That'd be my course of action in this particular case; the user might terminate some other app, like World of Warcraft, to free up valuable system-resources. I'd guess we both would display a message and write a note in the eventlog, as that's almost a default for the unhandled exceptions-handler
Bastard Programmer from Hell
|
|
|
|