huonglt's Q&A profile
Visual Studio Express Editions Taking data from datasets
Hi, I have a problem pulling datas from datasets. I have a dataset with three coloumn as exam, grade and grade2. I'm keeping records of my grades accorgin to the exams. I want to pull datas in the grade coloumn and add all of them to a variable like sum to find my final grade. I used this code. But i encountered an "Number of indices is less then the number of dimensions of the indexed array." Dim t As DataTable ...Show All
.NET Development Clearing Remote Share File sessions
All Hopefully someone can help me. I am working with some pretty archaic software Fox Pro 2.6 to be exact. I am trying to extend the functionality of this program using the .net Framework. Unfortunately the program that I am trying to write needs to have exclusive access to the .DBF files in Fox Pro. Users access the files via a remote server where the DBF's are stoed in a Free Table Di ...Show All
Visual Studio Team System Setup cannot access Reporting Server
Hi there, i'm trying to install the Team Foundation Server. When setup asked me to enter a user for the Report Server. I created a user TFSReport and added him to Administrator-group and all the sql-groups. I opened the Report-Server Configuration and configured it so that the TFSReport-User controls the service (works without any errors). Near to the end of the setup, i get the following error, that setup cannot access the SQL Report server. I ...Show All
.NET Development control XML serialization
hi, Do u guys know how to control the XMLserializer, any attributes or methods to get the XML output like shown below <root> <abc id="1" name = "john">123456</abc> </root> Thank you Your class will need to implement System.Xml.Serialization.IXmlSerializable. Add code to read and write Xml in the manner that you desire. In the WriteXml method y ...Show All
SQL Server Encryption and database restore
Hi Can anyone help I have a database using encryption with symmetric keys created using asymmetric keys. I backed up this database and restored it on another machine along with the service master key. I can read the encrypted data fine. But all the encrypted stored procs that are associated with the application that uses the data cannot read the data, they just return Nulls. If I regenerate all the encrypted stored procs from scri ...Show All
Windows Forms Programs Installed
Is it possible to list down all the programs installed in my machine from a window forms application on form load. It should list down all the programs which we see when we click on add/remove programs in the control panel. Best Regards ...Show All
Visual Studio Team System unit testing web app and httpcontext (lack of)
We have a web app and would love to use unit tests but we are hitting a wall when we run the tests for 2 reasons: HttpContext is not available the virtual directory path is null so we cannot access our web.config that contains a custom section Specifically the following method returns null: MyHandler ourConfigHandler = ( MyHandler ) ConfigurationManager .GetSection( MyHandler .MVP_CO ...Show All
Visual Studio Express Editions visual C++ errors
Whenever I try to view the properties of a project visual C++ has a fatal error and closes. Thanks, gandaliter Try re-installing. It seems that there is something wrong in the installation. Thanks, Ayman Shoukry VC++ Team ...Show All
Visual Studio 2008 (Pre-release) obtain client address inside service
Hi I wish to get hold of the clients IP address, mac address and computer name within a service that is exposed using a net.tcp binding. Is this possible and, if so, how can it be obtained Thanks in advance Ant Well I don't know about the ip and mac but you can get the machine name using System.Environment.MachineName. The other networking data is probably available through some other class, although I couldn't tell you what i ...Show All
Windows Forms System.CodeDom.Compiler.GeneratedCodeAttribute error
I downloaded a sample from MSDN for VS 2005, and tried to build it (using VS2005) as described in the documentation. I obtain 7 errors in the NorthwindCustomerOrders.XSD (NorthwindCustomerOrders.designer.vb file) saying that Type System.CodeDom.Compiler.GeneratedCodeAttribute is not defined. In the documentation there is a link to HOW TO: Set sample settings but unfortunately it is incomplete. It says I have to open the .Net framework SDK 2.0 co ...Show All
Visual C# C# in 21 Days
C# in 21 days is ok for a newbie but it seems to leave out some important novice topics on C#...I think its a little two basic...So i am wondering whats a good solid book that goes over most of all topic dealing in C# from inputing vairbles to screens, and advanced class and struct interface implementation...It almost seems that i have better advanced skills than simple basics, from the learnings in this book Any suggestions or does practic ...Show All
.NET Development Possible bug? FileIOPermission failed
I think the following code should throw an SecurityException if I run the code from a network path. But it does not. try { FileIOPermission perm = new FileIOPermission(PermissionState.Unrestricted); perm.Demand(); } catch (SecurityException ex) { MessageBox.Show("Sorry, you can only run this application from your local disk.", "Security Error", MessageBoxButtons.OK, MessageBoxIcon.Er ...Show All
Visual Studio installing Visual Studio.Net
Hi, I had been using the .net frameworks and the .net framework SDK from the microsoft. But now I want to install the VS.NET on my machine. Do I need to uninstall the .net framework and .net framework SDK from my machine before installing VS.net Thank you. No, they can co-exist on the same machine. Note that the SDK installation location will now dictate where VS will be installed to. If you want VS to i ...Show All
Visual Studio Team System When I get a specific version why does the contents of Source Explorer change?
The objective of the Source Control Explorer is to display the contents of the TFS repository; is that correct Therefore the folders pane should show the current folders in the repository for my Team Project and when I select one of these folders the right pane should show the current contents of that folder in the repository. By 'current' I mean 'latest version'. Given the above, I find the following behaviour strange... I copy a ...Show All
Smart Device Development MDE: Can't run Device Emulator Manager
I'm trying to run the Device Emulator Manager on my Win2K desktop. It terminates immediately without a message, whether I start it from the Start Menu, from Windows Explorer or from the cmd line. The emulator itself starts up and runs fine. I'd like to set up an ActiveSync connection to this. As I understand it, I need to get the Device Emulator Manager running to do this. Hi George, That means that the breakpoi ...Show All
