-
- FTPWebRequest problems when connecting to Alpha System (VMS)
by gwen_newg
- 6 Replies
- Last post
by gwen_newg
- Hi. I am currently developing an FTP application using Visual Basic .NET. I used FTPWebRequest class to connect to a remote FTP server. It works fine when I connected to a normal FTP site. But when my clients tried connecting to an FTP server in their alpha system, it cannot establish a connection. Can anyone help me with this matter I've read in some posts that .NET Framework does not currently s
-
- rows delete in dataset wasn't delete in database after update dataset
by bilalo
- 5 Replies
- Last post
by Paul Domag
- I make a program in langage c#.net , i fill the data in the dataset and i wish do delete a row in the dataset and after call the update dataset ,this rows will delete from the database .
DataSet Mydataset_child = new DataSet(); SqlDataAdapter adap_child = new SqlDataAdapter(); SqlCommandBuilder MycommBuild_child = new SqlCommandBuilder();
string strSql = "SELECT * FR
-
- lost properties in a class object returned by a web service
by Anarchy
- 2 Replies
- Last post
by Anarchy
- Following on from this thread, http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1401811&SiteID=1 where I was trying to expose a enum as a return parameter, with values from -4 to +4, and failed, I am now trying to return a class...
I have class object with 4 integer properties, some WriteOnly, some ReadOnly, one both. A method on the webservice returns this class, but the ONLY prop
-
- trouble returning string w/embedded nulls from PB to C#
by Paul Elliott
- 3 Replies
- Last post
by Paul Elliott
- Hi,
I'm now able to pass strings ( even with embedded nulls ) back & forth from
C# to a PB DLL as long as they are parameters. However I can't return a
null-embedded string as a return from the PB DLL. It comes back as an
ASCIIZ string & gets cut off at the first null. I added
[return:MarshalAs(UnmanagedType.AnsiBStr)]
which the help file says is supposed to s
-
- localized MessageBox
by Jassim Rahma
- 1 Replies
- Last post
by Oleh Svintsitskyy
- I am using the MessageBox.Show to display an arabic alert and everything is fine except the choices.. I want to change the Yes and No to arabic language.
-
- Database copy
by MML
- 6 Replies
- Last post
by MML
- Hello to all I have here a very simple problem, but up till now nobody can solve it. I am using following code to connect to database (SQL server 2005 express): String connectionString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\DATA\\Main.mdf;Integrated Security = True;User Instance = True;Connect Timeout=240"; roomsDataAdapter = new SqlDataAdapter(selectCommandRoom
-
- Serial port based device pushing data, how to know when data receiving is stopped
by maverick_majnoo
- 4 Replies
- Last post
by nobugz
- Hi,
I have a device which is based over serial ports, i have written a piece of code, in which i can send a command to this device and receive the data in response of that command, and it works fine.
Now, my problem is this device pushes data IN, at random intervals, actually it's a Radio freq. based machine, and it receives msgs from other stations with similar kind of machines, so at
-
- Iformatprovider
by Yogesh Pawar
- 7 Replies
- Last post
by Yogesh Pawar
- Everytime I want to use format provider I need to use the overload of tostring (I dont know otherwise), is there anyway to specify it by Types' attribute so that default Tostring picks up the one specified by attribute rather than current threads'
-
- C#==>SqlServer in Vista
by AlexBB
- 6 Replies
- Last post
by AlexBB
- This part of code has worked well in XP but today I found that it breaks down in Vista. I have to give a description as to what it is all about.
This C# procedure is supposed to insert records in a DB table. There is a primary key in there. The records in C# DataSet table occasionally have field values that violate the primary key constaint. Quite possible it is just one record out of a tho
-
- how can System.management serialize?
by G&#246
- 4 Replies
- Last post
by John Willemse
- want to serialize (ManagementObjectSearcher mos) to filestream.But In the Runtime i got exception Type 'System.Management.ManagementObjectCollection' in Assembly 'System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.)how system.management object is serialize sorry with my English
-
- Loading a .Net 2005 class (with reflexion) in a .Net 2003 application ?
by Cedric Girard
- 2 Replies
- Last post
by Cedric Girard
- Hello
I have a problem actually with an "old" application based on plugin system : - MyAppli.exe was made with VB.Net 2003 - my plugins interface ( iPlugin.dll ) was made with VB.Net 2003 - a group of plugins based on this interface ( Plugin01.dll , Plugin02.dll ...)
On execution, MyAppli search all DLLs in its directory and test the interface compatibility with iPlugin and load t
-
- Access registry created by 32 bit program
by wuyueduzun
- 2 Replies
- Last post
by wuyueduzun
- I have developed a program using VC.NET, packed by a 32 bit installshield setup package, for i need to support Vista32/64. The setup create a registry entry at the install process, then my program read the entry at the beginning of starting. Strange! I can't read that value writed by setup, so i search the registry, i find the registry was move to "SOFTWARE\\Wow6432Node\\", but the prog
-
- How to Change ASPNET version of the virtual directory during Installing an ASP.NET 2.0 Web Service using MSI Package
by Bijaya Kumar Pathia
- 2 Replies
- Last post
by Bijaya Kumar Pathia
- Hi All
I have written an ASP.Net2.0 web Service and I want to install it through a set up package. I installed it successfully in my system but the problem is that the ASP.NEt version of the virtual directory under which the web service is installed remains 1.1.4322 which should be 2.0.50727 to run my web service perfectly. How can I change this verion to 2.0.50727 during installation
-
- xmltextreader and digg.com rss' feeds
by cyberprashant
- 6 Replies
- Last post
by Brian Kuhn
- Hi,
I have a rss feed reader that works fine except on any of the rss feeds at digg.com: http://www.digg.com/rss/index.xml - on this feed for example the xmltextreader will crash during the do while (reader.read) loop
Sample code:
Sub Main() Const URLString As String = "http://localhost/books.xml" Dim reader As XmlTextReader = New XmlTextReader(URLString) Do While (
-
- connecting to my database in another project
by yemsot
- 1 Replies
- Last post
by Manan Thakkar
- i created a database in one project, in which i will save data into the database.
i also created another project, which i connected to the database i created in the former project. all this project does is to retrieve data frorm the database.
but all the changes i make in the previous project do not seem to reflect in the later project.
can anyone help me out on this
-
- SQLConnectionString Problem
by JO91
- 1 Replies
- Last post
by MAYUR_WAKADE TENDULKAR_23d722
- I have problem with creating my connection string.
I created a website on internet.
I created a database with MSSSQLmanager, called :"JOP"
"Data source= ; Initial Catalog=JOP ;user=me password=mypass;"
Am I supposed to write "Data Source=localhost ;"
What shall I put as Data Source
Shall I write "Data Source=(localhost);"
-
- CDECL FuntionPtr Callback & Managed Debugging Assistants
by mobigital
- 3 Replies
- Last post
by mobigital
- does anyone know if the managed debugging assistants support the Cdecl type callback delegates
my native library requires a callback function pointer. It expects the callback to be in Cdecl convention. So when I run this program under managed debugging assistants WinDbg faults all over the place inside the callback, with the STACK_CORRUPTION.
for example:
EXCEPTION_RECORD: ffffffff -- (.e
-
- How does SerialPort handle DataReceived?
by mshvw
- 14 Replies
- Last post
by Ted69
- Hello, I connect my DataReceivedHandler to my SerialPort by mySerialPort.DataReceived += myDataReceivedHandler; Each time when mySerialPort receives a character then function myDataReceivedHandler will be executed. What happens if myDataReceivedHandler is busy executing and mySerialPort receives another character Will mySerialPort somehow interrupt the execution of myDataReceivedHandler and r
-
- best way to save passwords in SQL server?
by Jassim Rahma
- 10 Replies
- Last post
by Jassim Rahma
- I want to know what's the best way to save passwords in SQL server using C#
-
- Trouble with DLL referencing
by julein
- 7 Replies
- Last post
by Suprotim Agarwal
- Hi people, I need to implement a wlanapi (wlanapi.dll) wrapper in C# (VS2005). I'm using WinXP SP2 and I downloaded the update containing the library and installed it. But when I try to add a reference to the library in my project, I got this error: A reference to 'C:\WINDOWS\SYSTEM32\wlanapi.dll' could not be added. Please make sure, that the file is accessible, and that it is a valid assembly or
-
- Extracting XML Data
by AdrianMills1973
- 9 Replies
- Last post
by AdrianMills1973
- The following is an extract of a large XML file for which I want to get the data (ID and the Description) and populate a Tree View.
I can extract the first Part but when I try and retrieve the <children> Tag underneath I get all of the children tags and not just the first one. Any help would be appreciated
< xml version = " 1.0 " encoding = " UTF-8 "
-
- XmlWriter Vs BufferStream
by Betaw
- 3 Replies
- Last post
by Martin Xie - MSFT
- Hi
when XmlSerializer.Serialize is invloved which is faster XMlWriter or BufferStream
I tried both and I did not see a difference.
-
- Socket programming .Net framework 2 or .Net framework 3?
by codetale
- 2 Replies
- Last post
by codetale
- i am new to socket programming. i was confusing with few things:: i found that Windows Vista are using Windows Communication Foundation ("Indigo") is that WCG are what present in .Net framework 3 if is that so, will the socket in framework 2 will still working in framework 3 should i use framework 3 or 2 (i am using Visual C# Express) thankyou very much.
-
- PrincipalPermission Class
by HM1984
- 11 Replies
- Last post
by HM1984
- I have wrote this code but when I run it, this message has been shown: "request for principal permission failed" why what's wrong with this code pc5 is the name of the computer. private void Form1_Load(object sender, EventArgs e) { try { AdministratorsOnlyMethod(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
-
- Displays Excel worksheet in DataGridView
by YoungEngineer
- 9 Replies
- Last post
by Paul P Clement IV
- How can I bind an excel worksheet data to a datagridview Im trying to load an excel sheet with numbers to my form, im trying to get as much of a look and feel as excel as possible.