-
- An existing connection was forcibly closed by the remote host, ConnectionReset Error
by Huseyin Akturk
- 3 Replies
- Last post
by Huseyin Akturk
- Hi,
I am implementing an UDP client using asynchron methods. While implementation, I have realized an interesting error. I have tested the client without there is no server in connect. When client want to send an information to server, client get the error in receive callback not after send command.
My Code is:
private void Form1_Load( object sender, EventArgs e)
{
dat
-
- Advice re transactions across multiple SqlConnections...
by sigol
- 6 Replies
- Last post
by crystallite
- hi,
i have a data access layer where each object (maps to a table in the db) wraps up all db work in its own SqlConnection.
I am looking for a way to implement transactions across multiple objects (and therefore multiple SqlConnections) and am unsure of the best direction.
All SqlConnections point to the same (MSSQL 2005) db.
I have read that I can use the new TransactionScope but this
-
- using the & symbol in xlm please...
by Devin
- 6 Replies
- Last post
by Chris Lively
- When i place a & in one of my xml comments I get an error during compile :
"Warning 1 XML comment on 'WintschLabs.DirectX.DirectForms.SkinFrame' has badly formed XML -- 'A name was started with an invalid character.' C:\Projects\WintschLabs\DirectForms - Release 2\Base.cs 605 39 DirectForms r2"
but I need to use the symbol in my comment. how can I use this symbol
I'm trying
-
- Random alphanumeric generator
by Krutika
- 4 Replies
- Last post
by AlexBB
- I need to generate 7-character alphanumeric generator that is unique to the database where all these number will be stored.
Can anyone help me
-
- Using an internal modem as a serial port
by Bakershack
- 12 Replies
- Last post
by nobugz
- Most laptops today come without serial ports, but have internal modems. Is there any technical reason why the internal modem could not be used as a serial port I can't find any existing adapter to do this. A converter cable would be easy to make. But I am not sure about the driver/software part. I would want to be able to just plug in any serial device (RS-232, or even RS-422 or 485) and communic
-
- Singleton vs. Static Object
by Ronen.h
- 6 Replies
- Last post
by decyclone
- Hi,
I¡¯m going to host a Component under Windows Service which can be accessed remotely.
One of my requirements is to be able to share data between clients.
My question is: what is the different between Singleton object and Static object hosted in the Window Service
Basically I can create a SingleCall object that access to the static object in order to get/set shared information.
-
- System.Web.Services.Protocols.SoapException: Server was unable to process request.
by Peter03
- 0 Replies
- Last post
by Peter03
- Hey guys, I've run into a bit of a roadblock here! I'm trying to port an application from one server to another, and I'm getting an error. I've copied the files directly from the current server, where they do work, and have used backups to restore the databases on the new server.
Now, whenever I run my application, I'm greeted with this error. My guess is that it's an issue with the command
-
- Sending data types other than bytes
by Gho5tFac3
- 10 Replies
- Last post
by Gho5tFac3
- Using the System.Net.Sockets namespace, is there a way to send a data type that is not a byte over to the client, such as custom structs or classes
-
- Caller ID on an incoming Call via Modem
by McWhirter
- 6 Replies
- Last post
by McWhirter
- Howdy,
I'm trying to create a helpdesk application for a small company. One of their problems is that they fail to record all incoming support calls and thus lose money. Hence, they want a helpdesk application that monitors all incoming calls, records the length of call, and updates a central database.
Monitoring the length of calls and the database side is not an issue. Finding out who is c
-
- C2440 Error with SSPI
by Hiral
- 16 Replies
- Last post
by Hiral
- I have project dependent on "SSPI.h". However, during the conversion to the .NET 2.0 Framework, when I try to complie "SSPI.h", I get the following error. error C2440: '=' : cannot convert from '__const_Char_ptr' to 'wchar_t __pin *' Following is the piece of code which gives error: wchar_t __pin * pwszServerPrincipalName = NULL; if ((credential->SecurityPackage == Credenti
-
- How to know what exceptions a method can throw?
by Tim Cools
- 14 Replies
- Last post
by Dasa
- I was reading in some other posts that you only have to catch known exceptions. And that it is not allowed to catch Exception like this:
private void CheckCancelEntryWeighingRecords() { try { mis.Transfer(data.CsvData); //Call to a third party dll } catch (Exception ex) { LogError("Error occured in CheckCancelEntryWeighingRecords&q
-
- how to unzip a file in .net 2.0 with C# as a language
by Kamii47
- 12 Replies
- Last post
by Kamii47
- I have a zip file.I want's to unzip it how can i do this in .net 2.0 as we know there is a class i think gzip from which i can unzip a file. Please can anybody help
-
- Access net share with specific user credentials
by M. Abraham
- 2 Replies
- Last post
by M. Abraham
- Hello everybody! After some time of searching on the web I finally got back here again with the following question: Is it possible to access an web share from an webservice (.net 1.x) using specific user credentials I need this, because I must create a file on a remote server. I would like to create one special domain user having all the rights to write into a directory on this server and use this
-
- You can have strongly-typed DataTables, or you can have nullable columns. Choose one.
by Robert Rossney
- 14 Replies
- Last post
by Robert Rossney
- I have a SQL Server database containing a table that includes smalldatetime and bit columns. These columns are nullable. I add a DataSet to my project, drag the table from the Database Explorer window to the DataSet designer surface, and in a matter of moments I have a shiny new FooDataTable class. The BirthDate column, I see, has AllowDBNull set to True, and <DBNull> as its default value. A
-
- Calling Console.Clear() in a Console App within another .NET App through Process class
by Solrac Otr
- 10 Replies
- Last post
by Solrac Otr
- Hi all
I'm having trouble in calling an .NET Console Application that calls Console.Clear(). I have an .exe file that has a call to Console.Clear(). The problem is that I have another .NET console application that is used to call all of my applications (cscript, .net, vb6 etc). But when the Console.Clear is called, the "executor" breaks:
Unhandled Exception: System.IO.IOException:
-
- Webservice returns a 400:Bad Request
by jeffpriz
- 7 Replies
- Last post
by John Saunders
- I've got a win-forms app calling a some web services..
I have one process that goes through a loop and calling serivces. I am suddenly now finding that on one of my calls I get a HTTP:400.. but it's coming on like the 15th time through the loop.. it calls things fine and then suddenly Pffft... The only difference that is the (decimal) id value that I'm putting in to the object that I'm passing
-
- Create HttpRequest / HttpWorkerRequest from HttpContext.Request.SaveAs(...) file
by Hei
- 3 Replies
- Last post
by Daniel Roth
- Hello,
Wonder if it is possible to create an HttpRequest / HttpWorkerRequest from the file generated by HttpContext.Request.SaveAs(<filename>, <true if include header>)
There is a way to save a Request as a file, so I guess there must be a way to create a Request from a file
Thanks for the help,
Hei
-
- invoke through command prompt
by abhi6975
- 2 Replies
- Last post
by RizwanSharp
- Hi,
Im new to this, need to know how to execute commands on DOS prompt using C# apps. any info would be appreciated.
thanks.
abhi
-
- out of memory exception in .NET Remoting v2.0 - TCP Channel Binary formatter
by mobigital
- 14 Replies
- Last post
by mobigital
- Has anyone seen this error I am getting it when the server is supposed to return a dataset with response data. The database may be large but not more than a couple of megabytes. can anyone advise what could be the issue System.OutOfMemoryException:
Exception of type 'System.OutOfMemoryException' was thrown. Server stack trace: at
System.String.GetStringForStringBuilder(String value, Int32
-
- Exception in Transform
by Moinz
- 3 Replies
- Last post
by Moinz
- Hi,
I have an XSLT with more than 15000 lines which includes many template methods. It was working fine until I added one more call to a template method. Now its giving me the error " Common Language Runtime detected an invalid program "
It seems weird since it was working fine till now. If I take out the new line of code which i added, its working fine. Further, I am app
-
- Object Already Exists error when trying to sign an assembly using a pfx file
by beefeater
- 14 Replies
- Last post
by GurliGebis
- Hi,
I'm trying to sign my assemblies using a pfx file. This was working fine, until I changed the file I used to sign it (I used to sign it using xxxx.pfx, and now I'm signing it using another xxxx.pfx, so the name is the same but the file itself is different). When I point to the new file on the signing tab and build my solution, I am prompted for the pfx password. When I type in the pwd and c
-
- FileSystemWatcher and multiple changed events
by dapi
- 1 Replies
- Last post
by nobugz
- Hi, I have this problem when working with FileSystemWatcher class. I m using one of these objects to watch over a folder. Whenever i big file from another folder to the folder being watched, I get created event and multiple changed events. After the file is copied (fully) i want to read the file and perform some operations on it. Now the issue is, there is no way to find that the file has been cop
-
- Embedded file on clipboard
by Andreas Andersen
- 5 Replies
- Last post
by Tall Dude
- Hi I would like to place some RichText on the clipboard which among other things contains an embedded file. That is when the content is pasted in e.g. Word, the file is embedded and the user can open it by double-clicking. How can I do this Thanks in advance /Andreas
-
- How can refresh the DataTable on client when ever there is a change in Database
by K. Ravinder Reddy
- 1 Replies
- Last post
by VMazur
- Hi All
I have an application that contains a server and a froup of clients. Every client contains a Dataset that holds the latest information retrieved from the Server database. Now my requirement is when ever there is a change in the Database data, I have to update the all clients (DataSet) with the latest data.
How can I do this. Please help me out.
-
- Which one is the best - custom class or datatable for Crystal reports.
by Maheshkumar.R
- 0 Replies
- Last post
by Maheshkumar.R
- hi geeks, I've a doubt in selecting datasource for complicated report done in crystal (vs2005). I
just completed with custom class object binding, but one of my
immediate head asked me to code it in ADO.NET data table binding
stuffs. I'm very much confused of his recommendation for datatable binding... my
question is Ado.net databinding is better than custom class object
binding.. pls some