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

Software Development Network >> .NET Development

.NET Development

New Question

Database insert problem
Formview insert command refuses to work.
Formatting problem with layout.
Want to use twain duplex scanner with .net
How can I remove ASPNET account when it is not used
Time scheduling datatype: Schedule, Duration
Custom SoapFilter for WSE 3
Which class I should use in communication?
XML socket problem? (C#)
Please help....... Not sure w

Top Answerers

Bishnupada Mukhopadhyay
Jouni79
mathewk_03
SisMng
chris27uk
SoopahMan
John.Q.Francis
Simulacrum
DongMT
pmanisekaran
Networks Now Llc
Only Title

Answer Questions

  • furjaw BinaryWriter - Dynamic cast

    Hi, I am new to C# and I don't know how to cast dynamically an object to a specific type . I have the object and its type (as a Type object). For example, I read some data from a query (which has been created dynamically) and get a list of objects and theirs types (string, Int64, DateTime...). Now I need to put them into a BinaryWrite. Is there any way of dynamically define which Write method to call I don't want to have a BIG switch to test each possible Type. I would like to have something similar to that: Object obj = new Object(); \\ it comes from a datareader... let's assume it is a string objBinaryWriter.Write(obj as obj.GetType()); Thanks in advance objBinaryWriter.Write(obj as obj.GetType()) ...Show All

  • MuniHemadriBabu.Jogi Retrieve infroamtion from database usin web service

    <WebMethod()> _ Public Function HelloWorld() As String Return "Hello World" End Function .this web service will return the word hello world .now what i wanna do is to return information from my database .how to i go about it cos i donnoe what i should declare my database by...should it be string , int or whatever it is i tried everythinh and there always an error .btw my database is named as PanHotel.mdf how do i do tat use an oledbconnection and oledbadapter to connect and fetch data from your database file. ...Show All

  • jon4paz trouble installing the .net framework 2.0

    when I try to install the .net framework 2.0 I get a message saying"Error creating process <C:\DOCUME~1\"username"\LOCALS~1\Temp\IXP000.TMP\Install.exe> Reason: C:\WINDOWS\system32\advpack.dll" I've tried all the ways mentioned on the forum so far and I keep getting the same error. that is correct my friend, you need Visual Studio to do your coding, and .NET Framework to be installed in order to run/compile programs, which currently has been done. You should be ok for your class to do this, not requiring the 64bit version of the framework anyway, unless its a requirement, in which case you would need a 64bit OS unfortunately. I think that should be it, can you open, create, compile and run .N ...Show All

  • XNA Rockstar Problem with Reading Multi Page Tiff File

    Hi I am trying to read a multi page Tif file containing 20 pages from one place and storing it in to different location. But only one page of the tif file is saving to the destination location... while saving remaining pages not creating. I have tried both WebRequest Class & File Stream Class . Code WebRequest request = WebRequest.Create(" http://localhost/TiffSamples/temp128.tif "); request.Credentials = CredentialCache.DefaultCredentials; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream dataStream = response.GetResponseStream(); System.Drawing.Image img = System.Drawing.Image.FromStream(dataStream); img.Save(@"d:/temp.tif&q ...Show All

  • LSStudio generic DictionaryBase

    In .NET 1.1 there is the DictionaryBase to derive from for own Dictionray classes. What class would I derive from in .NET 2.0 if I where to write a custom generic Dictionary<TKey,TValue> Is there a Generic Base class that adds the basic Dictionary functionality like Dictionarybase does Dictionary<TKey, TValue> is not sealed, so you can inherit directly from it. I have thought about this too, but most members are not virtual, hence extending the functionalitly is not possible. For example I couldn't introduce some exrta functionality whenever an item gets added to the dictionary since the Add method is not virtual and there is no protected OnInsert like in DistributedBase. So unfortunately I guess I will have ...Show All

  • jainvikr2 .NET FRAMEWORK 2.0 (C#) PROBLEM ???

    1. I have installed .NET Framework 2.0 on my Windows XP system. 2. I do not use any special tool to compile my projects; i just use CSC 3. When i first install the framework everything works fine , csc works fine, xsd works fine; after a few command line compiles and an undefined ammount of time , a lot of tools stop working ; for example : XSD, RESXGEN and others; they issue a ".NET Framework initialization error" "Unable to find a version of the runtime to run this application" . Incredible, ... , a few moments ago everything worked fine and now xsd and and lot's of other .NET framework tools stop working ... Also , let's say i compile a project with csc and everything works fine; if i restart the pc and execute the p ...Show All

  • bensterdev Windows Services and COM interop

    Here is what I am trying to do: I have a very simple test DLL that has one operation called 'Get_Stuff(String)' this simply returns a string with some hard coded text. This works fine if I create a windows app in VB and then call the operation on the DLL, so I know the code is right. However, if I create a Windows service (again in VB) and use the same code I get an error. I've set the service to run under my login rather than local system because the DLL needs to access network drives. The error I get is:  Error: 429, Cannot create ActiveX component. As I say, identical code works fine as a normal windows app so does anyone know what is going on here As I understand it the service will still be running in a dif ...Show All

  • jianghongtu HttpWebRequest Date Header inclusion problem

    I am using HTTP Web Request. It generally works fine, but I cannot set the date Header. If I try to set the Header manually, I get the error; "This header must be modified using the appropriate property." The help files state the date header is set by the system but I cannot work out how to trigger its inclusion. The end result is a POST request with no date Header Thanks in advance The current implementation doesn't allow you to add this header to the request. We will consider removing this restriction for the next release of the product. Sorry, Edmund, for misspelling the name No Date Header was present in my tests ...Show All

  • myoungbl Required field in a Web Service

    Hi, I have created a web service with a webMethod like this : ... public Test InsertTest ( Param param ) ... ... public class Param { [ XmlElement ( "PartNumber" )] public String PartNumber; This field should be mandatory when I generated my WSDL file. But I don't know how to do that. Thank you Hi, Change your code for this: public Test InsertTest ( Param param ) ... ... public class Param { [ XmlElement ( "PartNumber", IsNullable=false )] public String PartNumber; Regards, Pablo. You do not need to delete the minOccurs and maxOccurs attributes from the element declaration to make sure that th ...Show All

  • Fernando Tubio Compiler Error Message: BC2017: could not find library

    Hope this is the right forum. I keep getting the following message when trying to browse to the website I am building. Ayone have any ideas as to how to resolve this BC2017: could not find library 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\6acb8b87\f5bfb61a\App_Web_a8shcvd0.dll' I checked the path and on my machine and there is no root directory it goes this far only C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ and the file ' App_Web_a8shcvd0.dll' does not exist anywhere in the Microsoft.net directory. The right forum would actually be at http://forums.asp.net ...Show All

  • Junmei if data exists in table A delete it from table B (newbie question)

    hi everyone, My problem seems to be an easy one but I still couldn't work it out...I have been using SQL express and VB express,and I am new to both... my problem is i have 2 different tables table Incoming and table Outgoing .They have the same column (Mat_id) and mat_id is the primary key in the both tables. In case I want to add data to Incoming table,first i want check if the data exists in both tables,if it exists in Incoming I have to write error message(it will automatically give an error message because it is primary key) but if also exists in Outgoing table I have to delete it from Outgoing table... How can i do it using VB.net using datareader or some other way thanks, Can ...Show All

  • Juliano.net Help with TripleDES and RC2 cryptography.

    I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All

  • Henry Stapp excel odbc insert problem

    I am building a program in C# that combines several different excel files into one excel file with several sheets. The excel driver does not support batch queries, so I must insert into the new sheet line by line. The problem that I am running into is that I have one sheet that fails to allow the insert after a number of them have already been inserted. my error is- System.Data.Odbc.OdbcException: ERROR:[HY001] [Microsoft][ODBC Excel Driver] Cannot open any more tables. I know it is not the connections, I know it is not the amount of data being inserted into the table. Previous insert statments that are almost identical work, and it consistently fails on the same records, but if you try the same record more than once it will often work. ...Show All

  • merwy Arrow keys problem in Framework 2.0

    Why a CLR programm don't handled a arrow keys (Left,Right,Up,Down) All others keys handled but this four not. New information about this problem: 1.Method IsInputKey for key Right and others arroe keys always return false; 2. If you set MdiContainer for main form is true, arrow keys for this form not working. 3. UpKey handler working,but KeyDown is not; 4. In help says what arrow keys is support always, but really is not. 5. Resume: this is BUG. .NET 2.0 handles arrows keys!, did you try keyup and keydown Ok,I'm check a keup handler and have positive results now. Thank you. ...Show All

  • Richard G.H.Lin System.net.Webexception

    Hi All, I am in serious trouble. We have a desktop Application that was originally developed in C#.NET 2003 and then upgraded to VS 2005 an year ago. This desktop application accesses its Oracle Database through some webservices also written in .Net 2003 and upgraded to VS 2005 later. Real Problem:- End users of this application takes out excel reports (apart from a loads of other things). They have 14 reports which they can take out from this. Out of these 14 reports one of them gives error in production and when I run the same code in development then it runs fine. This is the error that I get in Production:- The following exception has occured: System.Reflection.TargetInvocation. Exception has been thrown by t ...Show All

313233343536373839404142434445464748

©2008 Software Development Network

powered by phorum