-
- Exception: "The underlying connection was closed: The connection was closed unexpectedly." (sometimes)
by .NET Developer
- 14 Replies
- Last post
by SachinChavan.in
- I have a windows app connecting to a webservice. In some situation(s) (haven't narrowed it down enough), I get the following exception:
The underlying connection was closed: The connection was closed unexpectedly.
When this exception is thrown, it is calling a method of a web reference.
Now the situation that we experience this is on a laptop in the field that is using a WWAN connection i
-
- Please Help! - Populating a dropdownlist with data from a web service
by JAW73
- 4 Replies
- Last post
by JAW73
- Hey Guys,
I didn't think that this would be a problem until I got into it and I cannot seem to find any examples out there.
What I want is pretty straight forward: I just want to bind a dropdownlist to data coming from a web service. I have no problem bind the data to a gridview but the dropdownlist is causing a fuss. Please see my code below and any help would be GREATLY appreciated!
-
- Windows Application to read and write data to a database ?
by aboutera247
- 14 Replies
- Last post
by ahmedilyas
- Hi Im a newbie Im starting to experince the C# more but I cant do a Windows application program to read and write to a database can anyone help me please note : please start from scratch dont assume that i know thank you so much
-
- Read table structure only for data validation
by spanky4_3
- 3 Replies
- Last post
by hayder MArzouk
- Hi everyone,
Just a quick question. Does anyone know if there is an easy way to select the structure of a table only from a database For example if I have TableA with 3 columns and 10,000 rows of data, but I'm only interested in the structure of the table is there a way I can instruct the select (through a Command object) to return a Datatable with no rows but with the column structure of Table
-
- automatically login to a web page
by mhfirooz
- 2 Replies
- Last post
by Tom Frey
- Hi
Using .NET, I intend to develop an application which automatically login into a web page. It is easily possible for some servers such as Yahoo. But I have problems with HTTP applications written by javascript. I describe the problem in more details here: http://mhfirooz.googlepages.com/automaticallylogin . I have described there how to login to mail.yahoo.com. I wonder if any one could solve
-
- unable to insert data: unspecified error
by NIBbaye
- 8 Replies
- Last post
by NIBbaye
- Hi, all
I am new to ASP.NET. I am testing an example that inserts a record into an access database. But i have got an error when i browse the sample aspx page from IE 7.
In the error the line cn.open() is indentified as the source of the error.
Line 24:
Line 25: OleDbConnection cn = new OleDbConnection(myConn);
Line 26: cn.Open();
Line 27: OleDbCommand cmd = ne
-
- How to differentiate code by platform?
by Jan Kučera
- 3 Replies
- Last post
by Caddre
- Hello,
I have a class similar to BitArray with private member holding the bits, which I wanted to be int[] on x86 and long[] on x64. I've never done anything for x64 before, so first question is - is there any benefit using this How is this implemented in BitArray class itself
And the main question, how do I declare such type Do I have to start new project with completely separate code
-
- Singleton class vs. shared class... two different purposes right?
by BhuttCrackSpackle
- 3 Replies
- Last post
by Rob Teixeira
- This is my original question but, I think I more clearly explain this question in my response to another poster below.
I was reading another forum post here that suggested that singleton classes and shared classes serve the same purpose, but they really dont if my understanding is correct. A singleton class has nothing to do with its scope, whereas a shared class is visible everywhere. I
-
- Passin a reference to an instance variable to a native function
by Yorthen
- 2 Replies
- Last post
by Yorthen
- I have a DLL written in native C++ and a GUI written in managed C++, one of the functions in the DLL takes as an argument two references (one to an variable of type size_t and the other to a double) along with some other parameters. The reason those two are passed as references are that they will be used to return some values. I have currently solved this by passing references to two local (stack)
-
- P/Invoke, call by reference(?), AccessViolationException, cause(s)...?
by mwarpheus
- 1 Replies
- Last post
by Ladi Prosek - MSFT
- Hello again,
At the moment i am trying to call an unmanaged dll method from a managed c++ dll. Generally it works, i successfully tried to call methods without parameters.
However, i am having problems with calling a dll method of the following signature:
Code Snippet
int myDLL::Init(CString &strConnectionInfo, ErrorInfo *pErrorInfo, CString strUniqueName);
-
- System.net.Webexception
by Ameri
- 6 Replies
- Last post
by TaylorMichaelL
- Hi All,
I am in serious trouble. We have a desktop Application that was
originally developed in C#.NET 2003 and then upgraded to VS 2005 an
year ago. This desktop application accesses its Oracle Database through
some webservices also written in .Net 2003 and upgraded to VS 2005
later.
Real Problem:- End users of this application takes out excel reports
(apart from a loads of other t
-
- how to zip an Xml Document
by Jehan Badshah
- 13 Replies
- Last post
by Mark Dawson
- Dear All,
I found a library (name Chilkat ) through which i can easily zip(compress) xml file, but it has only 30 days evolution period, could any one please show me way how to compress xml.
thanks
-
- Save Dataset to Access/Sql
by z3n
- 3 Replies
- Last post
by z3n
- Hi, Is there a way to save a dataset to an Access/Sql db like you save it to XML (ds.WriteXml) I want to bypass the sql INSERT INTO / sql UPDATE SET It seems to be a long and painfull method to save data to 150 columns in my dataset (some in diffrent tables in my dataset) and then run the INSERT INTO nonQuery to save that same changes to the external database. The commandbuilder is dodgy. And to b
-
- Cannot set a variable to a certain value
by diamondcore
- 12 Replies
- Last post
by diamondcore
- Hello everyone,
I have a very weird problem regarding .net 2.0: I can't set a variable to certain value!
I'm a computer science student, and I was doing my B-Tree assignment. All I wanted is to implement a buffered read/write performance analysis. (Once the buffer is full, I want to write those BTreeNodes to disk and clear the buffer).
First I tried the Hashtable. However, I can't clear i
-
- SOAP Errors
by Reeba
- 4 Replies
- Last post
by John Saunders
- I'm trying to invoke a third party webservice. When I try pasting in the SOAP address location in my browser it gives me the following error. I get the same error when I try looking up the wsdl file. There is no .asmx file. The URL is just a server name and a port..
- <SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>HTTP GET method not
-
- How to send email in Vista?
by Neal Hudson
- 4 Replies
- Last post
by Martin Vobr
- Hi there,
I was wondering, seeing the SMTP server is not part of IIS in Vista, how do you go about sending an email from code in .NET running on Vista
I've set the SMTP E-mail in IIS to be my remote SMTP server that our company uses, and have the following code:
Code Snippet
MailMessage mail = new MailMessage();
mail.From = new MailAddress(" myemail@mydomai
-
- Interop layer throws System Exception (cast) when accessing unmanaged COM code
by petedashwood
- 10 Replies
- Last post
by Sean Hederman
- I would appreciate help/comments on the following...
I am trying to access a COM component written in Fujitsu NetCOBOL from C#.
I have spent many hours (days...) reading the docs, trying various combinations, and looking at the samples but my attempts are failing miserably.
The COM .dll is called "AVSCOMSVR" and the embedded TypeLib has been picked up and converted to an Interop
-
- Application development with dataset - ado.net
by Blast
- 4 Replies
- Last post
by Blast
- Hello ADO.net community,
I have a couple questions regarding application development with the dataset and tableadapters. I've run into a couple of situations where I find myself pondering whether or not there is an easier way to go about achieving.
Given the above schema: ( http://www.condoresorts.com/temp.jpg )
1. If you use your windows credentials to log into
-
- MSIL documentation
by andris11
- 2 Replies
- Last post
by nobugz
- Hello,
where can I get the documentation on MSIL
Instruction set, performance considerations, explanations...
Thanks a lot
-
- FtpWebRequest Locks Application?
by myNameIsRon
- 4 Replies
- Last post
by myNameIsRon
- Hi
I'm working with C#.NET 2.0 (Windows Forms) and the class FtpWebRequest.
I notice when I'm performing a file upload with FtpWebRequest, the application locks up and I can't continue working in the application. Even if you're running the upload from a child Form I can't work in the parent Form. Is there a way to run the uload in the background and continue to work in the application
-
- Background image
by bhatiacgb
- 1 Replies
- Last post
by Erica Mohler - MSFT
- Hi,
i've specified background image url in document properties but my browser is not displaying image.pl help
-
- 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
-
- Error Massage after deploying in client...
by gongo
- 3 Replies
- Last post
by Jscratch
- Hi,
I built a program in c# and add it a setup deploying project so I'd be able to install it on other computers.
But when I'm installing it on other compuers that don't have VS.NET I'm getting this error massage:
EventType: clr20r3 P1: clock.exe P2: 1.0.0.0
P3: 43e89485 P4: system.windows.forms P5: 2.0.0.0 P6: 4333aefa
P7: 1979 P8: 2 P9: pszqoadhx1u5zahbhohghldgiy4qixhx
An
-
- How to install .Net Framework on Win Server 2003 SP1
by wu kong
- 14 Replies
- Last post
by Eric-Jan
- when i tried to install Visual Studio 2005 in Window server 2003 sp1, the following error info arose ----
The following component failed to install: Microsoft .NET Framework 2.0 The following component was not attempted: Microsoft Visual Studio 2005 Professional Edition - ENU
[02/10/07,00:07:35] Micros
-
- FtpWebRequest and timeouts
by Tim_Mackey
- 14 Replies
- Last post
by Eduardo Coelho
- hi, i'm using the FtpWebRequest class as used in the SDK examples. i find that when an upload takes a few minutes, the call to GetResponse() fails with "Underlying connection closed", even though the upload was successful. i'm not changing the Timeout value, but i do have KeepAlive set to true, in an effort to keep the connection active. i guess it's a timeout after such a long upload,