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

Software Development Network >> .NET Development

.NET Development

New Question

pleas help me
Difficulties accessing DB2 through OLE DB from VB.NET
Instance of DataSet
Calling Javascript from VB.NET Web Applcation?
How to get number of rows?
Catching a .NET unhandled exception from another application ?
Detect Oracle user privileges
Problem wiht NetworkStream.EndRead and Network.BeginRead
Determining available TCP ports
Windbg / SOS Callstack

Top Answerers

Jonathan Stratford
Kevin Hoffman
Polina159216
M_J
Alex Luetjen
Ver Argulla Jr.
tgbt
Paul Gerald
D119
amendez
SmartUnit
Only Title

Answer Questions

  • Kama Remote Debugging of ASP.Net 2003 application

    I have been assigned to make a research on remote debugging using Visual Studio 2003. The scenario is that I have a web server over which an asp.net site is hosted, I have to perform the developments, debugging from another remote machine within same domain. Initially web server can contain the source code (.cs files etc) but does not have an IDE installed on server, the IDE is installed on the remote machine. Web server can have just .net framework installed in it.   So how can I develop and debug the asp.net application on server from remote machine                     well I got a little success and now I can make th ...Show All

  • Aspiff120 database don't update in Form_load

    How I make to in Form_load event appear my database with new INSERTs Below the code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data; using System.Data.OleDb; namespace waTr325 { public partial class frm325:Form { public frm325() { InitializeComponent(); } OleDbConnection _connection = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\bdDocTed3.mdb"); OleDbCommand OLE_select = new OleDbCommand("SELECT Valor, HoraInicio, Contato FROM tbl325"); private void frm325_Load(object sender, EventArgs e) { // TODO: Th ...Show All

  • Sanjeev K Purohit Embed author with code files

    I created a tool that creates the Business and Data layer based on the database design. And a few co-workers want to use it. I don't mind it, but I want my name in the code files so that if anyone else sees the code they will see my name as the creator. Kinda like a self-gratification thing and advertisement for job offers.   I'm using CodeDOM to create these files. Is there a way I can set my name to appear somehow, that they cannot delete it Or maybe some pattern I should employ on the creation. Maybe requiring a DLL instantiation by the IDE or something Anyone have any ideas, suggestions, thoughts, etc...   Thanks, Nick That's quite a different issue. Be sure to clai ...Show All

  • Ananda Ganesh OleDbDataAdapter.Fill doesnt fill primary keys into DataTable

    Hi, m_dbAdptrRemedies = new OleDbDataAdapter("", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + m_RemediesFilename); m_dbAdptrRemedies.SelectCommand.CommandText = "SELECT Nr, Name, Bezug, [Position], * FROM tListenListe ORDER BY [Position]"; table = new DataTable(); m_dbAdptrRemedies.Fill(table); Although Ive set a primary key for column "Nr" in MS Access the filled DataTable has no primary key set. Sure I could do it myself, but I want to find out if the SELECT command returns data with our without primary key, because there might be wrong tables that dont have it and this way wont allow to use a CommandBuilder for update lateron. (BTW: is it possible to ma ...Show All

  • OUPRO Is it a good idea to throw exceptions in constructors?

    Hello, Are there any pitfalls involved with throwing exceptions in constructors I use C# and VS2005. Many thanks, Ben I am currently experimenting with the using statement and throwing exceptions in a constructor and think the given answer is not fully correct. - class defintion above is not the way it should be done: finalizer/destructor missing - description not complete: if exception is thrown in constructor and object is in using list then the following appears to happen: using statement terminates before entering {} all objects created before exception occurred (in using list) are correctly "disposed" of object that's constructor threw exception is left in a created but no ...Show All

  • RAGOpoR async web method calls being 'lost'

    Hi, I am trying to prove the benefit of async calls to web methods over sync calls. I'm working in .NET 2.0/VS 2005. I have a desktop test app, looping round, and calling my web service thousands of times, e.g.: ... For i = 1 to 100 m_objService.TestCallAsync(myparams) m_objService.TestCallAsync(myparams) m_objService.TestCallAsync(myparams) m_objService.TestCallAsync(myparams) Next ... However, when i look at my service logs, only some of these calls have made it through to the service. When I run the same code synchrsonously (e.g. TestCall rather than TestCallAsync), i get the correct number of calls logged in my service. I assume that I am overloading my web service by firing off so many as ...Show All

  • Tall Dude Read text file with variable field widths

    I am using Visual Studio 2005 (VB.Net) to write my app. At some point the app. need to read a text file with data in columner format. The problem I have is that the columns are of variable width (not fixed). Is there a way that I can use white space characters to distinguise between different fields in a row The file is not comma or tab delimited, but it has spaces between fields. Spaces are present only between individual fields, never in the fields themselves. Below is a couple of lines from the file. 1 PH5 902.0 MG 2 T1ORE 1 ORE1 2000 ALL 0.300 1 PH5 902.0 HB% 7 WS101 101 WST1 2000 ALL 0.600 1 PH9 1172.0 FD% 4 WS101 101 WST1 2000 ALL 0.500 Thanks thanks, ...Show All

  • Gurpreet Singh Sawhney .net remoting

    I have 20 classes in data access layer which is writen in c# (.net 2005) i want to call all those classes in my client application. i want to use .net remoting for this application.I have insert a remoting code and its working fine with a single class. I dont know how to implement remoting in server side for several classes and how to call serveral classes in the client application. namespace CServer { class Program { static void Main( string [] args) { TcpChannel channel = new TcpChannel (8888); ChannelServices .RegisterChannel(channel, true ); RemotingConfiguration .RegisterWellKnownServiceType( typeof (WMSDataLayer. clsLine ), "HelloWorld" , WellKnownObjectMode .Singleton); ...Show All

  • Ritheesh 80070005 error

    hi all, i m trying to use photoshop CS c# api with microsoft visual studio, for this reason i entered Interop.Photoshop.dll and Interop.PhotoshopTypeLibrary.dll from "Property Pages"->"References"->"Add Reference"->"COM". Everything looks fine until this moment. But when i m trying to use the application class e.g. " ps. ApplicationClass app = new ps. ApplicationClass (); " (ps-> using ps = Photoshop; ) it throws me the error below: Server Error in '/' Application. oh. i found the solution in http://www.codeguru.com/forum/printthread.php t=383912&page=3&pp=15 In short: [...] I first opened DCOMCNFG from the command prompt, opened Component Servi ...Show All

  • tlc660 DCOM got error "RPC server unavailable"

    Hi, I got the above error on the client when I tried to invoke a COM+ enterprise service on the server. I checked the RPC service is started. I could ping the server with out issues. Any idea Can you post the code you are using to connect to the server hi, this is the code i am using to create the remote object. public static object CreateRemoteObject( string progID, string server) { Type remoteObjectType = Type .GetTypeFromProgID(progID, server); return Activator .CreateInstance(remoteObjectType); } Try going to the remote machine and seeing if RPC is being allowed through the firewall. I've had a lot of problems in the past where the firewall was getting in the wa ...Show All

  • Steve Graber Interop Callback, Returning an Array of Bytes (BYTE**)

    I am writing a .Net wrapper around a custom native dll for Windows. One of the interfaces to the custom native dll includes a callback routine. The callback routine includes a parameter that is a structure with an embedded BYTE** which is used to pass data back to the caller in the custom native dll. I have laid out the structure in the .Net wrapper using the 'StructLayout(LayoutKind.Explicit)' to get the structure members aligned correctly to what is passed in from the native dll. This works correctly. I am creating a buffer using System.Runtime.InteropServices.Marshal.AllocHGlobal. I am assigning the BYTE** to the buffer using the following code (unsafe)... byte** pmsgBuf = (byte**)sServ.msgBuf; byte* pBuf2 = (byte*)bufptr; *pmsgBuf = ...Show All

  • activitybuilder Invoking process under different user context

    hi, have one problem like below. i have developed an application "A" in .net which invokes another application "B". "A" is running under user account "U1". But i want app "B" must run under user account "U2". How can i achieve this in .NET Can anybody please help me regarding this any provisions given in System.Diagnostics namespace for this problem also i want to know (just bcoz curiosity) how this is being achieved before .net regards, Hi, Many Thanks for the response. Well, you could use the Process.Start overload that takes a usercode string and password secure string as parameters: http://msdn2.microsoft.com/en-us/library/sxf2saat.aspx or you could ...Show All

  • Leon94 XSD Primary Key Question

    I have an XSD that I'm using for my C# windows application and I have a primary key set, but for some reason when I try to do .Rows.Find("whatever") it says that there is no primary key set. I am using MSDatasetGenerator and visual studio 2005. I've also read that if I set a primary key I should be able to get .FindByPrimaryKey, but that is not the case either. Any help would be appreciated. Greg Read the explanations and the example given in the VS2005 help documentation: Mapping key XML Schema (XSD) Constraints to DataSet Constraints then do the same in your code, which you have not yet shown. Cheers, Dimitre Novatchev ...Show All

  • Fenggang HASHTABLE to store 2 different types in HASHTABLE collections

    I want to store each datarow in to each HashTable, how can I do that basically.>> datReader = sqlCmd.ExecuteReader(); int i = 0; System.Collections. Hashtable [] myHT = null ; while (datReader.Read()) { myHT = new System.Collections. Hashtable (); myHT .Add( "PKid" , datReader[ "SomeDataFromAColumn" ]); i+=1; } Also. Can I be able to store two diffent types (classes) into this Hashtable without GetHashCode(). like, Class1 object1 = new Class1(); Class2 object2 = new Class2(); myHT .Add( 1,object1); myHT .Add(2 ,object2); With generic Dictionary class or another generic class. Generic class is in System.Collections.Generics. For ...Show All

  • BarataMota .Net Framework 3.0 imcompatibility...

    I have on a local dev machine on XP pro SP2 (P4 Optiplex GX280 2GB ram, digital video FPD): .Net Frameworks 1.0, 1.1, 2.0, and 3.0 installed hosting IIS SQL Server 2000 (dev) VS 2003 sp1, and VS2005 sp1 My project that uses remoting for data communications had a Critial Failure: The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: .NET Runtime version 1.1.4322.2032- Setup Error: Failed to load resources from re ...Show All

192021222324252627282930313233343536

©2008 Software Development Network

powered by phorum