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

Software Development Network >> .NET Development

.NET Development

New Question

Silent Install of .NET Framework V3.0
ShowHelp Localisation Question
DataSet Merge Fails!!
How to catch "Common langauge runtime exceptions" --> "Thrown"
Compiling ASP.NET projects on x64
Could not find installable ISAM.
How to Save Data from XML File ?
Problems with Regex.IsMatch and IndexOf methods
Error using a managed c++ dll in a c# app
SQlBulkCopy fails with Timeout expired error.

Top Answerers

pisiiki
ron nash
IlCapo
cstrader
pravinarote
Douglas911
gssundar
Puffarbubbole
Anders Granåker
Larry30813217
Topix: Steel
Only Title

Answer Questions

  • Manoj Verma ODBC TableAdapter Updating

    Hi, I have searched high and low to find an example to solve my problem. I use ODBC to connect to MySQL database, or any other for that matter, the application has no real call for Datasets/adapters till now so I have not used them. I now need to load an image into a blob field so using Commands and readers do not hack it. Try as I might, and I have tried, I can not see how using dataset/tableadapters etc I can add a record to a table let alone stream into a blob field the image. Any help would be welcome. Paul P Clement IV wrote: You may want to consider using the MySQL .NET provider instead. In any event, the link below should help: 23.2.5.4. Handling BLOB Data With Connector/NET Excellent for the problem I am ha ...Show All

  • Jerod Moemeka Solution problems when developing on multiple machines

    hi, I have an ASP / C# .NET2.0 web project that I manually check into & out of VSS on to a primary development system running Visual Studio 2005 Pro. It all works fine. But how can I check that solution out to a different machine The .sln file has hard-coded path and GUID info, so tightly bound to its host machine. No way it belongs on any other machine. There doesn't seem to be a 'create project from source' for ASP projects...am I stuck with having to create a new ASP web project & copy my sources over thanks for any help & have a nice holoday weekend:) See these references about .NET 1.x and team development to see if they apply to .NET 2.0: http://www.mztools.com/resources_net_developers.h ...Show All

  • Andrew Crowder Get the type of exception

    Hello guys I just want to retrieve the type of exception my application does, and depends on that "do something", but how can I evaluate that example: If this type of exception do this etc... if system.IO.FileNotFoundException then do this: I know that the variable ( ex as Exception) have the type of exception, "i read its type", but first how can i retreve it & keep it in some kind of variable and then compare & do some action Thanks Help will be appreciated ex.getType should get the System.Type of the object. ex.GetType.Name would return the System.String that is the name o fthe System.Type. You can also use TypeOf in an If statement to see if ...Show All

  • K. Ravinder Reddy Question about reading in attributes

    Hi all, I have a question concerning the use of attributes. I have a base class with attributes and a class which inherits from the base class with additional attributes. When I read in the attributes of the inherited class through reflection, the attributes of the inherited class are always read first while the attributes of the base class are read last. Since the order is important to me, is there a way to force the program to read the attribute in the base class first I hope I stated my question clearly. Thanks ahead of any help or recommendation. David Thank you Michael for the recommendation. I think I would have to use the algorithm mentioned to manually enforce the order. I was hoping ther ...Show All

  • xavier.oudin Does format file for bulk insert allow mix of native and character format?

    I have a module which require me to import big amount of data. I believe that the native format data files with format files will be the most efficient way of implementation. The problem arises when I need to import datetime and decimal(numeric) fields because I don't know their internal format or how to convert to this format from strings or CLR datatypes. So if the answer to above question is positive I can partially resolve the problem, if negative I will have to use the character format. Unless you can educate me on the convertion to the SQL server internal formats of datetimes and decimals from the CLR types. I am trying to programmatically produce a BCP like exported files of native format(it means without type conve ...Show All

  • averge joe Why doesn't my C# form show the contents of the database?

    Hi All, I'm using VC2005 in C# trying to create a windows app that displays the contents of the tutorial northwind.mdb. I've followed the tutorials and created a dataset and dragged the customers column onto the form and it all compiles and runs fine but none of the elements on the form get filled in with the contents of the database, also the BindingNavigator has no items to navigate. What am I doing wrong and how do you make the app automatically load in the northwind database and display the contents on the form Actually I just talked to the Jet PM and they are looking at somehow providing a 64-bit version of Jet provider (they are deciding if they are going to do this or not at this point at least). If I hear any ...Show All

  • Pirooz Javan (Old) What did I do wrong (Getschema method in SQLServerCE)?

    I have a problem with the Getschema method in the SQLServerCe namespace - I am fairly new in C# so I may have overlooked something. My problem is that I have only the C# Express edition (I don't have the mobile projects) so I am "forced" to make my own viewer for my SQL Compact databases (.sdf) as I can't use SQL server Management Studio Express for these files. However, when I use the Getschema() method in the corresponding namespace it seems to not work. This is the code I used: string connstring = @"Data Source=c:\!studiec#\betatest.sdf" ; SqlCeConnection myconn = new SqlCeConnection (@connstring); myconn.Open(); DataTable mytable = myconn.GetSchema(); I get the error "Spe ...Show All

  • Kyle Anderson winsock

    i am trying to make a winsock server with c# and i need to know how to send a mcisendsting to the server from the client i have know clue how to do this you are better off using the proper methods of TCP communication via the System.Net namespace and the Socket/TCPClient/TCPListener classes and using the networkstream to send data too! http://msdn2.microsoft.com/en-us/library/system.net.sockets.socket.aspx http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx http://msdn2.microsoft.com/en-us/library/system.net.sockets.networkstream.aspx i have just all most completed my program so far it auto Listens and excepts conn ...Show All

  • MacKenzieMi How to decode chunked transfer encoding using HttpWebResponse

    Hello All, I'm calling a cgi script that returns a zipped file using the HttpWebRequest class. The web server sends chunked response. Response captured in Fiddler: HTTP/1.1 200 ok Date: Thu, 30 Nov 2006 10:09:47 GMT Server: Apache Set-Cookie: sessionID=1164881387; path=/; expires=Thu, 30-Nov-2006 15:09:47 GMT Transfer-Encoding: chunked Content-Type: text/xml; charset=ISO-8859-1 c13 PK Here's how i process the response byte[] data; response = request.GetResponse() as HttpWebResponse; responseStream = response.GetResponseStream(); reader = new StreamReader(responseStream, Encoding.UTF8); data = Encoding.UTF8.GetBytes(reader.ReadToEnd()); This returns me only the first chunk. How do I read the remaining data thanks, Siwi ...Show All

  • Giugio Creating a new website in Visual Studio 2005.

    When I create a new website in Visual Studio 2005, VS2005 always puts my solution file in C:\Documents and Settings\my_login_name\My Documents\Visual Studio 2005\Projects\my_project_name. Is there a way to customize this behavior and to have it ask me where I want my solution file is instead of always putting it in the default location Then the rest of my file are always put in C:\inetpub\wwwroot\my_project_name. This is again, not the location where I want to put the files. I want the solution file and the rest of the files in one location of my choice arbitrarily in my C: drive, then have a virtual directory in IIS pointing to the location. Are there any ways to change these behaviors It is irritating. ...Show All

  • programmer01 BufferedGraphicsContext cannot be disposed of because a buffer operation is currently in progress.

    hi , I displayed the image on the picturebox. I used to incerase the width and height of picturebox, and sisplayed the image. when the width of picture box becomes 17550. Can anyone help me to ,in finding a solution to this. Runtime exception is thrown, the details are given below. " at System.Drawing.BufferedGraphicsContext.Dispose(Boolean disposing)\r\n at System.Drawing.BufferedGraphicsContext.Dispose()\r\n at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle)\r\n at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle)\r\n at System.Windows.Forms.Control.WmPaint(Message& m)\r\n at System.W ...Show All

  • Joe Albahari .NET remoting rookie. Need HELP! Unhandled Exception

    Hi, I'm just getting into .NET remoting. I've got my rmotable type,, the listener/server and the client. No compile errors, but i get this run error Unhandled Exception: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it Server stack trace: at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddre ss socketAddress) at System.Net.Sockets.Socket.Connect(EndPoint remoteEP) at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket(EndPoint ipEndPoint) at System.Runtime.Remoting.Channels.RemoteConnection.CreateNewSocket() at System.Runtime.Remoting.Channels.SocketCache.GetSocket(String machinePortA ndSid, Boolean openNew) at System.Runtime.Remoting ...Show All

  • Suresh S Not able to use remote config file.

    I am able to use the Activator.GetObject but not the remote config file SampleObject adServer = (SampleObject)Activator.GetObject(typeof(SampleObject), "tcp://teamsuite:1234/SampleObject"); I created a separate config file and loading that in the global.asax file via void Application_Start(object sender, EventArgs e) { //System.Runtime.Remoting.RemotingConfiguration.Configure(HttpContext.Current.Server.MapPath("Client.exe.config"), false); } The config file is: < xml version="1.0" encoding="utf-8" > <configuration> <system.runtime.remoting> <application name="HelloLibrary"> <client> <wellknown type="HelloLibrary.SampleObject ...Show All

  • ronwest99 WebService - Passing page as a byref parameter

    As far as I could tell this is the best forum...apologies if it isn't. It is our task to dynamically change label and link texts on web pages based on login info. We must do this for several hundred pages every time they load. It seems a web service would be the most centralized method of accomplishing this, unless there's a tweak for global.aspx. The method I would like to use is to pass the page into the service by reference, change the texts inside the service, then return the page. My question is, how can I pass an aspx page by reference into a web service (or accomplish anything similar) If I need to elaborate more please let me know. Sadly enough I am too new to adequately answer that qu ...Show All

  • kayers No row at position 0.

    I am trying to show/hide a control based on the value of a boolean DB field with the code below: Dim dsAdmin As New DataSet Try DBCon.ConnectionString = csWBoard DBCon.Open() userAdpt.SelectCommand = New OleDbCommand _ ( "SELECT admin FROM [User] WHERE (userID = '" & userName & "')" , DBCon) userAdpt.Fill(dsAdmin, "User" ) If dsAdmin.Tables( "User" ).Rows(0).Item( "admin" ) = True Then mnuAdmin.Visible = False Else mnuAdmin.Visible = True End If DBCon.Close() DBCon.Dispose() Catch ex As Exception MsgBox(ex.Message) End Try The field is of type Yes/No in my MS Access DB and the format property ...Show All

343536373839404142434445464748495051

©2008 Software Development Network

powered by phorum