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

Software Development Network >> .NET Development

.NET Development

New Question

WebService Error --- Object reference not set to an instance of an object
DllImport Issue
Partial File Downloading
VB and SNMP
Encoding a MailMessage to Spanish (latin_1)
Parameter in aggregate function
Web Services v/s .NET Remoting
Get Hardware Detail from Drive Letter
Incorrect syntax near '='.
.NET Web Services Client "underlying connection was closed"

Top Answerers

Cesar Francisco
AmpLiF1eD
iccle
IgorP
chionhhm
sGurpreet
KedarP
sic0198
JasonG271009
Johanvh
sitemap
Only Title

Answer Questions

  • ctxcrossx Critical bug in Microsoft.Win32 class RegistryKey

    There is a critical bug in a .NET class RegistryKey. The class/methods should be able to write DWORD values (max ff ff ff ff), but it is only able to write ff ff ff and breaks with ArgumentException when ff ff ff ff is used (which is actually a normal max DWORD value). It can't even read a max value once it has already been into registry. Could you post the code you are using because I have no problems creating DWORD values of the value you specified. int nValue = - 1 ; //0xFFFFFFFF key.SetValue( "Test" , nValue); int nNewValue = Convert .ToInt32(key.GetValue( "Test" )); //Ditto You should be aware that any type other than an int will be written as a string value. If ...Show All

  • Jay Thomas Problems receiving packets from socket

    Hello! I'm new in this forum and in this awesome programming language. I came from Java and I'm actually doing a speed learning in C#. We actually have a single problem that it drives us crazy. We are connecting a serial old device in a TCP/IP terminal server (with a special RJ45-RS232 cable). In fact, the device receives the petitions from the client and sends them the requests to its sender. The device, I said, is and old device that sends the values of patient parameters that we ask it to send. We, then, create a Socket from our computer to the terminal server (is a Lantronix Multiport device server) and make the process of connect to the device, ask the parameters and configure which parameters we want to receive and it starts to send ...Show All

  • JulianRidley Microsoft.ApplicationBlocks.Data.SqlHelper.cs

    We are using "Microsoft Data Application Block" and stored procedures. I saw the using of that block is handy, but I have recognized that...before it calls the stored procedure to retrieve the data... it greps the stored procedure's parameter information from database. It does not uses the parameters I passes. for example, ---------------------------------------------------- CREATE PROCEDURE SP_TEST (    @userid int ) select fullname from client where userid=@userid ---------------------------------------------------- when I pass the WRONG parameters information like.. SqlParameter p = new SqlParameter("@userid", SqlDbType.NVarchar, 700); Microsoft data block actually replaces them with Sq ...Show All

  • ledwinka Sharing wizard-created datasets in a solution

    Hi there, I've created a solution that has multiple projects in it.These multiple projects compiles to become .dll dependency files that is used by my application. I've then used the datasource wizard (vs2005) to convert a large access database to a SQL Express dataset, and placed in under my main application. I have been doing work on it for many months now. All was well until I realize that I need to use some of the tables from that dataset in those dependency dlls as well. However as they are under a different project (or namespace ) , I can't seem to use them. 1. Is there a way we can share the dataset between projects which is in the same solution I tried copying the same dataset into another project and it came up with al ...Show All

  • Omar Fawzi Reflecting Child Objects

    I am getting a MissingMethodException when trying to use reflection to get data from a child object. What am I missing Here are my classes: public class classA { public classB B = new classB (); } public class classB { public int x = 10; } And the code: classA a = new classA (); object ret = a.GetType().InvokeMember( "B.x" , BindingFlags .GetProperty | BindingFlags .GetField, null , a, null ); Oops... nobugz is right, I missunderstood the question , sorry. The name of the field is "x", you don't need to put a B. in front of it. B is known since you are doing InvokeMember on the type of B. object ...Show All

  • Webbert Problem in GZipStream Class

    Hi All, I want to compress some data and send it to a web service as string and decompress it there and use it. I use GZipStream class for this and i'm getting an error "The magic number in GZip header is not correct. Make sure you are passing in a GZip stream" when i try to read from the stream. However i dont get this error when i send the stream as byte array.The problem comes only when i convert the compressed stream to string and try to read it (decompress it). Here is the code public static string Compress( string data) { byte [] buffer = Encoding .ASCII.GetBytes(data); MemoryStream ms = new MemoryStream (); GZipStream compressedZipStream = new GZipStream (ms, CompressionMo ...Show All

  • Raguvind primarykey problem

    hey there, this is my code making a dataset Public Class Form2 Dim verkoop As DataSet = New DataSet( "Verkoop" ) Dim verkoper As DataTable = verkoop.Tables.Add( "Verkoper" ) Dim IndexKolom As DataColumn Private Sub Form2_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load 'verkoper.Columns.Add("Id", datatype(gettype as string)) With verkoper With .Columns .Add( "Id" ).DataType = GetType (Guid) .Add( "Naam" ).DataType = GetType ( String ) .Add( "Straat" ).DataType = GetType ( String ) .Add( "Nr" ).DataType = GetType ( String ) .Add( "Postcode" ) ...Show All

  • Nikhil Vaghela Installation of .Net 2.0 Caused Business Contact Mgr Error

    I needed to install Microsoft .Net Framework 2.0 in order to install the Microsoft Web Expressions. (per Microsoft's instructions) After the installation, my pc constantly would have a message appear saying "Business Contact Manager has encountered a problem and needs to close". This message appears even without any program opened. If I open Outlook 2003, I can't do anything except see this message. I uninstalled .Net Framework 2.0 and my pc is back to normal but I want to begin working with Web Expressions. Any suggestions would be greatly appreciated!! Can you provide how you obtained .NET Framework 2.0 Can you look at the %temp%\dd*log and see if there are any errors in those log ...Show All

  • JimJalinsky Problem licensing Class Library

    Hello all! Here is my problem, I am trying to license a class library so that other developers need a license to be able to code with it. I have found how to do so for controls by using the LicenseProvider. I've even made my own custom licenseprovider class so that I don't need to use the basic text license file and to use my own validation method. The problem with this is that "context.usagemode" always returns designtime for a class library which means the license is only validated at runtime which is not what I need, I need to validate at design time. Any help on this would be greatly appreciated. Thank you. I moved to .NET Base Class Library where you can get satisfying answers. ...Show All

  • alpha202ej How can i kill the processes which are not on the task manager

    Hi to all... I want to kill a proccess.Normally i do this by; Dim prs As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcesses Dim i As Integer = 0 While i < prs.Length prs(i).Kill() System.Math.Min(System.Threading.Interlocked.Increment(i), i - 1) End While and this works fine... But some procceses that i can not see by TASKMANAGER but by procexp.exe (which show system internals) programm shows some other processes which are running.. I want to kill some processes which are listed in this list... The method above only look for the processes which are listen in the Task Manager. How can we do this as a conclusion;I want to kill any proccess or thr ...Show All

  • Bwilhite Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'

    I did a quick search around this forum and around the web but I can't find any helpful information regarding this problem.  Currently, I am running a site on asp.net 2.0 within a shared hosting location.  Their SQL backend is 2000.  I managed to create the db via aspnet_regsql, and then upload the aspnetdb and set provider stuff to the correct bits of information, however when I try any query, like logging in, it doesnt work, and get the error could not find stored procedure...  I checked, and the procedure does exist.  Everything is set up as it should be, schema and all.  Any ideas   I used Scott Guthries blog on how to use asp.net authentication on SQL 2000, and that worked without any problems. ...Show All

  • Jason Callas Download a file from http

    Hi, I have a question about how to download a file on the background from http using C# 2005 I tried the follwing code for example: using System; using System.Collections.Generic; using System.Text; using System.Net; namespace Web_Client_test { class Program { static void Main( string [] args) { string file = "tutorial.rar" ; Console .WriteLine( "Downloading file: {0}" , file); WebClient myClient = new WebClient (); myClient.DownloadFile( "http://users.telenet.be/RT-Adventures/tutorials/" , file); Console .WriteLine( "Download Completed" ); Console .ReadLine(); } } } And this goes well. But if I go to the directory of the exe, and start the RAR. WinRAR says: "This archive is either in unknown ...Show All

  • AndyL Null is returned for GetManifestResourceStream

    I posted this in the web services and XML serialization group first, because I thought someone may have seen the error in relation to web services with types that implement IXmlSerializable. However, upon further reflection I believe the issue is really a Reflection issue (pun intended). The link to the original post (including example code) is: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=470391&SiteID=1 The scenario simply put is that I'm attempting to retrieve an embedded resource from a DLL referenced by a web service. The embedded resource is the XML schema used for serialization of the custom types. The problem is that the call to GetManifestResourceStream returns a null reference when used in the scope of a web se ...Show All

  • pimmy21 DllNotFoundException- path problems

    Hello all, I've got a project that pinvokes an unmanaged DLL and everything runs smoothly with it. The problem begins when I publish the project and install it on a different computer- I get the DllNotFoundException when it's being called, and the oddest thing is that the message says the dll wasn't found on the project's bin\debug path. The problem is that I wish to have the dll on the application startup path, but cannot use Application.StartupPath within the DllImport Attribute, since it takes only consts. Does anyone know why does the application search for the dll in the bin\debug folder Is there anyway to change this (I've tried adding the app startup path to the environment path, didn't work) Or better yet, is there a way of using t ...Show All

  • .net sukbir Possible to register a C# program to the R.O.T. for OLE automation?

    Hi all, I was wondering if it was possible to "register" your own created c# program for OLE automation This would be the equivalent of accessing something in Excel via OLE. Like: Dim ExcelApp As Object ExcelApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application") Edit: and just to clarify, I understand how the GetActiveObject works (by looking up the object in the Running Object Table). I guess I need to know if it is possible to register a program with the Running Object Table. ah, excellent. Well, it registered the class, but the interface isn't showing any methods. Ok, now I've got it showing the methods within the interface. Now I just need to know how to use them. ...Show All

111213141516171819202122232425262728

©2008 Software Development Network

powered by phorum