Answer Questions
Lejing How to make ASPNET account not appear as user
Hi I recently installed .NET framework SDK 2.0 to learn VB. Whenever I run the SDK tutorial, it seems to define the ASPNET account in the system and the accont remains there even after the tutorial is finished. I can remove it only by re-booting the PC. I'd like to remove the ASPNET account as soon as I finish using the SDK tutorial because my company's audit scan doesn't like the extra account on my pc. Is there any command available to do that Strangely the account appears only in the audit report but not on the user account in the control panel. I am an absolute beginner and don't know about how it works. TIA I suggest reposting this to the forums at asp.net. This forum is dedicated to questions rela ...Show All
Acanthus ERROR: No mapping
I am trying to add logon example task from command prompt C:\Users\Peca\ C:\Users\Peca\schtasks /create /XML “C:\Users\Administrator\PecaTask.xml” /tn PecaSampleTask I get following error: ERROR: No mapping between account and security IDs was done. (18,24):LogonTrigger: C:\Users\Peca\ My sample PecaTask.xml file is as < xml version="1.0" > <!-- This sample schedules a task to start notepad.exe when a user logs on. --> <Task xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> <RegistrationInfo> <Date>2006-09-24T17:55:00+02:00</Date> <Author>Microsoft</Author> ...Show All
Hongxue Cai Executing Code on Uninstall
Hello, I'm not sure where my question should have been posted, but hopefully this is the correct place. I'm writing a windows service in C# that creates its own custom Event Log on install. What I can't seem to figure out is where the code for deleting the event log should go so that it is executed when the service is uninstalled. Any help would be appreciated! Thanks, JD thanks! That did it! Hop into your Service's Installer class and override the Uninstall() method and add your code there. ...Show All
DasSteve MySQL DateTime Error
Hello... I'm having a nigthmare with this... I have a DateTime value with format "mm-dd-yyyy HH:MM:SS" and i want to change it to "yyyy-mm-dd HH:MM:SS" in order to storage it in MySQL DataBase.. Can anyone help me to do this.. Thanks a lot Paul... i'm learning new things here. this is a different and cleanest code. If you have to use a SQL String (instead of a stored procedure as Sarah suggested) give the following a try: Dim TestDate As DateTime = #12/1/2006 12:22:21 PM# Dim DateString As String = TestDate.ToString("u").Trim("Z") That was the solution.. i used the ToString("yyyy-MM-dd") an ...Show All
Philippe Cand Creating A Helper Thread
Hello. I'm developing a VS Package that adds 'API level' profiling and debugging. Currently, my API level debugger exists as a stand alone application that implements API call stepping, disable/enable various API calls, and gathering of API call statistics. I interact with threads via a helper thread just like the one that the CLR debugger uses. The helper thread itself runs when the debugged process loads the API dll which is infact a wrapper around the real API dll. Can I designate a thread to be a 'helper thread' and keep it running while all other threads are suspended Target debug applications will be written in C++, however, I hope to find a language independent solution for the VS Package itself. Will ICorDebug help Any other s ...Show All
JXDOS Appending an XMLChildnode from one XML to another XML file
hello everyone! is there an efficient way on how can i append a childnode from an xml file to another xml using c# coz everytime i run it an error "The node to be inserted is from a different document context." is thrown. prompt help would be highly appreciated! thank you in advance to everyone! -bluedevil- With .NET the XmlDocument instance has a method ImportNode which takes two arguments, the node to import and a boolean where true indicates to import the node and all its children/descendants and false to import the node only. ImportNode will not append the node from the other node anywhere, it will only clone it but setting ownerDocument correctly on the imported node. So you need to do e.g. node1.Ap ...Show All
supagu Detecting network related SQL errors
In my application, I want to trap SqlExceptions that occur as a result of periodic network issues between our offices. If an SQL query fails as a result of one of these network-related issues, I sleep a predefined period of time and try again later. Note that I don't want to sleep on any SqlException as it may be a real db-related problem (in which case I rethrow). To accomplish this, I've been looking primarily at SqlException.Number (which the docs indicate correspond to a row in master.dbo.sysmessages ). However, I see that it sometimes returns values from other domains. For example, it can return: ERROR_NETNAME_DELETED = 64, ERROR_NETWORK_UNREACHABLE = 1231 as well as: System.Net.Sockets. SocketError .ConnectionReset - 100 ...Show All
gleason78 Hash Table - Kindly help me
Please help me in creating hash tables with value directed to another hash table. Kindly quote some websites which contain such source code. I use VS.Net 2003 , Version 1.1 Not 2.0 In .NET 2.0, use the System.Collections.Generic.Dictionary class. It uses a hashtable under the hood. The MSDN docs have lots of examples. Then use the DictionaryBase class. Thanks David C#: Hashtable Outer = new Hashtable(); Hashtable Inner = new Hashtable(); Inner.Add(innerkey, somevalue); //adding the inner hashtable to the outer: Outer.Add(outerkey, Inner); //getting a reference to the inner hashtable: otherref = (Hashtable)(Outer[outerkey]); //reading a value from the inner hashtable via th ...Show All
Ralf van der Zanden Can any one explain me more about Regular expressions in C#
Hi all, Could any one explain me about Regular expressions in C#. I went through the Orielly book of C# programming, but I was totally confused. Can you qoute some examples and explain where the RegExp are used..... Thanks, suresh. Ajay Pathak wrote: you can find more on the following link http://msdn2.microsoft.com/en-us/library/2k3te2cs(VS.80).aspx Two things Ajay, and it is not to take away from the fact that you are trying to help, but... Since the other posts you did are in differing format and writing style changes between them, it appears that they have been cut and pasted from other sites. If that is the case, please reference the location in the post. It does two things, 1) prope ...Show All
Carl Daniel Error: ExecuteReader requires and open and available Connection. The connection's current status is open, Fetching.
Hello, I am having a problem with selecting rows from an Access database (for code, I am using c# 2003). I have a list that I will go through one by one. As I increment through the list, I want to make a select statement to retrieve rows that meet my set criteria. Currrently, I am just outputting the selected column to the screen. However, I get the following error message: ExecuteReader requires and open and available Connection. The connection's current status is open, Fetching. What am I doing wrong int i = 0; try { string strOleDb; strOleDb = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + myPath; OleDbConnection cn = new OleDbConnection(strOleDb); OleDbCommand myCom = new OleDb ...Show All
hypo Ftp Upload File
This is my code snippet for file upload. The problem is after all the bytes are written on the server, while doing requestStream.Close() I get error as underlying connection was closed. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri); request.UsePassive = false; request.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential("xyz", "xyz"); Stream requestStream = request.GetRequestStream(); const int bufferLength = 2048; byte[] buffer = new byte[bufferLength]; int count = 0; int readBytes = 0; FileStream stream = File.OpenRead(fileName); do { readBytes = ...Show All
nmxnmx SqlServeCe.dll in form appliaction (sdf database)
Hi ! Is it possile to use a Sql Server mobile database file (sdf) in a Window form application. Is there any other way Cheers ! ...Show All
soundman32 streaming wave data
Hi I need to play streaming wave data. I need to create the wave data dynamically and pass it to a buffer in real time. The buffer will never be empty. I have found a few c++ examples but i am hopeing to save a lot of time if i could find some examples in vb.net. I have vb.net 2005. I asume that i'll be using direct sound. I already can do it by creating wave files on the fly and playing them. But the latency and the inconsistancy that arises from reloading new wave data in the form of a streamed wave file makes it not usable. Where do i look Thanx Jerry Cicierega The Windows QoS APIs are designed to add prioritization to network traffic for multimedia streaming scenarios. Un ...Show All
Arun Manglick connect to an access database
Hi everybody, I want connect and manipulate data from an MS Access db, I've done some digging on the internet, but found many and different approaches that for some reason were raising errors. Can anyone gimme some pointers or some code snippet that can help me walk on the coreect way. 10x See if the following helps: How to use Microsoft Visual Basic .NET to connect to a Microsoft Access database and to retrieve data This should help you get started. http://www.codeproject.com/cs/database/csharpaccessdb.asp theTroll Here are few MSDN link 2for ADO.NET 2.0 http://msdn.microsoft.com/data/ref/adonet/ http://msdn2.microsoft.com/en-us/data/aa937699.aspx http://msdn2.micr ...Show All
Godmoney running processes
hello all! problem the problem is i am to monitor the running processes to check real time spywares in memory. Need solution so how will it be done, please guide me in this context. thanks To get a list of all running processes, use the GetProcesses() method on the Process class in System.Diagnostics. System.Diagnostics. Process [] myProcesses = System.Diagnostics. Process .GetProcesses(); Iterate through the processes in myProcesses to have a look at all the processes running on your machine. This post is off topic for Visual C# Language forum, moving to .NET Base Class Library forum. ...Show All
