Software Development Network Logo
  • Visual C++
  • Smart Devicet
  • SQL Server
  • Visual Basic
  • Game Technologies
  • Audio and Video
  • Microsoft ISV
  • .NET Development
  • VS Team System
  • SharePoint Products
  • Windows Vista
  • IE Development
  • Visual Studio
  • Windows Forms
  • Visual C#

Software Development Network >> .NET Development

.NET Development

New Question

group comment button
Problem with System.Net.Mail and bulk mail sending
Adding files to ClickOnce VB.Net application
Looking for sample of SAP .NET Connector in C#
Merging XML Nodes together to form a good XML doc
can I install .NET Framework 1.1 alongside 2.0?
How to use threads in socket programming?
problem saving of xml file (argument exception was unhandled)
! Possible System.NET bug? SocketException when performing Async download in Async thread
Error in using .Net Framework 2.0

Top Answerers

ershad
anjelinio
Jarod.Net
DuncanP
lucas447800
krisvenki
Knudde
Wytboi
Sailu
Mchafu
sitemap
Only Title

Answer Questions

  • Spangltk Connection Pooling randomly throwing COM exceptions

    We randomly get the following exceptions: [COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))] System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0 System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) +34 System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +636 System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82 System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105 System.Data.SqlClient.SqlConnection.Open() +111 System.Data.Common.DbDataAdapter.FillInternal ...Show All

  • Andres G Unwanted Escape Codes In String...

    Hi, I'm working on web services client. We are connecting to an Axis web server which returns user defined exception in SoapException. The xml stream I got contains some unwanted Escape codes. When I tried to deserialize, it trows invalidOperationException since the namespace contains some invalid escape sequences ('\'). This is the XML string I get from the service: < ns1:fault xmlns:ns1 = \"http: Sapphire\">< ns1:error >< ns1:code > Err_Imp_26 </ ns1:code >< ns1:englishMsg > Invalid Sapphire Case ID </ ns1:englishMsg >< ns1:japaneseMsg xsi:nil = \"true\" xmlns:xsi = \"http: //www.w3.org/2001/XMLSchema-instance\" />< ns1:severity > 2 </ ns1:seve ...Show All

  • Fabriciom Add or change attribute to a property in runtime, is it possible ?

    Hi, I need to change or add new attribute to a property in run time (.net 2.0) is it possible I tried using reflection something like that Class2 c2 = new Class2 (); PropertyInfo [] propInfoArray = c2.GetType().GetProperties(); PropertyInfo myProp = propInfoArray[0]; MyDisplayNameAttribute myName = ( MyDisplayNameAttribute )myProp.GetCustomAttributes( true )[0]; myName.SetNewDisplayValue( "Hello 2" ); Hi, Here is what I eventually did foreach ( object key in propertyKeys){ if (properties[key].GetType().Name != "ExtendedPropertyDescriptor" ){ properties[key] = TypeDescriptor .CreateProperty( component.GetType(), (properties[key] ...Show All

  • Alvin Kuiper Implement "cut", "copy", "paste" menu commands in Windows Form application

    Hellow all. Sorry for this simple question, but I nowhere can found the answer. I want to implement "cut", "copy", "paste" menu commands in my basic application. I use VS.NET for development. With TextBox class it's easy via cut copy and paste metods, but how I can work with another controls, like comboboxex numericUpDown and other Realy, .NET have't standard corresponded functions A ask this question in a lot of forums, download many samples applications but can't found simple answer. well you can use the ClipBoard to setText/data then copy it to your destination. Example: ClipBoard.SetText("New Text"); this.theTextBox.Text = ClipBoard.GetText(); this will set the text ...Show All

  • Tanmaya Efficiently handling xml fragments in a file

    I'm looking good way of reading a sequence of serialized XML fragments (subtrees) one at a time from a file containing a sequence of serialised XML nodes. I will be performing XPath queries on each of the subtrees. I have a program that reads XML subtrees (fragments) from a log file as it is being written. Currently, it uses a File System Watcher to be notified that data has been added to a file, reads it through a FileStream, splits events using Regular Expressions and runs each event into an XmlTextReader. At this point it uses an XPathDocument, Xpath and an XMLNavigator to select information for display. I was hoping to improve the program by eliminating the use of Regular Expressions to improve efficiency and the accuracy of spli ...Show All

  • JaceKiwi sequence do not increment

    how can i increment a sequence if a data is already in a database. Whats wrong with my code When a new book is added it doesnt give error BUT the sequence is not incremented if a same booktitle is entered. I have three columns(author, booktitle, sequence). Sequence should increment if book with same title is added. But with my codes it doesnt. Protected Sub save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles save.Click Dim DBConn As New Data.SqlClient.SqlConnection("DATA SOURCE = xxx;Initial Catalog= xxx;Integrated Security=True") Dim myDataAdapter As New Data.SqlClient.SqlDataAdapter myDataAdapter.SelectCommand = New Data.SqlClient.SqlCommand("Select * from books", DBConn ...Show All

  • jinfeng_Wang How can I post the xml data by using HttpWebRequest?

    I tried to POST xml by HttpWebRequest, and write following code. But the code is not work. I confirm the net packet, and I found this http post packet. But this packet don't have xml datas. So I think Stream.Write is not work correctly. Content-Type and Content-Length is correct in the packet. Could you tell me what is wrong Thank you. HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); req.Method = "POST"; req.ContentType = "text/xml; charset=utf-8"; UTF8Encoding encoder = new UTF8Encoding(); byte[] data = encoder.GetBytes(postbody); //postbody is plain string of xml req.ContentLength = data.Length; Stream reqStream = req.GetRequestStream(); reqStream.Write(data,0,data.Length); reqStream.Close(); ...Show All

  • echavez Reload Assemblies

    Hello ppl! I need to load an assembly, and in a further time unload the assembly to reload it... I have a method called Run() in this assembly. So I use an interface to cast an object (that the instance has been obtained from the method CreateInstance from my new domain) and call my Run() method. Ok, no problem here. But in a further time, this assembly must be updated and reloaded. There is no way to unload the assembly, even if I load it in other domain and/or use the transparent proxy from CreateInstanceAndUnwrap to access the class members... Any idea How can I reload this! Thanks... Assemblies can not be unloaded once they are loaded. However, you can either unload the whole AppDomain or you use ShadowCopy to upd ...Show All

  • James Bender XmlNode.SelectSingleNode

    Hi, This section is taken from the msdn XmlNode.SelectSingleNode Method (String) . . . Return Value The first XmlNode that matches the XPath query or a null reference (Nothing in Visual Basic) if no matching node is found. The XmlNode should not be expected to be connected "live" to the XML document. That is, changes that appear in the XML document may not appear in the XmlNode, and vice versa. The return value is a read/write object BUT the changes will take affect nonly after calling Save() Is this correct Or is the XmlNode return from SelectSingleNode() is write only object It just return you node in the tree. This is not a new node. This is exactly the same node that you ma ...Show All

  • Bill Partridge Remoting and Write operation fail

    Hi! A have a problem with Remoting through TCP. I have a Service that provides access to object through Remoting and Client application, that calls method of this object through TCP secured channel. When I first run my client, it's OK, but when service is stopped and started again, and I try to call method again I am getting an exception and can't find out what happens. Help me please, I have no variants, what is wrong. Another ASP client calls other methods of my remote object sucessfully... System.IO.IOException was unhandled Message=" , . ." Source="mscorlib" StackTrace: Server stack trace: System.Net.Security.NegotiateStream.ProcessWrite(Byte[] buffer, Int32 offset, Int32 ...Show All

  • Mephisto187 Converting an XSD to .NET Classes

    I tried to export a Data Model using ERWIN into a XSD File. Now I am trying to convert the XSD file into C# Classes using XSD.exe from VS2005. It failed giving me this message: Schema validation warning: Invalid 'name' attribute value '10XXR_identifier': 'The '1' character, hexadecimal value 0x31, at posit ion 0 within the name, cannot be included in a name.'. Line 210, position 2. Schema validation warning: Invalid 'name' attribute value '10XXR_status_identifier': 'The '1' character, hexadecimal value 0x31, a t position 0 within the name, cannot be included in a name.'. Line 245, position 2. Schema validation warning: Invalid 'name' attribute value '10XXR_status_identifier': 'The '1' character, hexadecimal value 0x31, a t position 0 w ...Show All

  • John Turnbull What Trim function do i use??

    i have this string 2004-07-31 00:00:00.0 i want to trim the underlined text off so that it only shows 2004-07-31....I used the TrimEnd and passed it an char array but that did not head the results i needed...any help on how i should do this Brendan Grant wrote: If the string you need to trim that out of is always in that format you could simply use IndexOf() to locate the space character and SubString() to grab a piece of the string based on it ala: string s = "2004-07-31 00:00:00.0" ; int spacePos = s.IndexOf( " " ); //If the charactor does exist if ( spacePos != -1) s = s.Substring(0, spacePos); Would this work for you Nic ...Show All

  • Robert3234 Expose library as web service correct pattern

    I want to expose the whole functionality of a library through a web service. In order to do that of course I've created web methods for all public methods in this library. Because only public data and no logic or private fields is transferred through web services, I need to know what is the correct pattern for invoking the methods of the proper objects. By now I've found two possible patterns: 1) Objects are created on the server and then passed to the client ( Of course now they have only data and no logic ) and when invoking a webmethod pass this object as a parameter so that the server now has object with the correct data and methods and just invoke the method from this object. The proble ...Show All

  • Visual Basic Expert Need guidance for a client/server system (programmed using visual basic)

    I'm programming a small client-server system that will be used in a small office of up to 10 computers on the same network. The server computer stores a database, and I'm writing a program to go on the server to be in charge of communicating with the database, and also communicating with the client programs installed on each other computer. The client programs will often request data from the database which the server software will send back to the client software. Also the server software will need to message the client software with certain events happening etc. So basically I need to program a communication system between a server program connected to several instances of a client program. Various messages will need to be passed back ...Show All

  • C&amp;#225;ndido More error info:

    I'm calling a remote server (client activated, hosted in WinForms app). A simple call without parameters (or with a simple string param) works fine. When I pass certain parameters, it crashes. Build is the remote class. This call to CreateBuildTree() works: Build prp = new Build (); prp.CreateBuildTree(); This one doesn't: Build prp = new Build (); string BuildDir = prp.GetBuildDir(); TreeNode root = new TreeNode (); root.Text = BuildDir; prp.CreateBuildTree(root, BuildDir); even when CreateBuildTree doesn't contain any code!!! public void CreateBuildTree() { } The error I get on the client side is "Server encountered an internal error. For more information, turn off customErrors i ...Show All

262728293031323334353637383940414243

©2008 Software Development Network

powered by phorum