|
Vipul Mehta wrote: Is this a network issue?
It may be. Is the From address in the same domain as the SMTP server? A lot of installations set the SMTP server to refuse relaying foreign addresses, that is the server will not transport any email that didn't originate in its own domain.
For instance, if I send an email from user@mydomain.com using the server smtp.yourdomain.com, if relaying is disabled on the server, my email will be rejected. This is to protect SMTP servers from being used to send spam, and is usually a good practice for most organizations.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
OK I got a chance to talk to our network team & there was some blocking done from their side & they will make appropriate settings to nake this working.
Thakns very much for all your prompt replies
Regards,
Vipul Mehta
|
|
|
|
|
Some of you well-versed in .net will be able to laugh at me shortly.
I'm trying to get a handle on the why of .net. I understand the concept of the assemblies, CLR, etc. allows developers to use their favorite language and run on any platform supporting the CLR.
But, somewhere along the way, I picked up that one of the nice things about .net was that it merged the desktop to the web. So, I could use a control on the desktop and in a web app. Now things really get insane - I seem to recall reading that if I write a desktop app in .net, I can deploy it to the web? This seems nonsensical.
So, can anyone point me at the bigger development picture for .net? perhaps there is a document or info that addresses the development approach when using .net?
yes, I know I'm babbling....
Charlie Gilley
Will program for food...
<italic>Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin
|
|
|
|
|
charlieg wrote: So, I could use a control on the desktop and in a web app
Not entirely true. You CAN write a control that works on both, but there are manny, many cases where this is just not possible because of the differing UI models desktop apps and web apps use.
charlieg wrote: Now things really get insane - I seem to recall reading that if I write a desktop app in .net, I can deploy it to the web?
It is non-sensical. You can deploy a desktop app USING the web. You can NOT run any desktop app your write AS a web application. If that was true, there wouldn't be a use for ASP.NET.
The closest you get to this is an application that has business and data layers in common and shared between a Windows Forms (Desktop) app and a Web Forms (ASP.NET) app. These technologies are mearly User Interface layers to n-teir applications that can share Business and Data layer code between them.
You may want to read up on "Smart Client" applications to see how .NET makes this easier.
|
|
|
|
|
charlieg wrote: I'm trying to get a handle on the why of .net. I understand the concept of the assemblies, CLR, etc. allows developers to use their favorite language and run on any platform supporting the CLR.
Yes. Develop in the language you want. Basiclly, the languages use a common library and data types so that objects created in one language can be used in another. Compiled versions getting written in MSIL.
charlieg wrote: Now things really get insane - I seem to recall reading that if I write a desktop app in .net, I can deploy it to the web? This seems nonsensical.
You might be getting confused with ClickOnce. ClickOnce allows .Net WinForm apps to be distributed easily over a network or web *very* easily (might be where you are getting the deployed to the web part). Depending on how the developer sets up clickOnce, the users may be forced to download the new version prior to running the app or simply notified.
Generally, ClickOnce 'setups' are apps that are simply X-copied vs apps which require customs scripts or actions during install (hence need a more powerful installer).
charlieg wrote:
So, can anyone point me at the bigger development picture for .net? perhaps there is a document or info that addresses the development approach when using .net?
You'll need to get a book or two and start digging in - simply to much material to cover.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Charlie. The other answers are good answers, but I'm going to throw one more piece of confusion into the mix. There's a form of WPF that runs in a browser called an XBAP, and it is possible to host a WPF control in Silverlight. See here[^] for an example of a desktop/web control.
|
|
|
|
|
I've been fighting this one for a couple of days. I have 2 nics, and 1 computer, the 2 nics are connected to each other (same or separate subnets).
In my C# tool I am essentially trying to send packets from one interface to the other. Seems pretty basic... The issue that I am having is the internal route tables seem to be routing, instead of allowing me to force what I need out the interface. I am using .NET sockets, and thought BINDing to the specific interface and then using the DONTROUTE socket option would do what I need. Should this work? The other option is likely to use raw sockets (spoof), but apparently winXP SP2 has canned that possibility.
|
|
|
|
|
What errors are you getting? Is any data getting through? Did you remember to use a crossover cable between the cards?
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
I have a .Net 2.0 C# Windows Service that reads messages from a message queue (xml), transforms them using XslCompiledTransform (does some other work using XmlTextReader and MemoryStreams) and then finally inserts data into a sql server database (In a distributed COM+ transaction).
The problem is that sometimes the service crashes with the .NET Runtime 2.0 Error as source and EventId 1000.
Faulting application application.exe, version 4.2.0.0, stamp 48a93225, faulting module kernel32.dll, version 5.2.3790.4062, stamp 462643a7, debug? 0, fault address 0x0000000000027d8d.
(The machine is a has a multi-core CPU)
My initial thought was that the service tried to read or write to a stream while the system was moving data between the ram and the swap. But after some more testing, the problem occurs even with ~750-1000mb free ram)
Any ideas on how to locate and fix this problem?
|
|
|
|
|
when i try to open remote web site in vs2005 from file-->open web site at write path like
http://pt.tvtc.gov.sa the message comming
The Web server does not appear to have FrontPage Server Extensions installed
but the site can open in ftp.
please how can i solve that problem?
Ala Qunaibi
|
|
|
|
|
Install the FrontPage Server Extensions on the website? It might just work
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hello;
I have created ActiveXcomponent in c# which is used to downloads the file from internet multithrededly I am using background worker to accomplish this task. I am using javascript to call this dll . Everything works fine for some time but after that internet explorer crashes and give the error message
EventType: clr20r3 P1:iexplore.exe P2 :8.0.6001.18241 P3:48ae8fee P4:mscorlib P5:2.0.0.0 P6:471ebc5b P7:3404 P8:21c P9:system.io.ioexception
I dont know from where this error is coming (I am using .NET 2.0)
Note:When I call the same method from above dll using windows form I didnt get any exception..
I will be very glad if you guide me
Thanks in advance
Regards
Mahesh Dubey
|
|
|
|
|
I do not believe it is possible to write an ActiveXComponent in C# becuase C# is natively .NET and ActiveX is not. That in itself could be causing the problem.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Could not load file or assembly 'Microsoft.Vbe.Interop, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies
I am getting this error when i run my application. Please provide the rectification for it.
|
|
|
|
|
When you deployed your application to the machine in question, did you deploy ALL the .DLL's in the bin\Release folder??
This may seem like a stupid question, but is Word installed on the machine?? Is it the same, or later, version of Word you have on your development machine?
|
|
|
|
|
Yes, I took the references of all dlls. And Microsoft word is also installed in the system.
|
|
|
|
|
Is the same version of Word installed? Different versions have different IDs.
|
|
|
|
|
Better yet, is Word installed on the machine?
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
I have a .net application that works with a sql server 2000 database. Both the program and the database must be on the client machine . So I need to run the sql server setup on the client machine. What I want is not to let the user access the database by enterprise manager or query analyzer. How can I do it ?
|
|
|
|
|
Define the login (or use existing) for your program (either windows or SQL Server authenticated) and disable other logins. If you use SQL Server authenticated logins, set their passwords complex enough.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
The IndexOf(Of Integer)() seems to be a bit sluggish. It should be possible for the operation to run quite quickly, but performing IndexOf() on a 10,000 item array seems to take about 44us (measured over 1000 repeats); a simple version written in C, loaded as a DLL, takes about 20us. Searching for an integer within an array would seem like a common enough operation there should be some built-in function to do it quickly. Is there any way to do a fast search without needing to have a DLL separate from the EXE?
|
|
|
|
|
Hi,
I am inclined to doubt your measurements a bit; they seem to indicate an elapsed time of
a few tens of milliseconds, which is quite possible to measure in the wrong way (see e.g.
my timers article).
I would suggest you time a ten times bigger job, and then repeat it say 5 times and watch
the numbers. Also make sure the start conditions are the same, i.e. array loaded or not loaded
in memory before starting the timing, code JIT-compiled, etc.
I trust Array.IndexOf() to be in the same league as a simple C implementation.
|
|
|
|
|
Luc Pattyn wrote: I would suggest you time a ten times bigger job, and then repeat it say 5 times and watch
the numbers.
I expanded the repetition count a hundredfold. I had been running the tests repeatedly before; I wouldn't expect any JIT code to be purged between reps. The difference is no longer quite as great, but it's still pretty significant. Repeating 100,000 times the same search of 10,000 elements takes about 4.5 seconds with IndexOf, versus 3 seconds for the DLL.
Probably better to use a different algorithm than worry about search time, since even a 33% performance improvement probably won't be enough (though if I could get a 33% improvement just by changing an 'IndexOf' to something else, I wouldn't turn it down). I wish I knew of better ways to search for things so I could avoid reinventing the wheel.
My intention was to create a replacement for Dictionary which would add methods to purge items during an enumeration, and to perform a shallow clone. The implementation holds an array of hash values; it works well for small dictionaries, but gets a little boggy as things get larger. The majority of data sets will probably be ten items or less, but some may reach as high as 10,000. It seems that even the simple integer search becomes problematical for the larger data sets.
The dictionary is actually intended as part of a hierarchical collection class which needs to support intersection, difference, and union operations. I don't know if you're aware of any such thing already existing. My present implementation isn't horrible, but it gets a little bogged down sometimes. Something faster would be nice.
|
|
|
|
|
I don't know whether they will help with your particular problem but two collection libraries that you could investigate are PowerCollections[^] and C5[^]. The former is easier to use and better documented but the latter is more powerful. I've only used the former in anger and only sparingly. PowerCollections is less signifiacnt in the .NET 3.5 world though.
Kevin
|
|
|
|
|
Kevin McFarlane wrote: I don't know whether they will help with your particular problem but two collection libraries that you could investigate are PowerCollections[^] and C5[^].
I'll take a look at those. Right now I'm coding in VB.net; it seems from a quick glance that those libraries are in C#. How would one integrate the C# libraries into a VB.net executable using either VS2005 or VBexpress2005?
BTW, on a related note: right now I'm using both VBexpress2005 and VS2005 so that I can have different editor colors and taskbar icons for my VS projects from my VBE projects; this makes it easier to make sure I don't go editing files in the wrong project. Is there any way to set things like taskbar icon or editor colors on a per-project basis? I'm thinking I might be better off just using VS2005 for everything.
PS--I find it curious that the VisualBasic.Collection is in many ways superior to the other collection types. Its performance seems to be generally comparable to Dictionary, but it allows access by index and deletion during enumeration. Though it lacks some features that would be essential for emulating a Dictionary (e.g. enumeration of key-value pairs) and it has some other annoying weirdnesses (e.g. indices starting at 1 rather than zero, reversed arguments on the .Add method, etc.) it seems like the underlying data structure is pretty good. I wonder why Microsoft never implemented any class which shared the features, but not the limitations?
|
|
|
|