-
- ftp function
by sy_mbm
- 5 Replies
- Last post
by Mariya Atanasova - MSFT
- hi
i write code that use socket and streams to connect to ftp server and write user name and password put it dosen't work .
this is my code
static void Main( string [] args)
{
Socket sock = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp );
IPEndPoint ip = new IPEndPoint(Dns.GetHostByName("ftp.elarsa.com").AddressList[0],21);
sock.
-
- Max length of characters that can be passes in CDATA
by Mohammed Taher
- 1 Replies
- Last post
by Martin Honnen
- I am trying to use CDATA to pass the string with some special characters. The max size I could set was 4000 and the SSIS package fails if the size of the CDATA exceeds 256 chars.
Not able to find what is wrong here.
Any inputs will be highly appreciated.
-
- C#/C++ DLLImport not closing after use (Handle is invalid)
by Zach84
- 1 Replies
- Last post
by TaylorMichaelL
- Hello, I built a C# DLL and wrapped it using VC++ 6.0. I now use it in my ASP.NET web application. It seems that sometimes after using my website, the DLL either doesn't close or something. The first requests are fine, but once we get The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE)) the application pool in IIS must be recycled. My assumption is the DLL is opening but never c
-
- random IDictionary value
by Ori'
- 3 Replies
- Last post
by nielsvanvliet
- Hello,
I'm looking for a way to get a random value (or key, it doesn't matter) from a dictionary
Example:
IDictionary dict = new Dictionary<string, string>();
dict.Add("Key1", "Value1");
dict.Add("Key2", "Value2");
dict.Add("Key3", "Value2");
I want the random to get Value1, Value2 or Value3. Is
-
- Is Xml Serilaization is slower?
by Betaw
- 10 Replies
- Last post
by Betaw
- Hi
Is Xml Serilaization is slower than binary serialization
Is Default non-custom xml serialization is slower than custom xml serialization
and why
thanks
-
- How to Solve Specified key is not a valid size for this algorithm.
by Trophus
- 2 Replies
- Last post
by Trophus
- Hello All: I am using a Rijndael Symmetic algorithim with cryptostream to encrypt some text data. The problem I am having is the follwing exception "Specified key is not a valid size for this algorithm." public static byte[] SimpleEncryptor(byte[] MyData, byte[] MyKey, Byte[] MyIV) { Rijndael rjnAlgo = Rijndeal.Create(); rjnAlgo.Key = MyKey; //Throws Specified key is not a valid size
-
- Interop: Creating a managed object from COM and passing it back to .NET
by aaubry
- 3 Replies
- Last post
by aaubry
- I have a problem with COM interop when creating managed objects as COM components and passing them back to .NET. I will try to explain the best I can.I have the following C# code that creates a COM object and calls a method on it: Type type = Type.GetTypeFromProgID("InteropTest.B"); object obj = Activator.CreateInstance(type); IC cObj = (IC)obj; IB bObj = cObj.GetB(); Debu
-
- Serialize/Deserialize Sending Object With System.Net.Sockets
by Kensino
- 7 Replies
- Last post
by Koute
- I am following an article and having a problem sending an object over the Internet with a socket. I created a simple network command class, which is serializable. The class should be send over a network. The article I am using only sends messages over a socket, I need to modify the code to send a copy of my object over the socket.
Here is my modified code. I don't know how much is relevant
-
- Problems about using the password recovery function in ASP.NET
by gaze
- 3 Replies
- Last post
by gaze
- Server Error in '/WebSite6' Application.
-
- Accessing a "real" tableinside a UDF
by TheCPUWizard-2007
- 6 Replies
- Last post
by Sergei Almazov
- I am having problems opening a table from within my CLR UDF. Cananyone provide the proper configuration so that I can query existing tables
-
- foreach element in a collection question
by AlexBB
- 7 Replies
- Last post
by georgepolevoy
- I use foreach statement to iterate through collections of DataRow[] in tables and change the content routinely. I just read that it should not be done. So far I have run into some problems a couple of times perhaps out of a million or more "uses" but I want to hear some expert opinion what the ultimate penulty might be.
Also, is it possible to iterate via a DataRow[] colelction ba
-
- "Child list for field 'Customer' cannot be created".
by Beleebe
- 6 Replies
- Last post
by kavallo
- I converted my VS2003 app to VS2005 Pro. Everything is fine except that one or two datasets are causing problems. If I run the form in question, the following code is highlighted -
((System.ComponentModel.ISupportInitialize)(this.dsMySalesInvoice)).EndInit();
and the message is "Child list for field Customer cannot be created". Supprisingly, the Customer datatable does not ev
-
- HttpWebRequest.KeepAlive Property Problem
by stoogots
- 2 Replies
- Last post
by stoogots
- Hi,
I am using VS2003 SP1 (Framework 1.1) on XP SP2 laptop, and when I set the HttpWebRequest.KeepAlive property equal to true, it isn't adding a "Connection: Keep-Alive" header. I have to use http protocol version 1.1 in my web app, so I can't use the 1.0 version (which does create the Connection header by default). Is that a bug with it, or am I just missing something Documenta
-
- How to fetch the innerText of a XML string
by Niranjan_007
- 3 Replies
- Last post
by Martin Honnen
- Hi all i am starter in this profeesional world.I have a very lengthy XML file with many parent and child nodes.Each nodes have both attributes and innertext.Can i use XPath and fetch the inner text of each node in c#.Right now i am able to fetch only the attributes of the nodes thro XPath.
-
- using SmtpClient.SendAsync Method in class library - how???
by Hoodwinked
- 1 Replies
- Last post
by Adam Wayne
- I put together a Class Library called ¡°Email¡± to send out emails from my website. Now that it is all working I wanted to try and see if I could send out emails asynchronously. I found that there is this great method (SmtpClient.SendAsync Method) to send out emails asynchronously. When I add everything to my ¡°SendEmail¡± class and test it, I received the following error message:
Failure send
-
- Web Service problem
by Hemant Bhiwajee
- 4 Replies
- Last post
by OmegaMan
- Hello there
I have created a small web service that reads a string and writes same to a file somewhere on the hard disk. When I test the web service by entering a string in the text field in the browser, the web service works without any problem. Bot when I call the web service using a console application, I get the following error:
System.Net.WebException: The underlying connection was
-
- a big project
by Speak
- 10 Replies
- Last post
by Martin Platt
- ok can anyone help me do this, i have the folowing items, a username listbox and a password listbox and a proxy listbox. what im tring to do: use a webrequest and weresponse to go to a url with a login form, and post the first username with the first password and then login (basically a auto login program) and then if it will see the word "current" say login complete in my infobox(list b
-
- Cannot install .net framework 3.0 on Windows XP SP2 x64
by Adrian.net
- 4 Replies
- Last post
by Nick Doty - MSFT
- Hello everyone
I've been struggling for few hours already trying to install the .net framework 3.0
I've tried running the computer in Diagnostics mode, un-install IIS and run setup, un-install IIS and reinstall IIS followed by running setup, etc. and I've come to a dead end.
Here is the error log
[07/16/07,12:48:15] Windows Communication Foundation [x64]: [2] Error: Ins
-
- how to develop a small chat system using C # in asp.net 2.0 ~~urgent help ~~
by DuminOnline
- 1 Replies
- Last post
by Indian Ocean
- Hai
how to develop a small chat system using C # in asp.net 2.0
-
- XSLT compile error when using XslCompiledTransform.Load indirectly called from unmanaged code.
by Rich Steck
- 5 Replies
- Last post
by -Anton Lapounov
- I have a component I wrote in C#. Among other things it performs a XSLT transform on XML data it collects. When I test this feature using another C# project that uses the component it works just fine. However when I export the component as a COM component and try to use this feature from a unmanaged application it fails on the XslCompiledTransform.Load command with an XSLT compile error.
-
- .NET Remoting on IIS - Vista
by nsebastian
- 1 Replies
- Last post
by Jesus Ruiz
- Hello, Does anybody successfully run .NET Remoting on IIS running on Vista I have tried to run the same setup from XP on Vista, but here I'm getting errors Regards Nicu
-
- advantage of creating static methods
by Matt_
- 5 Replies
- Last post
by Peter Ritchie
- Hello,
Is there an advantage of declaring a method as static, even if it is a private method that is called only from within the instanced class
For example:
public class MyClass { public void Method1() { ///Do something Method2(); } private static void Method2() { ///Do something } }
I'm asking this because I've installed R# on my machine, and it throws a warning on sev
-
- Thread Safety different for different hash tables / dictionaries.
by Jim Michels
- 13 Replies
- Last post
by Jim Michels
- From the online MSDN documentation for Hash Table (Hash Table)
Thread Safety
Hashtable is thread safe for use by multiple reader threads and a single writing thread. It is thread safe for multi-thread use when only one of the threads perform write (update) operations, which allows for lock-free reads provided that the writers are serialized to the Hashtable . To support multiple
-
- Support for transactions with OLEDB/JET and strongly-typed datatables/datasets
by ergo_largo
- 0 Replies
- Last post
by ergo_largo
- Hello! Could anybody provide advice regarding the transactional limitations of using OLEDB with an Access database, and specifically in my case, using a data access layer of strongly-typed datatables, generated using Visual Studio 2005's DataSet Designer. I imagine the potential is quite limited, but I wondered if there were yet any developments that might allow some basic sort of transactions to
-
- Closing the serial port
by Hooper
- 10 Replies
- Last post
by Carsten Kanstrup
- Hi,
I have an app that is using the SerialPort class and I send and recieve data via the
DataRecieved event. Everything works fine as long as I let it run to completion.
I have found though that if I try to stop the serial communication while it is still running, it will not.
I use,
m_serialPort.Close()
m_serialPort being the SerialPort class.
This is called from my mai