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

Software Development Network >> .NET Development

.NET Development

New Question

newbie question
Porting from 32-bit to 64-bit
Refrencing the COM not working
When is required a system reboot for a .NET application?
mapping issue with sql executenonquery method
I don't have initializeData attribute for the <add> element
FTP Error: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
Exception: An established connection was aborted by the software in your host machine
Help with update query
Web Method returns array of custom type : casting error

Top Answerers

chianuri
Sransom_au
FilipeTB
estump1
tamasu
Magnus M&amp;#252;ller
jv_getmore
egeskov
Deza
dtlinker
Joe LeVasseur's Freeware
Only Title

Answer Questions

  • Joet1110 Datatable value not displaying!!!

    Hello, I'm new to ado.net. Here is the code which i use to declare the dataTable: DataTable dtable = new DataTable ( "dtable" ); dtable.Columns.Add( "SID" , typeof (System. String )); dtable.Columns.Add( "givenName" , typeof (System. String )); dtable.Columns.Add( "sn" , typeof (System. String )); dtable.Columns.Add( "mail" , typeof (System. String )); dtable.Columns.Add( "tel" , typeof (System. String )); dtable.Columns.Add( "mobile" , typeof (System. String )); dtable.Columns.Add( "office" , typeof (System. String )); and here is the code for adding a new row. for ( int i = 0; i <src.Count - 1; i++) { DataRow tempRow = dtable.NewRow(); tempRow.ItemArray[0] = SID[ i ]; tempRo ...Show All

  • Imran Farooqui HttpWebRequest and ServicePoint

    Hi. I have faced a problem that I still cannot find solution for. I need to execute web requests to SAME web server using different source IP and port combinations. Yes, I know that I should use ServicePoint.BindIPEndPointDelegate and I use it. But my problem is that I have multi-threading application and because I use same destination address I got same ServicePoint instance for all threads and therefore can use only one combination of source IP and port in time. Does anybody know solution to this problem I'm using .NET 2.0. Thanks. Well, not sure how to help you. In my case everything works fine. But I have a server that has direct Internet connection and it has pool of IP addresses (public IP) and I ...Show All

  • Edwardvb Large payloads and memory allocation

    I have a web service method that returns a fairly large payload - around 70MB of xml. The client application break on receive with the OutOfMemory exception. Now, I understand that even though my workstation has 2 gigs of RAM it doesn't mean that all of that is available to my application. But how do I know how much memory IS available How is the memory allocated How can I calculate the hardware requirements for my scenario That's quite specific, in fact. That's a much different expection than what I expected. We'll take a look at that. You are right in many cases that its a work around but not a good solution but still possible. Anyhow I ask some moderator to move this Thread to CLR forum and I w ...Show All

  • MatthewRay AcceptChanges

    I obviously misunderstand the functionality of AcceptChanges() as my Access 2003 database is not getting updated when I do the following: MyDataSet . MyTableRow row = MyDataSet.MyTable.FindById(id); row.BeginEdit(); row.Name = txtName.Text; row.Email = txtEmail.Text; row.EndEdit(); row.AcceptChanges(); The 'row' is found (using the id) and contains the correct data. I've also tried calling: MyTableAdapter.Update(row) But still the update is not commited to the database Can anyone sched some light I know how to do it the long way, but I am trying to use the inbuilt .NET 2.0 functionality. Thanks AcceptChanges() should not be called before the udpate. Please r ...Show All

  • selva_kumar CSV Data

    Hallo, I want to create a comma seperated file of columns with specific length. How can i specify the length of each column and may be also define the type of the data. regards swingme thanks for ur reply...i have no idea about using reader/writer..could u please give me a small example or any links demonstarting this regards swingme Yes, but as i readed the post he wants to write data using fixed length, so that aint csv no more. When using fixed length data a breakline aint required. a CSV file is not supposed to be fixed sized, thats why the sperator is in it .csv is a standard file type used by many programs, so its not adviced ...Show All

  • Alessandro Camargo 407 Status when accessing a web service through a proxy

    How do I set the server credentials for a web service when the web service runs through a proxy server When I have my web service on the development server (that requires no credentials) it runs correctly When I try to access my web service on the production server I get the proxy authentication error (407) Here are my proxy credentials... oProxy.Credentials = System.Net.CredentialCache.DefaultCredentials GlobalProxySelection.Select = oProxy but where do I set the server credentials in my web service/proxy Dim dataManage As DataManager.DataManage dataManage = New DataManager.DataManage I've tried dataManage.Credentials = New NetworkCredential("user", "Password") and various other t ...Show All

  • Andrew Buyan How to Zip files within a folder?

    In my application multiple reports are generated and saved on server. I want to zip all these reports and keep a link on webpage so that user can download this zip. But I am not able to figure out a way to zip the files programatically..Please help me...thanks in advance.. Hi,   if you are using .Net 2.0 or above you can use the System.IO.Compression.GZipStream to compress/decompress your data, see: http://msdn2.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx   Mark. You can use http://www.icsharpcode.net/OpenSource/SharpZipLib/ free open source component for archiving and compressing multiple file into a single file compatible with Zip, Tar etc. Best Regards ...Show All

  • Snyper_Vash security variables

    hello, I've seen ASP.Net posts about using variables like $AppDirUrl$ for security settings. Is it possible to use variables like that for a custom security setting when you aren't using ASP I tried, but get bad XML errors when I try to import an xml file into the framework. Thanks for any help. ...Show All

  • MMBVN Appdomain::Unload does not unload an assembly

    I'm writing an application that can load any .NET assembly and work with it through reflection. I want to load all assemblies in a new appdomain, not default appadomain. My code looks like this: AppDomainSetup^ ads = gcnew AppDomainSetup(); ads->ApplicationBase = appdir; AppDomain^ newAd = AppDomain::CreateDomain("MyAppDomain",AppDomain::CurrentDomain->Evidence, ads); Assembly^ a = newAd->Load(gcnew System::String(assemblyName)); assemblyName is the incoming assembly name from the user. The problem here is, the assembly gets loaded to MyAppDomain and DeafaultAppdomain. This is because I've a reference to the assembly created in new appdoamin in my current app domain. I need a reference because I need to work with ...Show All

  • Rabtok DataSet can be associated with at most one XmlDataDocument

    I have a typed dataset which gets the values from the database and poopulates the necesary textboxes on the aspx page. The Values on these textboxes can be edited, which are captured in the same dataset. Now at the click of the "GENERATE" button the code is as below XmlDataDocument xmlDoc = new XmlDataDocument(finalDataSet); XslTransform xslTran = new XslTransform(); xslTran.Load(test.xsl); XmlTextWriter writer = new XmlTextWriter("xslt_output.txt", null ); xslTran.Transform(xmlDoc, null , writer, null ); writer.Close(); TextReader tr = new StreamReader("xslt_output.txt"); txtInfo.Text = tr.ReadLine(); tr.Close(); The txtInfo is the ID of a editor control where the contents o ...Show All

  • wirwin Object List in C#

    Hello, coming from C++ and using a lot of MFC stuff, I wonder what object exists in C# which does the job of a CObList in C++ I mean being serializable and being able to stock different types of runtime class objects. Thanks for any further information ... Best regards MMM You can retrieve the object as type Object and use GetType() on the returned object to get information of type the object is. Serializing and deserializing should still be automatic, as every objects serialize/deserialize code will be called upon serializing/deserializing the arraylist. -- SvenC Hello Sven, maybe a very stupid question, but the ArrayList class has no Serialize or deserialize method I ...Show All

  • aCaen How can I create an array of DirectoryEntry's

    Hi, I have such situation: myEnum = group.Properties["member"].GetEnumerator(); while (myEnum.MoveNext()) { DirectoryEntry entry = new DirectoryEntry("LDAP://" + myEnum.Current.ToString()); .... ... } This is a part of my function which creates DirectoryEntry objects. What kind of array can I use to store "entry" . Maybe DirectoryEntries If yes..how thanks thanks, I had to know that anwer,...damn ;) The size will be dynamic , I think i will take the List . I never worked with dictionaries or hastables. Easy to implement regards Hi, Let me know if I am not understanding but DirectoryEntry[] won't help Or a List<DirectoryEntr ...Show All

  • Alex Araujo Problem about socket.poll

    I have writen the following souce code : m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); m_Socket.Blocking = false; try { m_Socket.Connect(ipEndPoint); } catch (SocketException e) { int timePace = 500000; try { bool retCode = m_Socket.Poll(timePace, SelectMode.SelectWrite); //Step1 , check the server status. m_Context.IsLastPollSuccess = retCode; //System.Console.WriteLine( retCode ); if (retCode == true) { m_Context.LastSocketErrorCode = 0; m_Context.IsSocketConnected = true; } else { throw new MyAppException(MyA ...Show All

  • Rajesh batchu System.Runtime.InteropServices.COMException: This command is not available

    The application is working fine in my local machine.But after deployment in client's machine I am getting this error.Please help me. No,my application is not using any COM components.Just I am writing values into word document.It is not coming with any stack trace. Thanks Mattias. You have to tell us a lot more about your application. Does it use any COM components When do you get this error and does it come with a stack trace How are you writing to the Word document if not via the COM-based Office automation APIs Anyway, it sounds like you should add proper exception handling and logging to your application so you can tell ...Show All

  • Aego .NET TCP/IP

    can someone please show me how me to create a very simple tcplistener app and tcpclient app here's my sample code on TCP Listener: Imports System.Net.Sockets Imports System.Net Imports System.Threading Public Class Form1 Dim server As TcpListener Delegate Sub DelegateServer() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim thdServer As New Thread(AddressOf ServerStart) thdServer.Start() End Sub Sub ServerStart() If server Is Nothing Then server = New TcpListener(IPAddress.Any, 3030) server.Start() End If RunServer() End Sub Sub RunServer() Dim done As Boolean = False Dim client As New TcpClient() W ...Show All

94959697989901234567891011

©2008 Software Development Network

powered by phorum