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

Software Development Network >> .NET Development

.NET Development

New Question

remoting client not connecting to server
Interop layer throws System Exception (cast) when accessing unmanaged COM code
framework 2 install problem
Is it possible to have a Config file per component?
Deciding Which Property to Use
Insert Command changes database only after the application is closed and restarted.
Returning Exceptions with ExecuteScaler and ExecuteNonQuery from RAISERROR in a SQL Proc
Improved Error Reporting with .NET
David Sceppa Book - ADO.NET 2.0, SubmitChangesViaStoredProcedures Procedure
how do i share my whole hdd with computers on my network?

Top Answerers

brother martin
AndrewVos
MShanahan
Fabio Reynoso
JohnnyP34
Greg Beech
Sergey Shishkin
schwarem
Mike240
Nick_Dev
Webressurs.no
Only Title

Answer Questions

  • Troy Lundin starting winxp app before user loggs into winxp

    any idea on how i can start an app before the user actually logs in I have a number of computers that just sit there for about 10 minutes before the user actually logs in and throughout the day the users constantly log in and out. I need my app to stay running as is needs to keep a tcplistener connection open. just to clear things up a service will have access to network resources and acts just like a regular app but starts at boot time i thought a service was my answer so the service answer is what i need but isnt working for me as planned.  I have a few small issues to clear up.  my service starts a worker thread and the worker thread starts a TcpListener s ...Show All

  • ddrakonn PROBLEM WITH FTP FIREWALL IN C#

    My problem deals with the fact that I was able to FTP files to and from a friend's site that doesn't have a firewall but I now have the real FTP information and it does have a firewall and I have no idea how to FTP a file to this new FTP location. I am under severe time pressure and would like to see the commands necessary in C# and NET 2.0 to accomplish this goal. Here is an example I was given by the site administrator using DOS FTP to access and upload a file. I will change the passwords in the example below: ftp -n open edifxpbw.geia.com user yppc112 yppc110GX user 10033XDIR@edi.yppc.geia.com 15211 HENRY binary put DirectoryStart.dat %YPPC-TEST%DIR ls mblist Here is an example of an upload that I created in C# ...Show All

  • minhnguyen Async File Copy

    Hi everyone, I'm sure this has probably been asked before but I couldn't find it using the forum search. Is there a way to copy a file asynchronously (with a progress callback/delegate) I've tried googling, but just keep getting articles complaining how the File.Copy() isn't asynchronous. I managed to use the WebClient class to copy files how I want but it doubled the time it takes to copy files which is unacceptable since I'm copying large numbers of large files (100x 1 gig files). I believe it can be achieved using the WINAPI FileCopyEx but this results in unmanaged and messy code. Thanks in advance. Yes, use BackgroundWorker. But try using File.Copy(), using FileStream makes ...Show All

  • raja786 sharing of textfile (FileShare method not working)

    Hi guys, I'm working on application with multiple instances running in the same machine. In this application I'm accessing file "test.txt" and the other instances also needs this file. But the first application who will get to open the "test.txt" will have the write access and the other instances will only have read access. Below is my code snippet: if (singleInstance) {FileStream fs = File .Open( @"C:\test.txt" , FileMode .Open, FileAccess .ReadWrite, FileShare .Read);} else {FileStream fs = File .Open( @"C:\test.txt" , FileMode .Open, FileAccess .Read ) } When I tried running my application, I open the test.txt in the notepad and I can open it but can't do any mo ...Show All

  • Photab DPAPI Key lengths

    I am currently using DPAPI to encrypt sensitive data in my application. How exactly is the master key used to derive the session key , and what is the length of the Session/Master Keys Have gone through the URL http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnsecure/html/windataprotection-dpapi.asp It is mentioned that 16 random bytes are hashed with SHA1 to get the Session Key. Where does the Master key fit into this Thanks in advance! Rohit ...Show All

  • Barts007 setting XML attribute

    I'm trying to set a XML attribute whenever someone presses a radio button for example: before radio button click <row type=""> after radiobutton click <row type="header"> i can select the row and change the value however i am having problems writing the change back to the file. if i use the xmltextwriter it seems to clear the file the code im using to get to the button currently is XmlNodeList nodelst = _doc.GetElementsByTagName("row"); foreach (XmlNode node in nodelst) { XmlAttribute attr = node.Attributes["type"]; attr.Value = "header"; } can anyone help at all Colin Gemmell Can you show me a bit m ...Show All

  • mlafentres Loop SelectSingleNode

    Hello, I need an example of how loop correctly in ASP.Net 2 to get each Xpath of ShippingAPIResponse/AddPacakgeResponse/PieceTrackNo PieceTrackNo will be from 1 to many depending on the number of packages shipped for each order, I would need to get each TrackingNo, PeiceNum etc for each PieceTrackNo Element(I guess it is called Element) < xml version="1.0" > <ShippingAPIResponse> <AddPackageResponse> <SONum>941823-1 </SONum> <Status>OK</Status> <StatusDesc>Transaction Successful</StatusDesc> <OrderProbill>36</OrderProbill> <Carrier>USPS </Carrier> <Service>5 </Service> <PieceTrackNo> <PieceNum&g ...Show All

  • regthesk8r C# 2005 Web Service question

    Hello everyone, I'm fairly new to C# and I have a question about return types. Specifically, I have a web method returning a dataset, but I need to return an error message if there is one. How is this done in C# Thanks! Robert Lewis :-) Good points. I'm not an expert on webservices so I apologise. try the whole "out" approach and see how that goes. you could create a class object which has: DataSet errorMsg   so it returns this "info" class containing the dataset and an errorMsg. If DataSet returned is null then set the errorMsg to the error message and show that to your client. This is one other way I can think of at this moment. You could set an error message in the ...Show All

  • KompjoeFriek Errors Ocured

    Dear All, When I execute my application i got the error.Can Any Body Solve the Issue Error Is: Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerDatabaseUnavailableException Actually i am not using the sql reporting service and in my application there is no reference to sql reporting.When I am building the .net application i get an exception. Thanks in Advance Saroj The SQL Server Reporting Services forum will be better able to answer this question: http://forums.asp.net/191/ShowForum.aspx . Thanks. Come on Saroj, you really need to give a little more information than that. How does your application work with RS Is it locally Connecting ...Show All

  • xyzt Time for a dumb memory question

    Ok, so I've read that I should, as much as possible, dispose or null my variables and objects to save up on some memory. I have a small application that, after loading, takes around 17-18MB of memory (as reported by Task Manager). I do have some initial variables that I can null after loading so I do that. there is also a function that gets called every 15 minutes. when it is called the first time task manager reports 20-25MB used. it usually goes back down to 17-18MB after about 10 minutes or so before the function gets called again. It also has variables and objects that I can null and dispose after the function completes so I do that as well. I ran 2 versions side by side, one that disposes and nulls and, one that does not, to se ...Show All

  • Earl Hood UDT - SQL Server DB - Access Table and Column where UDT is used with c#

    Hello to everyone, I've a question about UTD and the way I can use to access tables and columns where they are applied in a SQL Server DB. I've already spent 2 days googling and MSDN reading but nothing helped me to solve my problem, thats why I'm posting it here. The scenario follows: I've created a UDT called MyUDT that exposes 2 VIP properties MyTable, MyColumn, here its the code: using System; using System.Data; using System.Data.SqlClient; using System.Data.SqlTypes; using Microsoft.SqlServer.Server; using System.Text.RegularExpressions; [Serializable] [SqlUserDefinedType(Format.UserDefined, IsByteOrdered = true, MaxByteSize = 8000, Name = "Permission")] public class MyUDT : INullable, IBinarySerialize { private s ...Show All

  • IcemanNCalifornia Socket Exception "The calling thread cannot access this object because a different thread owns it"

    working on Client and Server side programs using Asyncronous Sockets,when i hit the connect button after about 15 secs give or take a few. i get the following Error:: "The calling thread cannot access this object because a different thread owns it" here is the Section of code that is producing the Error itself,right after the "Catch" Block conStatus.Text = " Error Connecting" throws the Exception below..I have provided the Stack Trace so hopefully someone can look at this and help me work this part out...If you need to see the "Server Side Code" which is pretty close to the Client Side below, i will post it up.. Thxs in advance Rattlerr I have posted the entire block of code pertaining to this...Also this is wrote in  (". ...Show All

  • keshavbs Cannot Connect to SQL Server 2005

    Hello, I have been stuck on this problem for a couple of days. The sys admin gave my username access to a database on sql server 2005 using windows authentication. I try to connect to it using this and it says that my username cannot access the db. What can be wrong, the sys admin said that all looks well on his side. SqlConnection myConnection = new SqlConnection(); myConnection.ConnectionString = "Data Source=serverName;Initial Catalog=DBName;User Id=MyUsername;Password=myPassword;"; myConnection.Open(); Thank you, Karina Karina, what credentials is the ASP.NET running under If no authentication was configured, is might be running under the internet anonyomus account, <machine-name>\IUSR_<machine-nam ...Show All

  • freeflyr Output Parameters - What am I doing wrong!!!!????

    Aaargh, I'm trying to run some simple code to call a stored proc and access the value of an output parameter. What am I doing wrong Thanks. Heres the code SqlConnection conn = new SqlConnection("connectionString"); conn.Open(); SqlCommand command = new SqlCommand("dbo.OutputParameter", conn); command.CommandType = CommandType.StoredProcedure; command.Parameters.Add("@ID", SqlDbType.NVarChar); command.Parameters[0].Value = ""; command.Parameters[0].Direction = ParameterDirection.Output; command.ExecuteNonQuery(); Console.WriteLine(command.Parameters[0].Value.ToString()); Console.ReadLine(); HERE is the Stored Proc: CREATE PROCEDURE dbo.Ou ...Show All

  • Kamen .NET development 2.0 = 32bit ?

    Hi, I'm confused. .NET development 2.0 only runs on 32 bit .NET development 2.0 SDK runs on 64bit but needs the other version to install. This doesn't makes sense. I'm SOL I guess. Yes you need other headers, link libraries etc. Why does this make no sense I don't understand. Ok, it seems that 2.0 is 64 bit. ( ) It's just not anywhere to be found. hi , i didnt get ur question , .net 2.0 runs fine (AFAIK) on 64 bit machines, currently we are doing all our developemnt on 64 bit environment, we have dual core p4 x64 architecutre ,with 64bit windows xp professional, vs2005 and .net2.0. .net 2.0 provides separat command shell for 64 bit and 32bit command prompt, 64 bit runtime distributable are also available, You might run ...Show All

97989901234567891011121314

©2008 Software Development Network

powered by phorum