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

Software Development Network >> .NET Development

.NET Development

New Question

Reorder XML Nodes based on schema content
publishing web services
Get Absolute Path of Drive mapped to local folder
Class serialization problem (with an Assembly as one of the members of the class)
Problem in GZipStream Class
Whats best Updateagram or Stored Procedure on passed XML dataset?
Errors creating new data source
How to handle multiple requests simultaneously using HttpListeners?
MySql - Doubt
SQLDataAdapter gets a "General Network Error" only on the server

Top Answerers

eni_sha
sophmoricinbehavior
StUdEnT in distress
LORDTEK
Turfnsurf4me
Jeff-B
StarSS
mhadamji
VisualDragon
Christoph Hornung
sitemap
Only Title

Answer Questions

  • Michael Pritchard Windbg / SOS Callstack

    I'm unable to get source code file and line number information for the call stack functions reported by !clrstack in .Net 2.0. I've seen examples of this working in the 1.1 framework. Does it work in 2.0 If so, what's the trick Thanks for any pointers. The following article should be helpful in using SOS within Windbg. http://msdn.microsoft.com/msdnmag/issues/03/06/Bugslayer/default.aspx Hope that helps, Stephen I don't have an answer to your question! I actually have a question. I am unable to debug VB.net code using Windbg. Can u give any pointers to info related to debugging .NET code with Windbg ...Show All

  • levyuk1 Get source code file path at runtime

    I would like to get a source code file name and full path at runtime for a specific class. Say I have a type MyClass and I want to use reflection or PDB to get the source code for that class. So the method should look like: string GetSourceCodePath(Type t) when I pass typeof (MyClass) it returns C:\MyProject\MyClass.cs Thank you You can get the stack frame of the current method or any of its callers by creating an instance of the StackFrame class. However I don't think this is really what you want to do given your further comments. You can't decompile your code through the standard .NET classes. Therefore you can't do this easily at runtime. You could use something like ildasm or s ...Show All

  • Robert Mileski Is there any way to tell if a Process has been Killed?

    If I've got a Process object, is there any way to tell whether it exited normally or was Killed ( I believe the answer to my question is "no", but just wanted to verify that.) Thanks...Rick Hey... I'm not so good with this but, if you build that process, you may do two things: Check to returned value. When a normal exit is detected, ask your process to write some log. I'm not pretty sure, but I think Windows does not log this killing thing. I haven't tried this.. but one thing you might do is to inherit from the Process Class and add a new Property called WasKilled. Override or create a new Kill method for this object and set the wakilled value ...Show All

  • 3jg1333 Software Remote application launching help needed

    We are programming on an application. I have to create a remote launcher kind of thing. Any ideas how can I launch one application on differenct parts of the world I am not talking about spamming on someone's system. We will use dedicated machines worldwide to test the performance of the application. Any help would be greatly apriciated. As a rule of thumb, you will have to run some of your software (an agent) on a machine that you want some more of your software to run on. You could, for instance, build a WCF service that is run as a Windows service and use that to launch additional applications. If you don't have any code running on the box, you can't start anything on the box. The only exception from this would be COM, but that' ...Show All

  • DevDiver Noob HttpWebRequest Question

    Hi folks, I'm just wondering if someone could provide an example of how I would go about retrieving the HTML file at a given URL I'm told you can do this with HttpWebRequest, but I'm having troubles with the documentation for it. I'd like to see the example in C++, if at all possible (this is for a WinForms application in VS 2003 C/C++ .NET v1.1). Any advice -Zero Here is the MSDN Example which retrieves a webpages at specified url and displays it! #using <System.dll> using namespace System; using namespace System::IO; using namespace System::Net; using namespace System::Text; int main() { // Create a request for the URL. WebRequest^ request = WebRequest::Create( "http://w ...Show All

  • JR Lyon Problem generating Convert.ToString + dataRow using codeDom

    Hi, Yes struggling with the codeDom but getting there, Could somebody help with these ones Person.Name = Convert.ToString(myRow["Name"]); THanks a lot as usual   Thanks for your usual help on codeDom. I use to write in vb but the market wants c# programmers and I therefore started to write in c#. I dont mind which language I use.I must change my name Thanks again     You're a VB junkie but your code is in C#. I'll assume you want C# code. Here is the code I'd use. //Prologue CodeCompileUnit unit = new CodeCompileUnit (); CodeNamespace ns = new CodeNamespace ( "Testing" ); unit.Namespaces.Add(ns); Cod ...Show All

  • vahdam_mn saving dataset to xml

    When using WriteXML method in DataSet, it writes each column as a node. Is there any easy way to instruct it to write each column as an attribute without create my own method for example, it creates xml like this: <DataSet> <Table> <C1>vc1</C1> <C2>vc2</C2> </Table> <Table> <C1>vc3</C1> <C2>vc4</C2> </Table> </DataSet> I want to create xml as following: <DataSet> <Table C1="vc1" C1="vc2" /> <Table C1="vc3" C1="vc4" /> </DataSet> Thanks! You need to set ColumnMapping property for each DataColumn in your DataTable to Map ...Show All

  • j_a_m_e_s difficulty accessing Excel spreadsheet via ODBC

    trying to access a spreadsheet on a network share. ODBC connection string: "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;DefaultDir=\\sdi-fs2\Bypass\4ANAMEDONOTDELETE;DBQ=\\\sdi-fs2\Bypass\4ANAMEDONOTDELETE\0e89da37-180c-4214-af37-632cce8dc476.xls" Produces the following error: ERROR [HY000] [Microsoft][ODBC Excel Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x7b4 Thread 0xabc DBC 0x348274 Excel'. ERROR [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed ERROR [HY000] [Microsoft][ODBC Excel Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x7b4 Thread 0xabc DBC 0x348274 Excel'. ERROR [HY000] [Microsoft][ ...Show All

  • gordon LI Help request on How to draw a vertical upward string?

    Assume that I have drawn two coordinate axes on the screen (X and Y). When I want to put axis captions on the screen it's OK with X-axis such that Graphics^ gObj = this->CreateGraphics(); String^ xAxis ="X-Axis"; // Make necessary arrangements here such as measure string and find the optimal screen position, etc. then draw the string gObj->DrawString(// put necessary parameters here); Then the result is "X-Axis". It is just fine. How can I do it for the y-axis When I choose text alignment vertical, the string containing "Y-Axis" is drawn like this : Y - A x i s (LOL!). How can I put a vertical upward string "Y-Axis" parallel with the vertical y-axis on the screen Rega ...Show All

  • MaartenClaes System.data namespaces

    hi! i am confused on what namespace (System.data.SqlClient, System.Data.OraclClient or System.Data.Odbc) should i use with my program... the program retrieves from sql (local server) and the values retrieved will be inserted to oracle (other server). My main question is what should i use and just to clarify what difference is there when i use an odbc connection from an sql or oracle connection thanks! IT will better to user SqlClient for sql server and OracleClient for Oracle. these classes are faster than the odbc classes. ok.. thanks! but one last question.. is the output the same if use the sql/oracle namespace with the odbc namespace but ...Show All

  • James CACN Table does not appear to update after UPDATE statement

    I am trying to update a table (asps) in MS access with the code below. However even though it complies and appears to execute, the table is not updated. Both ID and recID are double. I am working in ASP .NET C#. Any ideas Thanks private void Button1_Click( object sender, System.EventArgs e) { OleDbConnection conn = null ; conn = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source=C:\\Inetpub\\wwwroot\\WEB\\afterschoolprograms.mdb"); string strEditCommand = "UPDATE asps SET "; strEditCommand += " NAME = "; strEditCommand += " WHERE ID = "; using (OleDbCommand cmd = new OleDbCommand(strEditCommand, conn)) { cmd.Parameters.Add( ...Show All

  • rajeshbhaskaran Update using SQL Exp not working

    Hi I'm trying to update a database (sql express) with values, using a stored procedure and parameters (a fairly simple and straight forward request, or you'd think so!). Code to create parameters, etc set connection sproc //get provider name static string providerName = ConfigurationManager .ConnectionStrings[ "Dolphin.Properties.Settings.ConnectionString" ].ProviderName; //create instance of fatcory static DbProviderFactory factory = DbProviderFactories .GetFactory(providerName); //get connection string static string connectionString = ConfigurationManager .ConnectionStrings[ "Dolphin.Properties.Settings.ConnectionString" ].ConnectionString; public static bool Upda ...Show All

  • Kapil Aggarwal .NET encourages poor coding?

    The more I look at .NET error handling, and how to deal with it, the more frustrating it gets. Take this class for example.   It has a single boolean property.   You have to know on which side of the call an error will be raised… by the caller or the callee… well here’s a prime example.    Say you have to read data from somewhere like a text file and you cannot ensure the format of the data is proper.   Well, you cannot depend on a property to check that data for you if you strongly type the property. Read the orange comment to see what I mean, and please let me know how you deal with this situation since to me it appears to require horrible program design.     Public Class ...Show All

  • John Shiangoli Unable to cast object of type 'System.Runtime.Remoting.Identity' to type 'System.Runtime.Remoting.ServerIdentity'

    Hi, I am getting the following exception: Unable to cast object of type 'System.Runtime.Remoting.Identity' to type 'System.Runtime.Remoting.ServerIdentity') thrown when trying to access a remote object that has been created in a remote processes AppDomain. e.g. - Client remotes to a Well Known SAO (the 'broker' object). - Client requests the Uri of a 'service provider' object from the 'broker'. The 'broker' creates a new AppDomain and creates the 'service provider' object in this new AppDomain (using CreateInstanceAndUnwrap). The 'broker' then calls RemotingServices.Marshal for the 'service provider'. The 'broker calls RemotingServices.GetObjectUri for the new 'service provider' and returns it to the client. - Client remote ...Show All

  • pkv Generating sql query using C# code

    How do i generate sql query using my frontend windows application C# 2005. ie developer has to select table and columns from the list box. it should look like our add query in the sql express 2005. Thanks Arun hi, If you want to do programming by your self, you have to consider check the information_schema view to get information about SqlServer schema. You can pick up from that view the tables contained in the DB, the fields and characteristics of the fields of a specific table, etc. check this link if you are interested on using this view Sql Schema Hope this helps! Diego Rojas Excelsus     Hi, I guess you'll have to manually create your own sql ...Show All

95969798990123456789101112

©2008 Software Development Network

powered by phorum