Answer Questions
guoliang12 ArrayList.Contains Bug
Consider the folowing C# code snippet: public class Class1 : System.IComparable { #region Object Members public override bool Equals( object obj) { return ( this .CompareTo(obj) == 0); } #endregion #region IComparable Members public int CompareTo( object obj) { return -1; } #endregion } public class Class2 : System.IComparable { #region Object Membe ...Show All
wenchiwang WSE 3.0 and ArrayList problems
I have a WSE 2.0 SP3 server app with one method that receives a class that contains an ArrayList as a property. Last week I decided to migrate my app to WSE 3.0. Now I got an InvalidCastException. When I debugged the app I found that the ArrayList contains in each element an array with two elements: the first one of XmlText type with the value and the second one of XmlAttribute with the original element type. I'm sending string instances inside ...Show All
Gokul Singh How to go from .RDL to .XLS ?
Hi, I have a buffer of in-memory data which I need to use to generate a .XLS file using a .RDL file. So far, the only way I can solve this is by shoving the data into some temporary tables, and then use SQL Server to generate the .XLS file. Is there a better way to solve this problem Any recommendations on any third party API's I can use I was hoping there was some .NET API I could use that I could feed it my dataset and a .RDL file and have ...Show All
JaLeo System.NullReferenceException: Object reference not set to an instance of an object
Hello Guys, I dont know the reason why I m getting this error I fully understand what does this mean....i dont know cant find the solution ...... If you see in the code the probem exists in the foreach statement..... the XMLNode node is somehow getting set to NULL.....It goes into the loop once and second time it just freaks out...The code was working perfectly, it just started like this.......... string path = "Common/"; // Path to ...Show All
ma9mwah Single Program instance
In .NET 2.0 is there an easy way of ensuring you only have one instance of a Windows Forms app running at any one time Thanks Graham If you are using Visual Basic then you can easily do via the following: 1. Right-click on My Project and click Open 2. Ensure Enable Application Framework is checked 3. Check Make single instance application If you are using C# use can reference Microsoft.VisualBasic and then de ...Show All
Nehal Sheth VS 2005 Slow
I was comparing 2003 to 2005 for an upcoming project and was surprised at the slow performance of 2005 (Maybe I'm doing something wrong). What I'm doing is loading 5 tables (About 80,000 records total) into a dataset that will be used to validate weekly transactions. It takes 80 seconds to load all of the tables in 2005 and only 10 seconds in 2003. I'm using the same code for both version. Is there a better way to do this in 2005 or a way to opt ...Show All
DeJohn P Security - Data Access Best Practices
Hi there, We're developing an in-house employee self-service portal that allows employees to access and modify various pieces of private data such as vacation requests and so forth. We have the options of either using a smart client application (deployed via ClickOnce) or a web application. If we went with a smart client application, the number one security issue I see with direct database access is the connection string. I don't believ ...Show All
Potatow .Net Framework Beta 2 - Write access problem on Temporary ASP.NET Files folder for ASPNET account
We have installed .net framework beta 2 version and when we browse any .aspx page we are getting the below error message ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Server Error in '/WitsWeb' Application. -------------------------------------------------------------------------------- The current identity (<Computer Name>\ASPNET) does not have write access to 'C:\WINNT\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files'. Description: An u ...Show All
Graybrd How to get value for Terminal Services Home Folder
Need to find out how to read the Terminal Services Profile Path and the Terminal Services Home Folder. Situation is this: Active directory network and some users have entries on the Terminal Services Profile tab of the AD user properties. That means that when the user is running in a TS session the values for TS Profile path and TS Home Folder are used for various Windows functions, like MyDocuments. But I cannot figure out how to do the .Ne ...Show All
Russ Perna Question on Threading...
(VB.NET) So I finally understand how it works, incorporated on one of my long processes and it works. Great. But now when I run the process (showing a progress bar) I can only do other tasks after the progressbar finishes. The Setup: I have a subroutine that creates about 5 excel spreadsheet from records in a database. The progressbar shows for each file creation. As it's creating a file I can't access my Menu (File ...Show All
jelleyfish WS-SecureConversation and UsernameToken
Hello, I've posted this on the Channel 9 Techoff forums but it doesn't seem to be getting any responses there so I thought I would try it here: I've tried searching for online material and looking through some code samples but am still in doubt as to the easiest way to do the following: I want to initiate a SecureConversation using a UsernameToken, and do it in a secure manner. Now, sending UsernameTokens securely seems to be a hot ...Show All
LiQuiDpLasMaFloW Log4Net question(urgent)
Hi, i am using Log4Net, I dont know why, the log it writing in this format. here, if you notice that the [Header] is on the same line and \r\n is also not working properly, where as the [Footer] is missing,yes the footer tag will appear but when I will write any entry again, can anybody tell me why it is happening. [Header]\r\n2006-01-04 12:50:39,281 [2832] INFO ChangeMobile.Confirm 1 for each Loop 2006-01-04 12:50:39,281 [2832] INFO Chan ...Show All
LarsLindstr&#246;m Learning Databases
What is the best way to learn to use Databases and the whole process etc. for the Visual Studio 2005 (and therefor SQL Server 2005) I am only interested to use it in Windows applications, not on servers Which is the best free/ pay way to learn this, supposing I have to start from 0 knowledge There's a very good tutorial on SQL a ...Show All
ArtNJ How can I find my MAC Address?
How can I find my MAC Address I currently running Windows XP SP2. Thanks Have a look at the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=172696&SiteID=1 if you just want to find it out, without doing so in code, then follow these steps: open a command prompt (Start -> Run -> "cmd" -> enter) type ipconfig /all [enter] For each Netowork adapter that you have, it ...Show All
JeffMlakar Sudden JavaScript errors on ASP.NET page
Just two days ago, my ASP.NET web application was running fine. Then, yesterday all items on a page that used JavaScript started to throw "Object expected" errors, but I was unable to pinpoint any changes that could have caused such errors. Now the problem seems to be spreading to other pages within the application. Are there any other documented cases of sporadic JavaScript problems in ASP.NET web applications ...Show All
