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

Software Development Network >> .NET Development

.NET Development

New Question

Adding an item to the dropdown list inside a datagrid populated by DataSet
Very Strange Error coming from .NET Framework/Runtime
How to get the next page from here?
string.empty vs " "
OLEDB Excel provider - select data from the first sheet
Decimal - trig and power support for System.Decimal?
Serialized file corrupted aftert TCP file transfer
problem with WCF and APP.config
AppDomain.AssemblyResolve and throwOnError
remoting sample

Top Answerers

fozgirl
jpeng
Aseem Chiplonkar
Suraj Guptha
DCollins
Ben - ECM
A.Kahn
Jb4e
Bagles1
GraemeE
sitemap
Only Title

Answer Questions

  • TRACEYMS Help me plz!!! if i have file containing Hexadecimal in it......

    if i have a file saved as .txt or .bin in my hard disk...through filing i have to read that file ..the file contain hexadecimal in it such as 1a 2a 3c 14 12 4d................. now i have read these hexadecimal from file and to put them in array .of integers......means ......if i take int [] array = new int [10]; then hexa decimal should be like.....array[0] = 1a; .array[1] = 2a; like this every hexa should sit on one postion of array ...thx u plz help me Hi Mayby this help you. FileStream stream = new FileStream ( @"..\..\HexFile.txt" , FileMode .Open); StreamReader reader = new StreamReader (stream); string [] strings = reader.ReadToEnd().Split( new char []{ ' ' }); int [] numbers = ne ...Show All

  • OmegaMan IEnumerator Problem

    Hi Guys, I'm trying to work on this code. A source from http://blogs.msdn.com/sqlclr/archive/2005/05/20/420623.aspx I'm having error on IEnumerable. Error: Cannot find the type IEnumerator, because it does not exist or you do not have permission. using System; using System.Data; using System.Data.Sql; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; using System.IO; using System.Collections; using System.Security.Principal; namespace SqlServerProject1CSharp { // The record that holds each row returned by the TVF. public class FileRecord { public FileStream fContents; public string fName; public FileRecord(string fn, FileStream fc) { this.fName = fn; this.fContents = fc; } } public class MultiFileAccess { publ ...Show All

  • levsha Using a SQL Database to authenticate users

    I am converting a MySQL database over to MsSQL and I'm having problems migrating my user authentication. I'm using Visual Web Studio Express 2005, but the Website is not locally hosted, so using the ASP.NET management seems to be unavailable. The specifc error is: The ConnectionString property has not been initialized. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized. The connection to the database is made in my web.config file: < add key = " database &qu ...Show All

  • Zapp Control the XML using HTTP POST NOT SOAP??

    Hi: I'm trying to learn how to send a specified chunk of XML to a Web Service (.asmx) page and then have that page return a specified response chunk of XML. My spec is to use HTTP POST, not SOAP so I'm stuck with that. I can't figure out how to tell what exactly the client is sending me (how do I debug with a client sending specific XML using HTTP POST) The client I'm using currently is just a straight .htm page with a form in it. The action statement of the form is the URL with a /<methodName>. How can I see what the .asmx page sees When I return a chunk of XML, the .NET Web Service first reformats it as a string that's usable within XML (ie. > = & gt;) and then wraps it in a valid XML string tag. I have a specific D ...Show All

  • simon burgess Accessing a Web Service over a LAN

    Hi all, I need to set up a web server for a game environment over LAN where the webserver will store a list of available games. A client will be able to choose a game from the list and connect to the game directly using sockets (bypassing the webserver). i.e all the webserver is doing is informing the client side app which computers it can connect to. I've written a test web service stored on my hard drive (also in IIS) which i can access locally from my machine (http ://localhost/Test/Service.asmx). I've added my serverInterface (wsdl.exe) to the webservice class and also my proxy class for my client and all works perfectly. My problem now is how can I publish this web service over the LAN so that i can acce ...Show All

  • Nikhil - MSFT Visual Basic 2005 passing parameter to Oracle SQL

    Hi, I am using VS 2005, Oracle 9i, and have a question on passing a parameter to the query defined in a DataSet. All the examples I've seen use the use this syntax “ Select * From Customer Where CustomerId = @CustID” The problem I’m having is – I get an error on the @CustID. The SQL generator puts Quotes around it making it worthless. How do I do this Thanks VERY much, Carl Did you add the WHERE LASTNAME = @LastNameParam To execute this query you will need a value for the @LastNameParam parameter. -- SvenC can you show the code you have For images it might be possible to use an image host like esnips.com or imageShack.us or alike. You could tha ...Show All

  • pdavis68 Trying to learn website design

    Hello Ladies & Gentlemen! I would love to be able to make a website to include pictures....could someone please tell me the requirements that i need to get started... I am a complete novice so please if you reply be gentle with me! Regards Thanks Amit....any ideas where to get it mate! Thanks Amit....have just bought it on Amazon This forum is related to .Net networking issues. I would try a book like "Web Design in a Nutshell ". -Amit You can grab it from any technical bookstore or online booksite. ...Show All

  • shahidferoz Zero a volume

    I need to prewrite a volume attached to the windows host. In other words, I need to zero the entire volume. Is the best way to do this - open file, set a buffer full of zeroes, write it to the disk, move file pointer and so on Or is there an easy way to do this in .NET What I'm trying to accomplish is actually sort of format the volume, but for optimizing performance. I'd like all pages on my disk to be written to gain better read performance. I assume you need to do this to remove any trace of prior sensitive data left on the disk. This requires very low level access to the disk driver, probably at kernel level. Good thing too, the virus writers would have a ...Show All

  • parking DataSet serialization problem through remoting (VS2005 release)

    Hello, I have a problem with a client/server application using remoting (TCP channel on the same host) and DataSet. The server loads successfully an xml file using a typed DataSet (built by xml schema designer and MSDataSetGenerator), it also writes data back to the xml file without any problem. Everything seems to work fine on the server side. But, when the client tries to get the DataSet via remoting I get an exception: -  $exception {System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.DataException: Invalid 'Key' node inside constraint named: ErrorStatistics_Event.    at System.Data.XSDSchema.HandleKeyref(XmlSchemaKeyref keyref) ...Show All

  • tamasu how can we cahce a dataset on the hard drive as we do for asp.net pages

    Hi, in windows form applications, I don t want to declare a dataset as public and keep it in memory. I want to cache on the hard disk. How can I do that pls is there any other better practice and more performant way to do this Thank you A really simple approach is to use the ReadXml and WriteXml methods on the DataSet object, which let you save a DataSet to a file. Let's assume the DataSet is called "ds", saving and reading it from the harddrive is as simple as: ds.WriteXml("MyCachedFilename.xml", XmlWriteMode.WriteSchema); ds.ReadXml("MyCachedFilename.xml", XmlReadMode.ReadSchema); Regards, Dave thank you Well yes, it does add some overhead in the persistance proce ...Show All

  • neversaynever .NET remoting and authentication

    I'm trying to use the System.Runtime.Remoting.Channels.IAuthorizeRemotingConnection on the server to authenticate the client...BUT i would like to use some sort of custom authentication....preferably a username and password sent with CallContext.setdata. well if i set anything on the client with CallContext i don't get anything on the server side. plus the identity that i get on the server side using System.Runtime.Remoting.Channels.IAuthorizeRemotingConnection. IsConnectingIdentityAuthorized is always the username that the client application is running on...can't seem to make it use a custom identity or anything. so my question is....is THERE any way to send custom data on the beginning so that i only h ...Show All

  • bkohler IntersectClip Method vs Clip Property?

    Is there any difference between: System.Drawing. Region ClipRegion = new System.Drawing. Region (pGraphParams.m_rInnerRectangle); glLayer.LayerGraphics.Clip = ClipRegion; and glLayer.LayerGraphics.IntersectClip(pGraphParams.m_rInnerRectangle); For some reason, using IntersectClip is VERY ocassionally causing a stack overflow and I am struggling to figure out why. If I use the Clip property instead, I do not get this overflow. The only think the call stack really tells me is that it looks like something recursive is happening in ntdll.dll and it gets out of control. Indeed, I was calling IntersectClip without setting the Clip property first. I'm not sure why I was doing that, but i ...Show All

  • jhidey Error deleting foxpro records in vb.net

    Hi All, I have a program written in vb.net that opens a foxpro table using the dataset and then load it to the datagridview. I get this error when I tried deleting a record on the dataset: "Dynamic SQL generation for the DeleteCommand is not supported against a SelectCommand that does not return any key column information." I am using a foxpro free table and it has a regular index. Private gcVfpConnStr As String Private VfpConn As New OleDb.OleDbConnection Private vfpDataAdapter1 As OleDbDataAdapter Private oVfpDs1 As DataSet = New DataSet Private gcPath As String = System.Windows.Forms.Application.StartupPath Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase ...Show All

  • dweeks Running a Console Application with an specific identity

    I wrote a console application that will be kicked off by Tidal on a batch server. Question 1 is, what credentials will it run under Question 2 is, can I tell it to run with specific credentials in the app.config file thanks.... So the Tidal scheduler is implemented as a windows service, I guess So I guess it will run under the same accunt that service is running in. Otherwise you would need to configure a user and password for the process to be started - but as you have Tidal you should review its documentation what options you have. Regarding your app.config question: you developed an exe which you want to be scheduled, correct And you hope to use its app.config to start the app in another use ...Show All

  • Patrik Olsson AccessViolationException when sharing a pointer between C# and C++ DLLimport problem.

    Hi all, I am facing an AccessViolationException and I can't seem to pinpoint where have I gone wrong. I hope the experts here are able to provide me with an answer. Scenario: A C# WinForms (.net 2.0) program that creates a background/worker thread to call a C++ function via Interop (static extern method). The C++ function will internally do a loop, that will "break" out of the loop once a flag in the C# program is triggered. Now, issue is that it works for a few times before the AccessViolationException kicks in. The VS debugger points to the C++ function call as the culprit. C++ Function: _declspec ( dllexport ) bool StartCall( unsigned int *position, unsigned int *maxLength, ...Show All

252627282930313233343536373839404142

©2008 Software Development Network

powered by phorum